Skip to content

Commit

Permalink
reduce amount of noise, and add postinstall script to create docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MutableLoss committed Mar 11, 2018
1 parent ed2bee4 commit 9c7fbf8
Show file tree
Hide file tree
Showing 4 changed files with 8,355 additions and 13 deletions.
4 changes: 0 additions & 4 deletions bin/learnyounode
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/usr/bin/env node

require('../learnyounode').execute(process.argv.slice(2))

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

buildOptions.buildDir = process.cwd()
buildOptions.buildName = 'node_apidoc'

fs.stat('../node-apidoc', function (err) {
if (err) { createDocs() }
if (err.code === 'ENOENT') { createDocs(process.cwd(), 'node_apidoc') }
})
Loading

0 comments on commit 9c7fbf8

Please sign in to comment.