Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
Adding mvn clean to clear out dist, node_modules, node directories + …
Browse files Browse the repository at this point in the history
…updated the README.MD with latest instructions on build
  • Loading branch information
rareddy committed Nov 7, 2018
1 parent 0a48fea commit 5f74376
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
26 changes: 16 additions & 10 deletions ui/README.md
Expand Up @@ -2,31 +2,37 @@

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.3.2.

## Running with [Nodejs](https://nodejs.org)

Execute `npm start` to serve the Angular app using nodejs. Navigate to `http://localhost:8080`. This command is meant for production and the files in the `dist` directory will have to be recompiled for code changes to be displayed.

## Development server

Execute `npm start -- -d` for a development server. Navigate to `http://localhost:8080/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
If you have maven installed run `mvn clean install`, this will install the YARN and dependency resolve your modules and build and test your project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

You can also run `ng build` locally to build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
In addtion to above maven test, you can also Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.

## Building the "Data Services NPM Component" locally

Run `ng build beetle-studio-lib`, this will generate a `dist/lib` folder which will have the required files for publishing.

## Publishing the "Data Services NPM Component" to NPM.JS
```
ng build beetle-studio-lib
cd dist/lib
npm login
npm publish
```

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
28 changes: 27 additions & 1 deletion ui/pom.xml
Expand Up @@ -126,7 +126,33 @@
</configuration>
</execution>
</executions>
</plugin>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>node_modules</directory>
<includes>
<include>**</include>
</includes>
</fileset>
<fileset>
<directory>node</directory>
<includes>
<include>**</include>
</includes>
</fileset>
<fileset>
<directory>dist</directory>
<includes>
<include>**</include>
</includes>
</fileset>
</filesets>
<followSymlinks>false</followSymlinks>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 5f74376

Please sign in to comment.