@rdlabo/ionic-sub
operate ionic project
Last updated 6 months ago by rdlabo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @rdlabo/ionic-sub 
SYNC missed versions from official npm registry.

oclif Donate Build Status npm version MIT License

Ionic-sub CLI

This is private command line interface (CLI) for support Ionic CLI. This CLI support for developing Ionic Framework Project.

Install

$ npm i @rdlabo/ionic-sub -g
  • The corresponding version of nodejs is version 8 or higher!

Usage

Just run the command!

set

$ ionic-sub set all
$ ionic-sub set lint
$ ionic-sub set formatter
$ ionic-sub set alias

set all

This command run all set environment. it's recommended;

set lint

This command rewrite tslint.json base of Angular 6.

set formatter

This command set formatter. Import prettier and set package.json.

set alias

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. (This is ionic-angular(v3) only. angular(v4) have default environment file)

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.

beta: set mount

This command is angular(v4) only. Add this development file.

  • src/app/components/components.module.ts
  • src/app/directives/directives.module.ts
  • src/app/pipes/pipes.module.ts
  • src/interfaces/index.ts

server

$ ionic-sub server netlify -d example.com

server netlify

This command create Netlify's build file. This file auto set this.

  1. create robot.txt.
  2. create _redirects for redirect to www.
  3. create _headers for ServerPush.
  4. change styles inline. (v4 only)

You should add Build command node netlify.build.js in Netlify's deploy setting.

License

MIT

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Donate

Others

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

Current Tags

  • 0.4.2                                ...           latest (6 months ago)

13 Versions

  • 0.4.2                                ...           6 months ago
  • 0.4.1                                ...           6 months ago
  • 0.4.0                                ...           6 months ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           a year ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 14
Dependencies (8)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |