UNPKG

glass-app-manager

Version:

Informatica's Glass Framework CLI for bootstrapping

76 lines (55 loc) 2.13 kB
# glass-app-manager > CLI for bootstrapping Informatica's Glass Framework. Glass framework is based on create-react-app ## Features - Easy-to-use CLI - Handles all modern JS features - Bundles `cjs` and `es` module formats - [create-react-app](https://github.com/facebookincubator/create-react-app) for example usage and local dev - [Rollup](https://rollupjs.org/) for bundling - [Babel](https://babeljs.io/) for transpiling - [Jest](https://facebook.github.io/jest/) for testing - Supports peer-dependencies - Supports CSS modules - Sourcemap creation ## Install This package requires `node >= 8`, but we recommend `node >= 10`. ```bash npm install -g glass-app-manager ``` ## Creating a New Module ```bash glass-app-manager some-app-name ``` Answer some basic prompts about your module, and then the CLI will perform the following steps: - copy over the template - install dependencies via npm - link packages together for local development ## Create or Update This CLI can be used for taking the latest release published by GLASS team. Use same bash command in parent folder to get latest from platform. This will not delete any folders related to product ```bash glass-app-manager some-app-name ## Development After you initialize a project with glass-app-manager, move to src/ folder for developement ```bash npm install ``` ```bash npm start ``` #### Publishing glass-app-manager to NPM Following are the steps to publish glass-app-manager to a repository: - Prerequisite: Take latest from depot to glass folder itself. `../../glass/` - We need to run build first: This will copy latest files from `../platform/` folder to `./target/` folder. - Check ` "publishConfig": { "registry": "https://registry.npmjs.org/" }` in package.json. This is repository URL where app will be published. Currently, we are publishing to npm. We will change it to an `Informatica` repository soon. - Update `version` in `package.json` - Now login to npm: ```bash npm login ``` - Provide username and password for npm: Current username: `iamarmishra` - Provide any email address & then run: ```bash npm run publish:app ```