ionic-sub
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

oclif Build Status npm version MIT License

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 alias

set

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 prettier and pre-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

MIT

Others

I'm waiting for you at any time, including code reviews, bug reports, feature additions, questions and more!

Readme

Keywords

Package Sidebar

Install

npm i ionic-sub

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

198 kB

Total Files

11

Last publish

Collaborators

  • rdlabo