Skip to content

Commit

Permalink
Move scss-lint to npm scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
bardiharborow committed Dec 23, 2016
1 parent 1712484 commit ba86c31
Show file tree
Hide file tree
Showing 3 changed files with 513 additions and 420 deletions.
24 changes: 8 additions & 16 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,6 @@ module.exports = function (grunt) {
},

// CSS build configuration
scsslint: {
options: {
bundleExec: true,
config: 'scss/.scss-lint.yml',
reporterOutput: null
},
core: {
src: ['scss/*.scss', '!scss/_normalize.scss']
},
docs: {
src: ['docs/assets/scss/*.scss', '!docs/assets/scss/docs.scss']
}
},

cssmin: {
options: {
sourceMap: true,
Expand Down Expand Up @@ -282,6 +268,12 @@ module.exports = function (grunt) {
},
htmlhint: {
command: 'npm run htmlhint'
},
'scss-lint': {
command: 'npm run scss-lint'
},
'scss-lint-docs': {
command: 'npm run scss-lint-docs'
}
},

Expand Down Expand Up @@ -369,7 +361,7 @@ module.exports = function (grunt) {
// JS distribution task.
grunt.registerTask('dist-js', ['babel:dev', 'concat', 'babel:dist', 'stamp', 'uglify:core']);

grunt.registerTask('test-scss', ['scsslint:core']);
grunt.registerTask('test-scss', ['exec:scss-lint']);

// CSS distribution task.
// Supported Compilers: sass (Ruby) and libsass.
Expand All @@ -389,7 +381,7 @@ module.exports = function (grunt) {

// Docs task.
grunt.registerTask('docs-css', ['cssmin:docs', 'exec:postcss-docs']);
grunt.registerTask('lint-docs-css', ['scsslint:docs']);
grunt.registerTask('lint-docs-css', ['exec:scss-lint-docs']);
grunt.registerTask('docs-js', ['uglify:docsJs']);
grunt.registerTask('docs', ['lint-docs-css', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs']);
grunt.registerTask('docs-github', ['jekyll:github']);
Expand Down
Loading

0 comments on commit ba86c31

Please sign in to comment.