https://github.com/ymzuiku/bike
fast coding typescript node-server
https://github.com/ymzuiku/bike
Last synced: 5 months ago
JSON representation
fast coding typescript node-server
- Host: GitHub
- URL: https://github.com/ymzuiku/bike
- Owner: ymzuiku
- Created: 2021-03-26T09:22:42.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-05T12:21:42.000Z (over 2 years ago)
- Last Synced: 2024-11-12T16:05:45.581Z (6 months ago)
- Language: JavaScript
- Size: 276 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
`--dev` = `--watch` + `--build`
```sh
bike src/index.ts dist/index.js --dev
```## Build
Build code to nodejs in one file.
```sh
bike src/index.ts dist/index.js --build
```## Only watch
Build code to nodejs in one file.
```sh
bike src/index.ts dist/index.js --watch
```## Build to crypto
Build code to nodejs and crypto your source code.
```sh
bike src/index.ts dist/index.js --crypto
```## Build to bytecode
Build code to v8 bytecode.
```sh
# 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.
```sh
# 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.
```sh
bike src/index.ts dist --browser
```## Kill port on run
Run dev and kill 5000 port last time.
```sh
bike src/index.ts dist/index.js --dev 5000
```## Use args
Other args after `--`:
```sh
bike src/index.ts dist/index.js --dev 5000 node -- --experimental-fetch
```