Commit 5c4b84c0 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Utilise load-grunt-tasks.

parent e1c2c028
const readdirp = require("readdirp");
const loadGruntTasks = require("load-grunt-tasks");
const {
extname,
dirname,
......@@ -102,11 +103,7 @@ module.exports = grunt => {
clean: ["dist/**"]
});
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-http-server");
grunt.loadNpmTasks("grunt-watcher");
loadGruntTasks(grunt, { pattern: ["grunt-*"] });
grunt.registerTask("default", ["build"]);
grunt.registerTask("serve", ["http-server", "build:dev", "watcher"]);
......
This diff is collapsed.
......@@ -30,9 +30,10 @@
"reveal.js": "git+https://gitlab.irstea.fr/guillaume.perreal/reveal.js.git#irstea"
},
"devDependencies": {
"prettier": "^6.5.1",
"husky": "^1.3.1",
"lint-staged": "^8.2.1"
"lint-staged": "^8.2.1",
"load-grunt-tasks": "^5.1.0",
"prettier": "^6.5.1"
},
"husky": {
"pre-commit": "lint-staged"
......
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