mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
1️⃣ #32 setup unit test first dumb test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
<h1 align="center">Alfresco Angular 2 Components</h1>
|
||||
<p align="center">
|
||||
<img title="alfresco" alt='alfresco' src='../assets/alfresco.png' width="200px" height="150px" ></img>
|
||||
<img title="alfresco" alt='alfresco' src='../assets/alfresco.png' width="280px" height="150px" ></img>
|
||||
<img title="angular2" alt='angular2' src='../assets/angular2.png' width="150px" height="150px" ></img>
|
||||
</p>
|
||||
<p align="center">
|
||||
@@ -11,11 +11,11 @@
|
||||
</p>
|
||||
|
||||
|
||||
### Prerequisites
|
||||
## Prerequisites
|
||||
|
||||
- [Alfresco Docker image with CORS support](https://github.com/wabson/alfresco-docker-cors)
|
||||
|
||||
### Start development
|
||||
## Start development
|
||||
|
||||
Install the npm packages described in the `package.json` and verify that it works:
|
||||
|
||||
@@ -32,23 +32,27 @@ Remember the npm scripts in `package.json`:
|
||||
* To runs the compiler and a server at the same time, both in "watch mode"
|
||||
|
||||
```$ npm start```
|
||||
|
||||
* To runs the test
|
||||
|
||||
```$ npm test```
|
||||
|
||||
* To runs the TypeScript compiler once
|
||||
|
||||
```$ npm run tsc``
|
||||
```$ npm run tsc```
|
||||
|
||||
* To runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them
|
||||
|
||||
```$ npm run tsc:w``
|
||||
```$ npm run tsc:w```
|
||||
|
||||
* To runs the [lite-server](https://www.npmjs.com/package/lite-server), a light-weight, static file server, written and maintained by [John Papa](https://github.com/johnpapa) and [Christopher Martin](https://github.com/cgmartin) with excellent support for Angular apps that use routing.
|
||||
|
||||
```$ npm run lite``
|
||||
```$ npm run lite```
|
||||
|
||||
* To runs the typings tool
|
||||
|
||||
```$ npm run typings``
|
||||
```$ npm run typings```
|
||||
|
||||
* called by *npm* automatically *after* it successfully completes package installation. This script installs the TypeScript definition files this app requires
|
||||
|
||||
```$ npm run postinstall``
|
||||
```$ npm run postinstall```
|
||||
|
Reference in New Issue
Block a user