Skip to content

Commit

Permalink
Merge pull request #2518 from outofambit/npm-run-docs-dev
Browse files Browse the repository at this point in the history
add `npm run docs:dev`
  • Loading branch information
lmccart authored Jan 8, 2018
2 parents 99c35e1 + 8a407ad commit af80bda
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ module.exports = function(grunt) {
}
}
},
open: {
yui: {
path: 'http://0.0.0.0:9001/docs/reference/'
}
},
'saucelabs-mocha': {
all: {
options: {
Expand Down Expand Up @@ -391,6 +396,7 @@ module.exports = function(grunt) {
// Load the external libraries used.
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-contrib-watch');
Expand Down Expand Up @@ -433,6 +439,13 @@ module.exports = function(grunt) {
grunt.registerTask('test:nobuild', ['eslint:test', 'connect', 'mocha']);
grunt.registerTask('yui', ['yuidoc:prod', 'minjson', 'typescript']);
grunt.registerTask('yui:test', ['yuidoc:prod', 'connect', 'mocha:yui']);
grunt.registerTask('yui:dev', [
'yui:prod',
'browserify',
'connect',
'open:yui',
'watch:yui'
]);
grunt.registerTask('default', ['test']);
grunt.registerTask('saucetest', ['connect', 'saucelabs-mocha']);
};
197 changes: 197 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"grunt": "grunt",
"build": "grunt build",
"docs": "grunt yui",
"docs:dev": "grunt yui:dev",
"test": "grunt",
"lint": "grunt lint-no-fix",
"lint:fix": "grunt lint-fix",
Expand Down Expand Up @@ -68,6 +69,7 @@
"grunt-mocha": "^1.0.4",
"grunt-mocha-test": "^0.12.7",
"grunt-newer": "^1.1.0",
"grunt-open": "^0.2.3",
"grunt-release-it": "^1.0.1",
"grunt-saucelabs": "8.6.1",
"grunt-update-json": "^0.2.1",
Expand Down

0 comments on commit af80bda

Please sign in to comment.