Skip to content

Commit

Permalink
Updated Grunt job. Refactored SCSS files.
Browse files Browse the repository at this point in the history
Change-Id: I719750164678ec041a1c23a2616145c68bd082b5
  • Loading branch information
keaukraine committed Nov 2, 2017
1 parent bf682bb commit 08d269c
Show file tree
Hide file tree
Showing 16 changed files with 206 additions and 697 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/temp
/.sass-cache
25 changes: 10 additions & 15 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
module.exports = function(grunt) {
module.exports = function (grunt) {
grunt.initConfig({
less: {
development: {
sass: {
dist: {
options: {
style: 'expanded'
},
files: {
'dist/css/fs-modal.css': 'src/less/fs-modal.less'
'dist/css/bootstrap-fs-modal.css': 'src/sass/bootstrap-fs-modal.scss'
}
}
},
cssmin: {
target: {
files: {
'dist/css/fs-modal.min.css': ['dist/css/fs-modal.css']
'dist/css/bootstrap-fs-modal.min.css': ['dist/css/bootstrap-fs-modal.css']
}
}
},
uglify: {
my_target: {
files: {
'dist/js/fs-modal.min.js': ['src/js/fs-modal.js'],
},
},
}
});

grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['less', 'cssmin', 'uglify']);
grunt.registerTask('default', ['sass', 'cssmin']);
};
82 changes: 82 additions & 0 deletions dist/css/bootstrap-fs-modal.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/css/bootstrap-fs-modal.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/css/bootstrap-fs-modal.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 0 additions & 71 deletions dist/css/fs-modal.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/css/fs-modal.min.css

This file was deleted.

Loading

0 comments on commit 08d269c

Please sign in to comment.