Commit 71e2f3da authored by Jerome Louis's avatar Jerome Louis
Browse files

Add Gruntfile for dist generation

parent fc571d8b
node_modules
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.initConfig({
sass: {
options: {
outputStyle: 'expanded'
},
dist: {
files: {
'dist/gridstack.css': 'src/gridstack.scss',
'dist/gridstack-extra.css': 'src/gridstack-extra.scss'
}
}
},
cssmin: {
dist: {
files: {
'dist/gridstack.min.css': ['dist/gridstack.css'],
'dist/gridstack-extra.min.css': ['dist/gridstack-extra.css']
}
}
},
copy: {
dist: {
files: {
'dist/gridstack.js': ['src/gridstack.js']
}
}
},
uglify: {
options: {
sourceMap: true,
sourceMapName: 'dist/gridstack.min.map'
},
dist: {
files: {
'dist/gridstack.min.js': ['src/gridstack.js']
}
}
}
});
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify']);
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment