lcna
v1.0.7
Published
little create node app(lcna)
Maintainers
Readme
Little Create Node App (lcna)
Quick start your npm project. We support basic node app, express app and web app.
Installation
npm install -g lcnaQuick Start With Express App
The quickest way to get started with express. Just a few questions.
Create the express app:
$ lcna
? Project Name: myapp
? Template Usage: express
? Tool: flow, eslint
? Log: winston
? CI: .gitlab-ci
? JSON Web Token (JWT): NoInstall dependencies:
$ npm installStart your Express.js app at http://localhost:3000/:
$ npm startBuild your project for deploy.
$ npm run buildA Few Questions
? Project Name:
Your project name and used to create a folder
? Template Usage: app/express/web
choose you want generator project
? Tool: eslint, flow
flow: static variable type check
eslint: Help you improve code quality
? Log: winston, winston+rollbar
winston: help you write log file
rollbar: rollbar log repository
? CI: .gitlab-ci
.gitlab-ci: use gitlab ci
? JSON Web Token (JWT): Yes/no
request way.
Project Script
"scripts": {
"start": start your app
"test": jest test
"build": build project for deploy
"flow": flow all file.
"lint": eslint a file that you choose.
"eslint": eslint all file.
}Note
You need add flow typed to resolve test file, if you use flow.
npm i --save-dev flow-typed
./node_modules/.bin/flow-typed install jest