https://github.com/groupe-sii/clea-cli
CLI tool for AngularJS & Typescript projects
https://github.com/groupe-sii/clea-cli
angularjs clea-cli cli progressive-web-app typescript
Last synced: 5 months ago
JSON representation
CLI tool for AngularJS & Typescript projects
- Host: GitHub
- URL: https://github.com/groupe-sii/clea-cli
- Owner: groupe-sii
- License: mit
- Created: 2017-03-09T14:40:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T04:16:21.000Z (over 3 years ago)
- Last Synced: 2025-11-23T02:16:20.515Z (7 months ago)
- Topics: angularjs, clea-cli, cli, progressive-web-app, typescript
- Language: JavaScript
- Homepage:
- Size: 2.35 MB
- Stars: 8
- Watchers: 16
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
CLI tool for AngularJS & Typescript projects
---
The CLI requires NodeJS >= 8.9.0 and NPM 5 or higher.
# Usage
## Installation
```bash
npm install @clea/cli -g
```
## Options
```bash
clea help
# or
clea help [command]
```
# How to start ?
```bash
clea new
cd
clea serve
```
Go to http://localhost:8080/. Hot reload is active by default.
To see the `clea serve` options & details, go check the [documentation](https://groupe-sii.github.io/clea-cli/docs/commands/serve.html).
## Progressive Web App
You can generate the basics of a Progressive Web App support with the following `clea new --make-it-progressive`.
[Learn more](https://groupe-sii.github.io/clea-cli/docs/more/make-it-progressive.html)
# Generate some entities
The `clea generate` command allows you to easily generate entities in your application.
```bash
clea generate [entity] my-new-entity
# Support relative path
# If you are under the src/app/feature/ folder, and launch:
clea generate [entity] my-new-entity
# Your new entity will be generated under the src/app/feature/my-new-entity folder
# But, if you are still in the src/app/feature/ folder, and launch:
clea generate [entity] ../my-newer-entity
# Your entity will be generated in the src/app/my-newer-entity folder
```
Available entities:
Entity | Usage
--- | ---
Component | `clea generate component my-new-component`
Directive | `clea generate directive my-new-directive`
Filter | `clea generate filter my-new-filter`
Service | `clea generate service my-new-service`
Module | `clea generate module my-new-module`
[Learn more](https://groupe-sii.github.io/clea-cli/docs/commands/generate.html)
# Upgrade Clea
To upgrade Clea to it's latest version, you must upgrade the global and local package.
For the global package:
```bash
npm uninstall -g @clea/cli
npm cache clean
npm install -g @clea/cli
```
For a local project:
```bash
rm node_modules -rf
npm install --save-dev @clea/cli
npm install
```
# License
MIT License