Skip to content

Latest commit

 

History

History
112 lines (83 loc) · 4.05 KB

File metadata and controls

112 lines (83 loc) · 4.05 KB

Contributing

📣 Support/Questions?: Please see our Support Page for general support questions. The issues on GitHub should be reserved for bug reports and feature requests.

Bug Reports

Run the command(s) with --verbose to produce debugging output. We may ask for the full command output, including debug statements.

Please also copy/paste the output of the ionic info command into your issue and be as descriptive as possible. Include any steps that might help us reproduce your issue.

Feature Requests

Post an issue describing your feature to open a dialogue with us. We're happy to hear from you!

Pull Requests

Pull requests are most welcome! But, if you plan to add features or do large refactors, please open a dialogue with us first by creating an issue. Small bug fixes are welcome any time.

Help Wanted

Looking for small issues to help with? You can browse the help wanted label. These are issues that have been marked as great opportunities for someone's first PR to the Ionic CLI. 😍

Local Setup

Structure

Our CLI is organized into a monorepo. Common tools, such as TypeScript and Jest, are installed in the base directory while package dependencies are each installed in their respective packages/**/node_modules directories.

Each packages/* folder represents a package on npm.

Toolset

  • npm 5 is required.
  • Node 8+ is required.
  • Our codebase is written in TypeScript. If you're unfamiliar with TypeScript, we recommend using VS Code and finding a tutorial to familiarize yourself with basic concepts.
  • Our test suite uses Jest.

Setup

  1. Fork the repo & clone it locally.
  2. npm install to install the dev tools.
  3. npm run bootstrap (will install package dependencies and link packages together)
  4. Optionally npm run link to make ionic and other bin files point to your dev CLI.
  5. npm run watch will spin up TypeScript watch scripts for all packages.
  6. TypeScript source files are in packages/**/src.
  7. Good luck! 💪 Please open an issue if you have questions or something is unclear.
  8. If node-sass error occurs, you should add permission npm. ex) sudo chown -R $(whoami) ~/.npm

Running Dev CLI

Switch to dev CLI:

$ npm uninstall -g ionic
$ npm run link

Switch back to stable CLI:

$ npm run unlink
$ npm install -g ionic
Code Structure

TODO: Be helpful about where to look for commands, utilities, etc.

Publishing Steps
  1. Cancel any watch scripts.

  2. Write notable changes in the package(s)'s CHANGELOG.md file(s).

  3. For...

    • ...testing releases: npm run publish:testing
    • ...canary releases: npm run publish:canary
    • ...stable releases: npm run publish