@we-mobius/mobius-pipeline v0.1.0
ποΈ Nothing but another next generation JavaScript tool chain.
Details
...
Documentation
How to use?
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/fileHow to dev?
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.tsIf 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.tsAs 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.tsBuilt With
- Mobius Utils π€
- somthing else...
Author
- Cigaret - kcigaret@outlook.com
License
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
3 years ago