-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vitaly Puzrin
committed
May 19, 2020
1 parent
86fe8e2
commit 4f7fe86
Showing
5 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
|
||
/* eslint-env es6 */ | ||
|
||
const shell = require('shelljs'); | ||
|
||
shell.rm('-rf', 'demo'); | ||
shell.mkdir('demo'); | ||
|
||
shell.exec('support/demodata.js > support/demo_template/sample.json'); | ||
|
||
shell.exec('node_modules/.bin/pug support/demo_template/index.pug --pretty \ | ||
--obj support/demo_template/sample.json \ | ||
--out demo'); | ||
|
||
shell.exec('node_modules/.bin/stylus -u autoprefixer-stylus \ | ||
< ./support/demo_template/index.styl \ | ||
> ./demo/index.css'); | ||
|
||
shell.rm('-rf', 'support/demo_template/sample.json'); | ||
|
||
shell.exec('node_modules/.bin/browserify ./support/demo_template/index.js \ | ||
> ./demo/index.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
|
||
/* eslint-env es6 */ | ||
|
||
const shell = require('shelljs'); | ||
|
||
shell.rm('-rf', 'doc'); | ||
|
||
const head = shell.exec('git show-ref --hash HEAD').stdout.slice(0, 6); | ||
|
||
const link_format = `https://github.com/{package.repository}/blob/${head}/{file}#L{line}`; | ||
|
||
shell.exec(`node node_modules/.bin/ndoc --link-format "${link_format}"`); |