Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/learnyounode
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node

require('../learnyounode').execute(process.argv.slice(2))
require('../learnyounode').execute(process.argv.slice(2))
6 changes: 6 additions & 0 deletions lib/docbuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var createDocs = require('node-offline-api')
var fs = require('fs')

fs.stat('../node-apidoc', function (err) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try to avoid modules without an export, can this module also wrap the operation in a module?

if (err.code === 'ENOENT') { createDocs(process.cwd(), 'node_apidoc') }
})
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"combined-stream": "^1.0.8",
"concat-stream": "^2.0.0",
"duplexer": "^0.1.1",
"node-offline-api": "0.12.0",
"hyperquest": "^2.1.3",
"rimraf": "^3.0.0",
"through": "^2.3.8",
Expand All @@ -81,7 +82,9 @@
"scripts": {
"download-node-docs": "./tools/download-node-docs.sh",
"lint": "./node_modules/.bin/standard",
"test": "npm run lint && ./node_modules/.bin/workshopper-adventure-test"
"test": "npm run lint && ./node_modules/.bin/workshopper-adventure-test",
"release": "./node_modules/.bin/standard-version",
"postinstall": "node ./lib/docbuild.js"
},
"bin": {
"learnyounode": "./bin/learnyounode"
Expand Down