diff --git a/.esdoc.json b/.esdoc.json new file mode 100644 index 00000000..c58ec38f --- /dev/null +++ b/.esdoc.json @@ -0,0 +1,10 @@ +{ + "source": "src", + "destination": "docs/docs", + "plugins": [{ + "name": "esdoc-standard-plugin", + "option": { + "lint": {"enable": false} + } + }] +} diff --git a/Gruntfile.js b/Gruntfile.js index 4a6da5a6..282a1dd1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -164,13 +164,12 @@ module.exports = function (grunt) { } }, - esdoc: { - dist: { - options: { - source: 'src', - destination: 'docs/docs', - title: pkg.name + ' v' + pkg.version - } + shell: { + eslint: { + command: 'npm run lint' + }, + esdoc: { + command: 'npm run esdoc' } }, @@ -291,11 +290,14 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-webpack'); grunt.loadNpmTasks('grunt-babel'); - grunt.loadNpmTasks('grunt-esdoc'); + grunt.loadNpmTasks('grunt-shell'); grunt.loadNpmTasks('grunt-qunit-istanbul'); grunt.loadNpmTasks('grunt-contrib-stylus'); grunt.loadNpmTasks('grunt-gh-pages'); + grunt.registerTask('eslint', ['shell:eslint']); + grunt.registerTask('esdoc', ['shell:esdoc']); + grunt.registerTask('default', ['test', 'build', 'build-demos']); // Development server @@ -303,11 +305,11 @@ module.exports = function (grunt) { // Dev dev/build/watch cycle grunt.registerTask('dev', - ['webpack:dev', 'copy:dist', 'stylus:compile', 'watch:app']); + ['eslint', 'webpack:dev', 'copy:dist', 'stylus:compile', 'watch:app']); // Production build grunt.registerTask('build', - ['webpack:build', 'copy:dist', 'stylus:compile']); + ['eslint', 'webpack:build', 'copy:dist', 'stylus:compile']); // Build demos grunt.registerTask('dev-demos', ['build-demos', 'watch:templates']); @@ -316,7 +318,7 @@ module.exports = function (grunt) { // Build tests grunt.registerTask('build-test', - ['webpack:test', 'copy:dist', 'stylus:compile']); + ['eslint', 'webpack:test', 'copy:dist', 'stylus:compile']); // Transpile with Babel grunt.registerTask('dev-modules', ['babel', 'copy:dist']); diff --git a/dist/starter.html b/dist/starter.html index 70b77fe1..798ae303 100644 --- a/dist/starter.html +++ b/dist/starter.html @@ -1,10 +1,10 @@
-