File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22.DS_Store
33.vscode /
44node_modules /
5- yarn.lock
5+ yarn.lock
6+ bin /
Original file line number Diff line number Diff line change 99 - ./node_modules
1010install :
1111 - npm install
12+ - npm run build
Original file line number Diff line number Diff line change 1- #!/usr/bin/env node
2-
3- "use strict" ;
1+ const chalk = require ( "chalk" ) ;
2+ const updateNotifier = require ( "update-notifier" ) ;
43
54const pkg = require ( "../package.json" ) ;
65const run = require ( "../lib" ) ;
7- const chalk = require ( "chalk" ) ;
8- const updateNotifier = require ( "update-notifier" ) ;
96
107updateNotifier ( { pkg : pkg } ) . notify ( ) ;
118
Original file line number Diff line number Diff line change 2222 "docsify" : " bin/docsify"
2323 },
2424 "scripts" : {
25- "test" : " ava e2e/index.js" ,
26- "release" : " standard-version"
25+ "test" : " ava e2e/index.js" ,
26+ "release" : " standard-version" ,
27+ "prebuild" : " rimraf bin" ,
28+ "build" : " rollup -c" ,
29+ "prerelease" : " npm run build"
2730 },
2831 "files" : [
2932 " bin" ,
5255 "cors" : " ^2.8.1" ,
5356 "eslint" : " ^6.5.1" ,
5457 "execa" : " ^4.0.0" ,
58+ "rimraf" : " ^3.0.0" ,
59+ "rollup" : " ^1.27.13" ,
60+ "rollup-plugin-executable" : " ^1.5.2" ,
5561 "standard-version" : " ^7.0.1"
5662 },
5763 "keywords" : [
Original file line number Diff line number Diff line change 1+ import executable from "rollup-plugin-executable" ;
2+
3+ module . exports = {
4+ input : "lib/cli.js" , // Entry file
5+ plugins : [ executable ( ) ] ,
6+ output : {
7+ file : "bin/docsify" ,
8+ format : "cjs" , // Compiles to CJS
9+ banner : "#!/usr/bin/env node" // Adds node shebang on top of the file
10+ }
11+ } ;
You can’t perform that action at this time.
0 commit comments