Skip to content

Commit d191a8d

Browse files
authored
Merge pull request #1352 from adumesny/develop
typescript ->develop merge
2 parents 116f687 + 735a346 commit d191a8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+7240
-4792
lines changed

.eslintignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
dist/*.js
1+
dist/*
22
demo/*
33
spec/*
4-
src/jquery.js
5-
src/jquery-ui.js
4+
src/jq/*.js

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
env: {
4+
browser: true,
5+
commonjs: true,
6+
es6: true,
7+
node: true
8+
},
9+
extends: [
10+
'plugin:@typescript-eslint/recommended'
11+
],
12+
parserOptions: {
13+
ecmaVersion: 2020,
14+
sourceType: 'module'
15+
},
16+
rules: {
17+
'indent': ['error', 2],
18+
'max-len': ['error', 180],
19+
'no-trailing-spaces': 'error',
20+
'prefer-const': 0,
21+
'@typescript-eslint/explicit-function-return-type': 0
22+
}
23+
};

.eslintrc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ PULL_REQUEST_TEMPLATE.md
1919
freelancer
2020
karma.conf.js
2121
protractor.conf.js
22+
tsconfig.json
23+
webpack.config.js
2224

2325
## From .gitignore:
2426
*.log

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"dragstop",
1111
"dropover",
1212
"droppable",
13+
"gridster",
1314
"gsresize",
14-
"gsresizestop",
1515
"jqueryui",
1616
"resizestart"
1717
]

Gruntfile.js

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-disable camelcase */
21
module.exports = function(grunt) {
32
grunt.loadNpmTasks('grunt-sass');
43
grunt.loadNpmTasks('grunt-contrib-cssmin');
@@ -16,7 +15,7 @@ module.exports = function(grunt) {
1615
sass: {
1716
options: {
1817
implementation: sass,
19-
sourceMap: true
18+
sourceMap: false
2019
},
2120
dist: {
2221
files: {
@@ -25,10 +24,10 @@ module.exports = function(grunt) {
2524
}
2625
}
2726
},
28-
2927
cssmin: {
3028
dist: {
3129
options: {
30+
sourceMap: false,
3231
keepSpecialComments: '*'
3332
},
3433
files: {
@@ -37,50 +36,47 @@ module.exports = function(grunt) {
3736
}
3837
}
3938
},
40-
4139
copy: {
4240
dist: {
4341
files: {
44-
'dist/gridstack.js': ['src/gridstack.js'],
45-
'dist/gridstack.d.ts': ['src/gridstack.d.ts'],
46-
'dist/gridstack.jQueryUI.js': ['src/gridstack.jQueryUI.js'],
4742
'dist/gridstack-poly.js': ['src/gridstack-poly.js'],
48-
'dist/jquery.js': ['src/jquery.js'],
49-
'dist/jquery-ui.js': ['src/jquery-ui.js'],
43+
//'dist/jq/jquery.js': ['src/jq/jquery.js'],
44+
//'dist/jq/jquery-ui.js': ['src/jq/jquery-ui.js'],
5045
'dist/src/gridstack.scss': ['src/gridstack.scss'],
5146
'dist/src/gridstack-extra.scss': ['src/gridstack-extra.scss'],
5247
}
5348
}
5449
},
55-
5650
uglify: {
5751
options: {
5852
sourceMap: true,
59-
sourceMapName: 'dist/gridstack.min.map',
6053
output: {
6154
comments: 'some'
6255
}
6356
},
6457
dist: {
6558
files: {
66-
'dist/gridstack.min.js': ['src/gridstack.js'],
67-
'dist/gridstack.jQueryUI.min.js': ['src/gridstack.jQueryUI.js'],
68-
'dist/gridstack-poly.min.js': ['src/gridstack-poly.js'],
69-
'dist/jquery.min.js': ['src/jquery.js'],
70-
'dist/jquery-ui.min.js': ['src/jquery-ui.js'],
71-
'dist/gridstack.all.js': ['src/gridstack-poly.js', 'src/jquery.js', 'src/gridstack.js', 'src/jquery-ui.js', 'src/gridstack.jQueryUI.js']
59+
'dist/jq/jquery.js': 'src/jq/jquery.js',
60+
'dist/jq/jquery-ui.js': 'src/jq/jquery-ui.js',
61+
/*
62+
'dist/jq/gridstack-dd-jqueryui.min.js': 'dist/jq/gridstack-dd-jqueryui.js',
63+
'dist/gridstack-dd.min.js': 'dist/gridstack-dd.js',
64+
'dist/gridstack-engine.min.js': 'dist/gridstack-engine.js',
65+
'dist/gridstack-poly.min.js': 'src/gridstack-poly.js',
66+
'dist/types.min.js': 'dist/types.js',
67+
'dist/utils.min.js': 'dist/utils.js',
68+
*/
7269
}
7370
}
7471
},
75-
7672
eslint: {
7773
target: ['*.js', 'src/*.js']
7874
},
7975

8076
watch: {
8177
scripts: {
8278
files: ['src/*.js'],
83-
tasks: ['uglify', 'copy'],
79+
tasks: ['copy', 'uglify'],
8480
options: {
8581
},
8682
},
@@ -109,6 +105,7 @@ module.exports = function(grunt) {
109105
},
110106
},
111107

108+
// eslint-disable-next-line @typescript-eslint/camelcase
112109
protractor_webdriver: {
113110
all: {
114111
options: {
@@ -119,7 +116,6 @@ module.exports = function(grunt) {
119116
});
120117

121118
grunt.registerTask('lint', ['eslint']);
122-
grunt.registerTask('default', ['sass', 'cssmin', 'eslint', 'copy', 'uglify']);
119+
grunt.registerTask('default', ['sass', 'cssmin', /*'eslint',*/ 'copy', 'uglify']);
123120
grunt.registerTask('e2e-test', ['connect', 'protractor_webdriver', 'protractor']);
124121
};
125-
/*eslint-enable camelcase */

0 commit comments

Comments
 (0)