Vitaly Puzrin
5 years ago
3 changed files with 37 additions and 31 deletions
@ -0,0 +1,29 @@ |
|||
#!/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 ./ -s markdownit \ |
|||
> demo/markdown-it.js'); |
|||
shell.exec('node_modules/.bin/browserify support/demo_template/index.js \ |
|||
> demo/index.js'); |
|||
|
|||
shell.cp('support/demo_template/README.md', 'demo/'); |
Loading…
Reference in new issue