0.1.0 β€’ Published 2 years ago

@we-mobius/mobius-pipeline v0.1.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
2 years ago

πŸ–‡οΈ 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/file

How 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.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

Built With

Author

  • Cigaret - kcigaret@outlook.com

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.