bike
Easy build nodejs code to safe deploy to other service.
argv
--watch
--dev
--build
--crypto
--byte
--crypto-byte
--browser
Develop
Build code to nodejs, hot reload in your coding code, auto copy static
or public
dir to output dir.
bike src/index.ts dist/index.js --dev
Build
Build code to nodejs in one file, auto copy static
or public
dir to output dir.
bike src/index.ts dist/index.js --build
Build to crypto
Build code to nodejs and crypto your source code.
bike src/index.ts dist/index.js --crypto
Build to bytecode
Build code to v8 bytecode.
# project need install bytenode
npm install --save-dev bytenode
bike src/index.ts dist/index.js --byte
Build to crypto + bytecode
Build code to nodejs, crypto and build v8 bytecode.
# project need install bytenode
npm install --save-dev bytenode
bike src/index.ts dist/index.js --crypto-byte
Browser
Build code to browser, need out a dir, builwatch and build split code.
bike src/index.ts dist --browser
Kill port on run
Run dev and kill 5000 port last time.
bike src/index.ts dist/index.js --dev 5000
Use args
Other args after --
:
bike src/index.ts dist/index.js --dev 5000 node -- --experimental-fetch