0.0.1 • Published 7 years ago
ionic-sub v0.0.1
Ionic-sub CLI
This is command line interface (CLI) for support Ionic apps.
Install
$ npm i @rdlabo/ionic-sub -g- The corresponding version of nodejs is version 8 or higher!
Usage
Just run the command!
$ ionic-sub set lint
$ ionic-sub set prettier
$ ionic-sub set aliasset
set lint
This command rewrite tslint.json base of Angular 6.
npm install codelyzer --save-dev (v3:ionic-angular only)- rewrite ./tslint.json
set prettier
Import prettier and auto set pre-commit.
npm install prettier @kaizenplatform/prettier-config pre-commit --save-dev- add prettier.config.js
- add package.json script
prettierandpre-commit
set alias
* NOW v3 ONLY COMMAND
You can use @ alias. @ connect src folder. so you can write.
import { HomePage } from '../pages/home/home';
↓
import { HomePage } from '@/pages/home/home';import { Example } from '../../providers/example/example';
↓
import { HomePage } from '@/providers/example/example';And you can use environment file. This change --prod or none.
import { environment } from '@app/environment';
console.log(environment)Environment file create src/environments. If you add command --prod, environment is environment/environment.prod.ts.
Or nothing, environment is environment/environment.dev.ts.
License
Others
I'm waiting for you at any time, including code reviews, bug reports, feature additions, questions and more!
0.0.1
7 years ago