Angular:4: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "== production build == <syntaxhighlight lang="bash"> # production build no source map, but hashing ng build --prod --aot --no-sourcemap # production build no source map, hash...")
 
No edit summary
Line 12: Line 12:


== ng4 with mvn integration ==
== ng4 with mvn integration ==
<pre>
 
/dev/jee/cko_workspaces/ecma_workspace/chorke-ecma-ng.log
/dev/jee/cko_workspaces/ecma_workspace/chorke-ecma-ng.log
    ├─ .git/
    ├─ .git/
    ├─ src/
    ├─ src/
    │  ├─ main/
    │  ├─ main/
    │  │  ├─ ant/
    │  │  ├─ ant/
    │  │  ├─ app/
    │  │  ├─ app/
    │  │  ├─ ng4/
    │  │  ├─ ng4/
    │  │  │  ├─ src
    │  │  │  ├─ src
    │  │  │  │  ├─ app/
    │  │  │  │  ├─ app/
    │  │  │  │  ├─ assets/
    │  │  │  │  ├─ assets/
    │  │  │  │  ├─ main.ts
    │  │  │  │  ├─ main.ts
    │  │  │  │  ├─ test.ts
    │  │  │  │  ├─ test.ts
    │  │  │  │  ├─ index.html
    │  │  │  │  ├─ index.html
    │  │  │  │  ├─ styles.css
    │  │  │  │  ├─ styles.css
    │  │  │  │  ├─ favicon.ico
    │  │  │  │  ├─ favicon.ico
    │  │  │  │  ├─ polyfills.ts
    │  │  │  │  ├─ polyfills.ts
    │  │  │  │  ├─ typings.d.ts
    │  │  │  │  ├─ typings.d.ts
    │  │  │  │  ├─ environments/
    │  │  │  │  ├─ environments/
    │  │  │  │  ├─ tsconfig.app.json
    │  │  │  │  ├─ tsconfig.app.json
    │  │  │  │  └─ tsconfig.spec.json
    │  │  │  │  └─ tsconfig.spec.json
    │  │  │  │   
    │  │  │  │   
    │  │  │  ├─ e2e/
    │  │  │  ├─ e2e/
    │  │  │  ├─ dist/ [ng build --prod --aot --no-sourcemap --output-hashing=none --vendor-chunk=false]
    │  │  │  ├─ dist/ [ng build --prod --aot --no-sourcemap --output-hashing=none --vendor-chunk=false]
    │  │  │  │  ├─ index.html
    │  │  │  │  ├─ index.html
    │  │  │  │  ├─ main.bundle.js
    │  │  │  │  ├─ main.bundle.js
    │  │  │  │  ├─ inline.bundle.js
    │  │  │  │  ├─ inline.bundle.js
    │  │  │  │  ├─ polyfills.bundle.js
    │  │  │  │  ├─ polyfills.bundle.js
    │  │  │  │  └─ styles.bundle.css
    │  │  │  │  └─ styles.bundle.css
    │  │  │  │
    │  │  │  │
    │  │  │  ├─ tslint.json
    │  │  │  ├─ tslint.json
    │  │  │  ├─ package.json
    │  │  │  ├─ package.json
    │  │  │  ├─ karma.conf.js
    │  │  │  ├─ karma.conf.js
    │  │  │  ├─ tsconfig.json
    │  │  │  ├─ tsconfig.json
    │  │  │  ├─ node_modules/
    │  │  │  ├─ node_modules/
    │  │  │  ├─ .angular-cli.json
    │  │  │  ├─ .angular-cli.json
    │  │  │  ├─ package-lock.json
    │  │  │  ├─ package-lock.json
    │  │  │  ├─ protractor.conf.js
    │  │  │  ├─ protractor.conf.js
    │  │  │  └─ README.md
    │  │  │  └─ README.md
    │  │  │
    │  │  │
    │  │  └─ resources/
    │  │  └─ resources/
    │  │   
    │  │   
    │  └─ test/
    │  └─ test/
    │      └─ resources/
    │      └─ resources/
   
   
    ├─ target/
    ├─ target/
    │  ├─ antrun/
    │  ├─ antrun/
    │  ├─ classes/META-INF/resources/static/
    │  ├─ classes/META-INF/resources/static/
    │  │    └─ log
    │  │    └─ log
    │  │            ├─ main.bundle.js
    │  │            ├─ main.bundle.js
    │  │            ├─ inline.bundle.js
    │  │            ├─ inline.bundle.js
    │  │            ├─ polyfills.bundle.js
    │  │            ├─ polyfills.bundle.js
    │  │            └─ styles.bundle.css
    │  │            └─ styles.bundle.css
    │  │
    │  │
    │  ├─ test-classes/
    │  ├─ test-classes/
    │  ├─ maven-archiver/
    │  ├─ maven-archiver/
    │  ├─ chorke-ecma-ng.log.css
    │  ├─ chorke-ecma-ng.log.css
    │  ├─ chorke-ecma-ng.log.jar
    │  ├─ chorke-ecma-ng.log.jar
    │  ├─ chorke-ecma-ng.log.js
    │  ├─ chorke-ecma-ng.log.js
    │  └─ chorke-ecma-ng.log.zip
    │  └─ chorke-ecma-ng.log.zip
    │   
    │   
    ├─ .gitignore
    ├─ .gitignore
    ├─ README.md
    ├─ README.md
    ├─ LICENSE
    ├─ LICENSE
    └─ pom.xml
    └─ pom.xml
</pre>

Revision as of 04:52, 8 November 2017

production build

# production build no source map, but hashing
ng build --prod --aot --no-sourcemap

# production build no source map, hashing and vendor
ng build --prod --aot --no-sourcemap --output-hashing=none --vendor-chunk=false

# production build no source map, hashing and vendor with build optimizer
ng build --prod --aot --no-sourcemap --output-hashing=none --vendor-chunk=false --build-optimizer

ng4 with mvn integration

/dev/jee/cko_workspaces/ecma_workspace/chorke-ecma-ng.log
    ├─ .git/
    ├─ src/
    │   ├─ main/
    │   │   ├─ ant/
    │   │   ├─ app/
    │   │   ├─ ng4/
    │   │   │   ├─ src
    │   │   │   │   ├─ app/
    │   │   │   │   ├─ assets/
    │   │   │   │   ├─ main.ts
    │   │   │   │   ├─ test.ts
    │   │   │   │   ├─ index.html
    │   │   │   │   ├─ styles.css
    │   │   │   │   ├─ favicon.ico
    │   │   │   │   ├─ polyfills.ts
    │   │   │   │   ├─ typings.d.ts
    │   │   │   │   ├─ environments/
    │   │   │   │   ├─ tsconfig.app.json
    │   │   │   │   └─ tsconfig.spec.json
    │   │   │   │   
    │   │   │   ├─ e2e/
    │   │   │   ├─ dist/ [ng build --prod --aot --no-sourcemap --output-hashing=none --vendor-chunk=false]
    │   │   │   │   ├─ index.html
    │   │   │   │   ├─ main.bundle.js
    │   │   │   │   ├─ inline.bundle.js
    │   │   │   │   ├─ polyfills.bundle.js
    │   │   │   │   └─ styles.bundle.css
    │   │   │   │
    │   │   │   ├─ tslint.json
    │   │   │   ├─ package.json
    │   │   │   ├─ karma.conf.js
    │   │   │   ├─ tsconfig.json
    │   │   │   ├─ node_modules/
    │   │   │   ├─ .angular-cli.json
    │   │   │   ├─ package-lock.json
    │   │   │   ├─ protractor.conf.js
    │   │   │   └─ README.md
    │   │   │
    │   │   └─ resources/
    │   │   
    │   └─ test/
    │       └─ resources/
    │
    ├─ target/
    │   ├─ antrun/
    │   ├─ classes/META-INF/resources/static/
    │   │     └─ log
    │   │             ├─ main.bundle.js
    │   │             ├─ inline.bundle.js
    │   │             ├─ polyfills.bundle.js
    │   │             └─ styles.bundle.css
    │   │
    │   ├─ test-classes/
    │   ├─ maven-archiver/
    │   ├─ chorke-ecma-ng.log.css
    │   ├─ chorke-ecma-ng.log.jar
    │   ├─ chorke-ecma-ng.log.js
    │   └─ chorke-ecma-ng.log.zip
    │   
    ├─ .gitignore
    ├─ README.md
    ├─ LICENSE
    └─ pom.xml