mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Clean Up the Contributing Documentation and Process: Part III
* Remove PostCSS from Grunt. * Add StyleLint to Grunt.
This commit is contained in:
parent
1a54bafdd5
commit
a90f2cb156
19
Gruntfile.js
19
Gruntfile.js
@ -8,21 +8,16 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
target: ["js/*.js", "modules/default/*.js", "serveronly/*.js", "*.js"]
|
target: ["js/*.js", "modules/default/*.js", "serveronly/*.js", "*.js"]
|
||||||
},
|
},
|
||||||
postcss: {
|
stylelint: {
|
||||||
lint: {
|
simple: {
|
||||||
options: {
|
options: {
|
||||||
processors: [
|
configFile: ".stylelintrc"
|
||||||
require("stylelint")({"extends": "stylelint-config-standard", "font-family-name-quotes": "double-where-recommended"}),
|
|
||||||
require("postcss-reporter")({ clearMessages: true })
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
dist: {
|
src: "**/**/**/**/**/**/**/**/*.css"
|
||||||
src: "**/**/**/**/**/**/**/**.css"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
grunt.loadNpmTasks("grunt-eslint");
|
grunt.loadNpmTasks("grunt-eslint");
|
||||||
grunt.loadNpmTasks("grunt-postcss");
|
grunt.loadNpmTasks("grunt-stylelint");
|
||||||
grunt.registerTask("default", ["eslint", "postcss:lint"]);
|
grunt.registerTask("default", ["eslint", "stylelint"]);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user