File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
require ( '../learnyounode' ) . execute ( process . argv . slice ( 2 ) )
4
+
5
+ if ( process . argv . slice ( 2 ) == 0 ) {
6
+ require ( '../lib/docbuild' )
7
+ }
Original file line number Diff line number Diff line change 1
- var createDocs = require ( 'node-offline-api' )
1
+ var createDocs = require ( 'node-offline-api' ) . createDocs
2
+ var buildOptions = require ( 'node-offline-api' ) . buildOptions
2
3
var fs = require ( 'fs' )
3
4
5
+ buildOptions . buildDir = process . cwd ( )
6
+ buildOptions . buildName = 'node_apidoc'
7
+
4
8
fs . stat ( '../node-apidoc' , function ( err ) {
5
- if ( err . code === 'ENOENT' ) { createDocs ( process . cwd ( ) , 'node_apidoc' ) }
9
+ if ( err ) { createDocs ( ) }
6
10
} )
Original file line number Diff line number Diff line change 66
66
"concat-stream" : " ^1.5.1" ,
67
67
"duplexer" : " ^0.1.1" ,
68
68
"hyperquest" : " ^2.0.0" ,
69
- "node-offline-api" : " 0.12 .0" ,
69
+ "node-offline-api" : " 0.11 .0" ,
70
70
"rimraf" : " ^2.5.4" ,
71
71
"through" : " ^2.3.8" ,
72
72
"through2" : " ^2.0.1" ,
81
81
"workshopper-adventure-test" : " ^1.1.2"
82
82
},
83
83
"scripts" : {
84
- "lint" : " ./node_modules/.bin/standard" ,
84
+ "lint" : " ./node_modules/.bin/standard --fix " ,
85
85
"test" : " npm run lint && ./node_modules/.bin/workshopper-adventure-test" ,
86
- "release" : " ./node_modules/.bin/standard-version" ,
87
- "postinstall" : " node ./lib/docbuild.js"
86
+ "release" : " ./node_modules/.bin/standard-version"
88
87
},
89
88
"bin" : {
90
89
"learnyounode" : " ./bin/learnyounode"
You can’t perform that action at this time.
0 commit comments