Minro
This package enable a cli command to generate node es6 boilerplate that provide running node application using es6+ syntax. it also include bundling the node application so all you code combined in one file with minification so if you want to develop it you just need node installed and that single file.
Install
npm i -g minro
Creating Project using cli
// goto you directory where you want to creat new projectcd ~ // run this commandminro generate project myapp
it will generate the application for you.
Starting / Running the code
// go inside the directorycd myapp // run npm or yarn installnpm install // or
Creating the distribution
// to create distribution using npmnpm run build // to create distribution using yarnyarn build
Run the distribution code
// using npmnpm start // using yarnyarn start
Enviorment variables
there is file .env for envoirment variables you have to define variable like this
NODE_APP_API_URL=http://localhost:4000
using NODE_APP as a prefix then you b able to access then in you application
Linting
there is default config for lint you can change if you want that also include prettier to auto format you code
// using npmnpm run lint using yarnyarn lint
Testing
we using jest as testing framework that support es6+ syntax to do unit testing. to run the test
// using npmnpm test // using yarnyarn test
License
MIT