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 11#!/usr/bin/env node
22
33require ( '../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
23var fs = require ( 'fs' )
34
5+ buildOptions . buildDir = process . cwd ( )
6+ buildOptions . buildName = 'node_apidoc'
7+
48fs . stat ( '../node-apidoc' , function ( err ) {
5- if ( err . code === 'ENOENT' ) { createDocs ( process . cwd ( ) , 'node_apidoc' ) }
9+ if ( err ) { createDocs ( ) }
610} )
Original file line number Diff line number Diff line change 6666 "concat-stream" : " ^1.5.1" ,
6767 "duplexer" : " ^0.1.1" ,
6868 "hyperquest" : " ^2.0.0" ,
69- "node-offline-api" : " 0.12 .0" ,
69+ "node-offline-api" : " 0.11 .0" ,
7070 "rimraf" : " ^2.5.4" ,
7171 "through" : " ^2.3.8" ,
7272 "through2" : " ^2.0.1" ,
8181 "workshopper-adventure-test" : " ^1.1.2"
8282 },
8383 "scripts" : {
84- "lint" : " ./node_modules/.bin/standard" ,
84+ "lint" : " ./node_modules/.bin/standard --fix " ,
8585 "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"
8887 },
8988 "bin" : {
9089 "learnyounode" : " ./bin/learnyounode"
You can’t perform that action at this time.
0 commit comments