Project

General

Profile

1
# omtd-platform
2

    
3
## First time
4
`npm intall` for all the dependencies.
5

    
6
## Build
7
For development `npm run build` and it can be deployed with `npm run start` using lite-server and browsersync.
8

    
9
For production `npm run build_prod` and it can be deployed with `npm run serve` using simple-angular-server.
10

    
11
To deploy to the simple server use `npm run serve`
12

    
13
## Develop
14

    
15
To make it easier to develop with watchdog support using `npm start` make the according changes in the `index.html` file.
16

    
17
### Release
18
Using `npm run build_prod` and `npm run serve`.
19

    
20
Uncomment this.
21
```javascript
22
<script src="dist/bundle.min.js"></script>
23
```
24

    
25
Comment this.
26
```javascript
27
<!--
28
<script>
29
    System.import('app').catch(function(err){ console.error(err); });
30
</script> 
31
-->
32
```
33

    
34
### Develop
35
Using `npm start`.
36

    
37
Comment this.
38
```javascript
39
<!-- <script src="dist/bundle.min.js"></script> -->
40
```
41
Uncomment this.
42
```javascript
43
<script>
44
    System.import('app').catch(function(err){ console.error(err); });
45
</script> 
46
```
(4-4/11)