An open API service indexing awesome lists of open source software.

https://github.com/stefanoschrs/ng-deploy

Angular & AngularJS deployer
https://github.com/stefanoschrs/ng-deploy

angular angular-cli angularjs

Last synced: about 1 month ago
JSON representation

Angular & AngularJS deployer

Awesome Lists containing this project

README

          

# Angular & AngularJS deployer

## Usage
```
cd my-app
ng-deploy --env dev --build --sync
```
- **env** string
Select environment
- **build**
Build project
- **sync**
Sync files
- **sync-type**
How to sync files: ssh, aws
- **backup**
Backup target

## Configuration
- Create a `.ng-deploy.json` file in your project dir with your **env** configurations (Example [here](.ng-deploy.example.json))
- Change your `package.json` accordingly to contain the **build:\** scripts:
```
{
"name": "my-app",
"scripts": {
...
"build:prod": "ng build --prod --aot --build-optimizer --base-href='https://www.google.com'",
"build:dev": "ng build --base-href='https://dev.google.com'",
...
}
}

```