1.0.0 • Published 6 years ago
minro v1.0.0
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 minroCreating Project using cli
// goto you directory where you want to creat new project
cd ~
// run this command
minro generate project myappit will generate the application for you.
Starting / Running the code
// go inside the directory
cd myapp
// run npm or yarn install
npm install
// or if you using yarn then
yarn install
// to run dev envoirment using npm
npm run start:dev
// to run dev envoirment using yarn
yarn start:devCreating the distribution
// to create distribution using npm
npm run build
// to create distribution using yarn
yarn buildRun the distribution code
// using npm
npm start
// using yarn
yarn startEnviorment variables
there is file .env for envoirment variables you have to define variable like this
NODE_APP_API_URL=http://localhost:4000using 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 npm
npm run lint
using yarn
yarn lintTesting
we using jest as testing framework that support es6+ syntax to do unit testing. to run the test
// using npm
npm test
// using yarn
yarn testLicense
MIT
1.0.0
6 years ago