Skip to content
This repository was archived by the owner on Jun 25, 2023. It is now read-only.

Commit b73a7fc

Browse files
committed
switch to libsass
1 parent cdab75c commit b73a7fc

File tree

8 files changed

+32
-33
lines changed

8 files changed

+32
-33
lines changed

Gruntfile.js

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/*global module:false*/
22
module.exports = function(grunt) {
33

4-
//Project configuration.
4+
// Project configuration.
55
grunt.initConfig({
6-
//Metadata.
6+
// Metadata.
77
pkg: grunt.file.readJSON('package.json'),
88

9-
//SCSS
9+
// CSS.
1010
sass: {
1111
dist: {
1212
options: {
13-
style: 'compressed'
13+
outputStyle: 'compressed',
14+
sourceMap: false,
1415
},
1516
files: {
1617
'dist/css/blobselect.css': 'src/scss/blobselect.scss',
@@ -19,11 +20,9 @@ module.exports = function(grunt) {
1920
}
2021
}
2122
},
22-
23-
//CSS PROCESSING
2423
postcss: {
2524
options: {
26-
map: true,
25+
map: false,
2726
processors: [
2827
require('postcss-fixes')(),
2928
require('autoprefixer')( { browsers: 'last 3 versions' } ), // vendor prefixes
@@ -40,11 +39,18 @@ module.exports = function(grunt) {
4039
}
4140
},
4241

43-
//JAVASCRIPT
44-
jshint: {
45-
all: ['src/js/blobselect.js']
42+
// Javascript.
43+
eslint: {
44+
check: {
45+
src: ['src/js/custom/**/*.js'],
46+
},
47+
fix: {
48+
options: {
49+
fix: true,
50+
},
51+
src: ['src/js/custom/**/*.js'],
52+
}
4653
},
47-
4854
uglify: {
4955
options: {
5056
mangle: false
@@ -56,7 +62,7 @@ module.exports = function(grunt) {
5662
}
5763
},
5864

59-
//WATCH
65+
// Watchers.
6066
watch: {
6167
styles: {
6268
files: ['src/scss/*.scss', 'dist/css/*.css'],
@@ -75,7 +81,7 @@ module.exports = function(grunt) {
7581
}
7682
},
7783

78-
//NOTIFY
84+
// Notifications.
7985
notify: {
8086
css: {
8187
options:{
@@ -93,20 +99,20 @@ module.exports = function(grunt) {
9399
}
94100
});
95101

96-
//These plugins provide necessary tasks.
97-
grunt.loadNpmTasks('grunt-contrib-uglify');
102+
// These plugins provide necessary tasks.
103+
grunt.loadNpmTasks('grunt-contrib-uglify-es');
98104
grunt.loadNpmTasks('grunt-contrib-watch');
99-
grunt.loadNpmTasks('grunt-contrib-sass');
100-
grunt.loadNpmTasks('grunt-postcss');
101-
grunt.loadNpmTasks('grunt-contrib-jshint');
105+
grunt.loadNpmTasks('grunt-eslint');
102106
grunt.loadNpmTasks('grunt-notify');
107+
grunt.loadNpmTasks('grunt-postcss');
108+
grunt.loadNpmTasks('grunt-sass');
103109

104-
//tasks
110+
// Tasks.
105111
grunt.registerTask('default', ['css', 'javascript']);
106112
grunt.registerTask('css', ['sass', 'postcss']);
107113
grunt.registerTask('javascript', ['jshint', 'uglify']);
108114

109115
grunt.event.on('watch', function(action, filepath, target) {
110116
grunt.log.writeln(target + ': ' + filepath + ' has ' + action);
111117
});
112-
};
118+
};

dist/css/blobfolio.css

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/blobfolio.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/css/blobselect.css

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)