Skip to content

Commit ca2a937

Browse files
committed
export symbols fix
* export symbols .d.ts for `gridstack-h5.js | gridstack-jq.js | gridstack-static.js` * renamed the index.* files so we get proper .d.ts files * part of #1709
1 parent 31d34a7 commit ca2a937

File tree

8 files changed

+13
-6
lines changed

8 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ES6 or Typescript
7373

7474
```js
7575
import 'gridstack/dist/gridstack.min.css';
76-
import GridStack from 'gridstack';
76+
import { GridStack } from 'gridstack';
7777
// THEN to get HTML5 drag&drop
7878
import 'gridstack/dist/h5/gridstack-dd-native';
7979
// OR to get legacy jquery-ui drag&drop (support Mobile touch devices, h5 does not yet)

doc/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Change log
5757
- fix [#219](https://github.com/gridstack/gridstack.js/issues/219) **fixing another 6 years old request** we now automatically insert extra rows
5858
when dragging an item at the bottom below others to make it easier to insert below.
5959
- fix [#1687](https://github.com/gridstack/gridstack.js/issues/1687) more fix for drag between 2 grids with `row / maxRow` broken in 4.x
60+
- fix export symbols .d.ts for `gridstack-h5.js | gridstack-jq.js | gridstack-static.js`
6061

6162
## 4.0.3 (2021-3-28)
6263

karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ module.exports = function(config) {
3333
],
3434
// BUT list of files to exclude
3535
exclude: [
36-
'src/index*.ts',
36+
// used for webpack h5/jq/static .js
37+
"src/gridstack-h5.ts",
38+
"src/gridstack-jq.ts",
39+
"src/gridstack-static.ts",
3740
'src/jq/*', // use h5 version for unit testing
3841
// 'src/h5/*', // use jq version for unit testing
3942
],
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
},
2020
"exclude": [
2121
"./src/**/*.spec.ts",
22-
"./src/index*", // used for webpack h5/jq/static .js
22+
// used for webpack h5/jq/static .js
23+
"./src/gridstack-h5.ts",
24+
"./src/gridstack-jq.ts",
25+
"./src/gridstack-static.ts",
2326
],
2427
"include": [
2528
"./src/**/*.ts"

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const path = require('path');
22

33
module.exports = {
44
entry: {
5-
'gridstack-h5': './src/index-h5.ts',
6-
'gridstack-jq': './src/index-jq.ts',
7-
'gridstack-static': './src/index-static.ts'
5+
'gridstack-h5': './src/gridstack-h5.ts',
6+
'gridstack-jq': './src/gridstack-jq.ts',
7+
'gridstack-static': './src/gridstack-static.ts'
88
},
99
mode: 'production', // production vs development
1010
devtool: 'source-map',

0 commit comments

Comments
 (0)