Skip to content

Commit

Permalink
export symbols fix
Browse files Browse the repository at this point in the history
* 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 gridstack#1709
  • Loading branch information
adumesny committed Apr 5, 2021
1 parent 31d34a7 commit ca2a937
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ES6 or Typescript

```js
import 'gridstack/dist/gridstack.min.css';
import GridStack from 'gridstack';
import { GridStack } from 'gridstack';
// THEN to get HTML5 drag&drop
import 'gridstack/dist/h5/gridstack-dd-native';
// OR to get legacy jquery-ui drag&drop (support Mobile touch devices, h5 does not yet)
Expand Down
1 change: 1 addition & 0 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Change log
- fix [#219](https://github.com/gridstack/gridstack.js/issues/219) **fixing another 6 years old request** we now automatically insert extra rows
when dragging an item at the bottom below others to make it easier to insert below.
- fix [#1687](https://github.com/gridstack/gridstack.js/issues/1687) more fix for drag between 2 grids with `row / maxRow` broken in 4.x
- fix export symbols .d.ts for `gridstack-h5.js | gridstack-jq.js | gridstack-static.js`

## 4.0.3 (2021-3-28)

Expand Down
5 changes: 4 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ module.exports = function(config) {
],
// BUT list of files to exclude
exclude: [
'src/index*.ts',
// used for webpack h5/jq/static .js
"src/gridstack-h5.ts",
"src/gridstack-jq.ts",
"src/gridstack-static.ts",
'src/jq/*', // use h5 version for unit testing
// 'src/h5/*', // use jq version for unit testing
],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
},
"exclude": [
"./src/**/*.spec.ts",
"./src/index*", // used for webpack h5/jq/static .js
// used for webpack h5/jq/static .js
"./src/gridstack-h5.ts",
"./src/gridstack-jq.ts",
"./src/gridstack-static.ts",
],
"include": [
"./src/**/*.ts"
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const path = require('path');

module.exports = {
entry: {
'gridstack-h5': './src/index-h5.ts',
'gridstack-jq': './src/index-jq.ts',
'gridstack-static': './src/index-static.ts'
'gridstack-h5': './src/gridstack-h5.ts',
'gridstack-jq': './src/gridstack-jq.ts',
'gridstack-static': './src/gridstack-static.ts'
},
mode: 'production', // production vs development
devtool: 'source-map',
Expand Down

0 comments on commit ca2a937

Please sign in to comment.