Skip to content

Commit 3fb6c55

Browse files
committed
Merge branch 'jlowcs-gruntfile'
2 parents f1e9723 + 4dae65a commit 3fb6c55

File tree

12 files changed

+647
-1512
lines changed

12 files changed

+647
-1512
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Gruntfile.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
module.exports = function (grunt) {
2+
grunt.loadNpmTasks('grunt-sass');
3+
grunt.loadNpmTasks('grunt-contrib-cssmin');
4+
grunt.loadNpmTasks('grunt-contrib-copy');
5+
grunt.loadNpmTasks('grunt-contrib-uglify');
6+
7+
grunt.initConfig({
8+
sass: {
9+
options: {
10+
outputStyle: 'expanded'
11+
},
12+
dist: {
13+
files: {
14+
'dist/gridstack.css': 'src/gridstack.scss',
15+
'dist/gridstack-extra.css': 'src/gridstack-extra.scss'
16+
}
17+
}
18+
},
19+
20+
cssmin: {
21+
dist: {
22+
files: {
23+
'dist/gridstack.min.css': ['dist/gridstack.css'],
24+
'dist/gridstack-extra.min.css': ['dist/gridstack-extra.css']
25+
}
26+
}
27+
},
28+
29+
copy: {
30+
dist: {
31+
files: {
32+
'dist/gridstack.js': ['src/gridstack.js']
33+
}
34+
}
35+
},
36+
37+
uglify: {
38+
options: {
39+
sourceMap: true,
40+
sourceMapName: 'dist/gridstack.min.map'
41+
},
42+
dist: {
43+
files: {
44+
'dist/gridstack.min.js': ['src/gridstack.js']
45+
}
46+
}
47+
}
48+
});
49+
50+
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify']);
51+
};

0 commit comments

Comments
 (0)