bike

1.1.0 • Public • Published

bike

Easy build nodejs code to safe deploy to other service.

bike

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

Readme

Keywords

none

Package Sidebar

Install

npm i bike

Weekly Downloads

4

Version

1.1.0

License

none

Unpacked Size

26.2 kB

Total Files

10

Last publish

Collaborators

  • ymblender