📜 English Doc | 📜 中文文档
🖇️ Nothing but another next generation JavaScript tool chain.
...
Using npm install @we-mobius/mobius-pipeline -D
to install it in local or using npm install @we-mobius/mobius-pipeline -g
to install it in global.
# locally use
npx mow run ./path/to/ts/file
# globally use
mow run ./path/to/ts/file
Clone the repo to your local machine and initialize it via npm install
.
Since you are prepared, run npm run build-loader
at first, you will get an esm-loader for Node.js interpreter.
Then you can use that loader to run any TypeScript file directly via Node.js. For example:
node --loader file://D://Root//Files//CodeSpace//mobius-project-workspace//mobius-pipeline//dist//support/loader.js .\\src\\executables\\build.ts
If you execute the command above, you've got a simpler runner, which can run any TypeScript file directly as well, in a nicer way.
node ./bin/mow.js run .\\public\\examples\\main.ts
As the mow.js
is declared as a executable in package.json
's bin
field, you can register it as a global command using npm install -g ./
. Then it can be invoked by mow
. For example:
mow run .\\public\\examples\\main.ts
- Mobius Utils 🤞
- somthing else...
- Cigaret - kcigaret@outlook.com
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.