-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
19 lines (17 loc) · 730 Bytes
/
Copy pathbuild.js
File metadata and controls
19 lines (17 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path');
const shell = require('shelljs');
console.log('rm -rf public...');
shell.rm('-rf',path.resolve(__dirname,'public'));
/*
* Render slides using marp-cli
* https://github.com/marp-team/marp-cli#readme
*/
console.log('src/slides -> public ...');
shell.exec('npx marp --html=true --theme ./src/slides/marp-ensg.css -I ./src/slides/ -o ./public/');
/*
* Copy src/slides/img to public/img
*/
console.log('src/slides/img -> public/img ...');
shell.cp('-r',path.resolve(__dirname,'src/slides/img'),path.resolve(__dirname,'public/.'))
console.log('src/slides/schema -> public/schema ...');
shell.cp('-r',path.resolve(__dirname,'src/slides/schema'),path.resolve(__dirname,'public/.'))