Mike Brocchi
f735760a34
fix(@angular/cli): Prevent re-reading config file if project & global are the same
...
Addresses #4207
2017-07-14 14:03:40 -07:00
Filipe Silva
6ad27c5174
fix(@angular/cli): always ignore node_modules for lint
...
Fix #6626
2017-07-14 14:02:45 -07:00
Hans Larsen
962b028e7c
fix(@ngtools/webpack): if the router is not found ignore lazy routes
...
Fixes #5967
If the router isnt in node_modules then there's no reason to fail, just pretend there are no lazy routes.
2017-07-14 11:59:57 -07:00
Filipe Silva
d4b64de427
build: pin zone.js
...
`zone.js@0.8.13` has some bugs that break our CI runs. These are being tracked in https://github.com/angular/zone.js/issues/832 .
Until a these are fixed and a new versions is released, we should pin to `zone.js@0.8.12`. Another PR should go up then and unpin to `zone.js@^0.8.14`.
2017-07-13 16:25:52 -07:00
Filipe Silva
ea592a1fde
ci: add Circle CI
2017-07-12 16:32:55 -07:00
Hans Larsen
634a04190d
release: 1.3.0-beta.1
2017-07-12 11:44:46 -07:00
Hans Larsen
d9d909ee73
ci: re-enable build e2e tests on travis
2017-07-12 09:15:37 -07:00
Hans Larsen
538a764186
ci: fix chrome race condition on travis
2017-07-11 18:02:32 -07:00
Hans Larsen
4918f0ddfe
ci: optionals use before_script instead of breaking install
2017-07-11 09:53:23 -07:00
Hans Larsen
489a3d6568
ci: optionals only on branches
2017-07-10 17:25:24 -07:00
Filipe Silva
fe85750cb7
feat(@angular/cli): add scope hoisting via webpack 3
...
This should result in significant bundle size reduction. For best results, build for production with `--vendor-chunk=false`.
See https://medium.com/webpack/webpack-3-official-release-15fd2dd8f07b for details.
2017-07-10 16:59:08 -07:00
Hans Larsen
2939379b40
ci: optionals only on branches, no silent for small tests
2017-07-10 16:23:02 -07:00
Hans Larsen
2b9d7fcbbc
ci: skip cleanup for deploy scripts
2017-07-10 15:36:02 -07:00
Hans Larsen
440a9d1a30
ci: add sharding for e2e tests
2017-07-10 13:20:14 -07:00
Filipe Silva
fd52246dfc
feat(@angular/cli): allow chunk names for imports
...
Followup to #6881
Also name chunks created via `import()` or `System.import()`, and strip `.ngfactory` from the chunk name.
2017-07-10 10:33:57 -07:00
Hans Larsen
37b98821e1
ci: extends timeout to 2 hours only for e2e tests
2017-07-07 15:08:47 -07:00
Hans Larsen
c63af81942
ci: simpler travis and better stages
2017-07-07 10:42:04 -07:00
Filipe Silva
f4479511f1
test(@angular/cli): disable sourcemaps by default in test suite
...
Note: this PR is for the repository test suite, not for project commands like `ng test`.
2017-07-07 09:27:22 -07:00
Hans Larsen
34171432bf
ci: add after_success script for pushing to builds, and deploy to travis.yml
2017-07-06 17:30:56 -07:00
Hans Larsen
fb5f04ca60
ci: add a publishing script for travis deployment
2017-07-06 17:30:56 -07:00
Filipe Silva
7f280499cd
feat(@angular/cli): add build defaults to config
...
Adds following defaults to `.angular-cli.json` under `defaults`: `sourcemaps`, `baseHref`, `progress`, `poll`, `deleteOutputPath`, `preserveSymlinks`, `showCircularDependencies`.
They can be set via `ng set defaults.build.KEY = VALUE`.
Also removes `apps.0.showCircularDependencies`. This is not a breaking chance since it was only added in 1.3.0-beta.0.
Followup to https://github.com/angular/angular-cli/pull/6884#discussion_r125533830 .
2017-07-06 15:03:19 -07:00
Filipe Silva
0c3b4f6906
test(@angular/cli): increase ng new acceptance timeout
2017-07-06 10:06:06 -07:00
Hans Larsen
91dc191010
docs: remove CHANGELOG link from README
2017-07-06 10:05:38 -07:00
Filipe Silva
2780c3d7ab
fix(@angular/cli): use inline sourcemaps in test
...
Fix #6737
2017-07-05 18:47:51 -07:00
Filipe Silva
79cb1449b1
docs: add multiple apps story to story list
2017-07-05 18:47:11 -07:00
Alexandr Marchenko
b0576d6d05
fix(@angular/cli): check package manager existance before installing packages
2017-07-05 16:47:47 -07:00
Filipe Silva
6ca34c6bab
fix(@ngtools/webpack): better AoTPlugin instance error
...
Currently, having multiple @ngtools/webpack installed yields a cryptic error in typescript:
```
ERROR in ./src/main.ts
Module build failed: TypeError: Cannot read property 'newLine' of undefined
```
This happens because a plugin is found, but it isn't an instance of the right class. This makes the loader assume it's being ran without a plugin (just transpiling TS). Then it tries to load a missing tsconfig and the error above is shown.
This PR introduced better errors for both the wrong plugin instance and missing tsconfig.
```
ERROR in ./src/main.ts
Module build failed: Error: AotPlugin was detected but it was an instance of the wrong class.
This likely means you have several @ngtools/webpack packages installed.You can check this with `npm ls @ngtools/webpack`, and then remove the extra copies.
at Object.ngcLoader (D:\work\cli\packages\@ngtools\webpack\src\loader.ts:371:19)
@ multi ./src/main.ts
```
```
ERROR in ./src/main.ts
Module build failed: Error: @ngtools/webpack is being used as a loader but no `tsConfigPath` option norAotPlugin was detected. You must provide at least one of these.
at Object.ngcLoader (D:\work\cli\packages\@ngtools\webpack\src\loader.ts:442:19)
@ multi ./src/main.ts
```
See https://github.com/angular/angular-cli/issues/3781#issuecomment-272284110 and https://github.com/angular/angular-cli/issues/3781#issuecomment-311330967 for context.
2017-07-05 16:28:12 -07:00
Michael Prentice
7f3471aefe
docs: update npm-link docs URL
2017-07-05 16:17:31 -07:00
Filipe Silva
ac2fec47eb
fix(@angular/cli): don't set baseUrl in editor tsconfig
...
Fix https://github.com/angular/angular-cli/issues/5875
2017-07-05 16:11:18 -07:00
Hans Larsen
bcd0d01015
ci: use tar balls instead of npm install /path
...
Node 8 actually symlink when installing a path, so using a tar ball forces it
to be more like a real install.
2017-07-05 15:57:04 -07:00
Hans Larsen
447f9f74be
ci: limit scope of optional tests on travis
2017-07-05 15:57:04 -07:00
Hans Larsen
4dcb3813e9
ci: fix ng2 tests
2017-07-05 15:57:04 -07:00
Hans Larsen
8c3aa67dd3
docs: remove CHANGELOG as its not useful anymore
2017-07-05 15:55:43 -07:00
Filipe Silva
5a0e80ffd3
feat(@angular/cli): name lazy chunks
...
Before:
```
$ ng build --no-progress
Hash: ff03df269349b817eef4
Time: 11202ms
chunk {0} 0.chunk.js, 0.chunk.js.map 1.61 kB {1} {3} [rendered]
chunk {1} 1.chunk.js, 1.chunk.js.map 1.46 kB {0} {3} [rendered]
chunk {2} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 160 kB {6} [initial] [rendered]
chunk {3} main.bundle.js, main.bundle.js.map (main) 6.38 kB {5} [initial] [rendered]
chunk {4} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kB {6} [initial] [rendered]
chunk {5} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.16 MB [initial] [rendered]
chunk {6} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
```
After:
```
$ ng build --no-progress
Hash: 2bc12a89f40f3b4818b5
Time: 9613ms
chunk {feature.module} feature.module.chunk.js, feature.module.chunk.js.map 1.46 kB {lazy.module} {main} [rendered]
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
chunk {lazy.module} lazy.module.chunk.js, lazy.module.chunk.js.map 1.61 kB {feature.module} {main} [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 6.38 kB {vendor} [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 160 kB {inline} [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kB {inline} [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.16 MB [initial] [rendered]
```
Fix #6700
2017-07-05 14:50:52 -07:00
Johannes Schramm
1c6179af85
fix(@angular/cli): adjust blueprint tslint.json rule semicolon
2017-07-05 14:27:24 -07:00
Johannes Schramm
f25ce49734
fix(@angular/cli): adjust blueprint tslint.json rule member-ordering
2017-07-05 14:27:24 -07:00
Filipe Silva
55b9d5ca0c
fix(@angular/cli): use a single exclamation mark for blueprint
...
...then shalt thou count to one, no more, no less. One shall be the number thou shalt count, and the number of the counting shall be one. Two shalt thou not count, neither count thou zeroth, excepting that thou then proceed to one. Three is right out.
2017-07-05 12:58:14 -07:00
James Ayvaz
36e4d7b4bb
feat(@angular/cli): read proxyConfig from angular-cli.json
...
easy proxy config by reading default from angular-cli.json (#6240 )
2017-07-05 11:45:52 -07:00
Sumit Arora
64e6b94908
fix(@angular/cli): fix directory issue
...
Closes #6444
2017-06-30 10:32:08 -07:00
Hans Larsen
6b21ee95f6
ci: upgrade the yarn.lock file
2017-06-29 15:05:43 -07:00
Charles Lyding
19969a4b53
test: convert acceptance tests to jasmine
2017-06-29 14:53:00 -07:00
Filipe Silva
304d4c87ef
release: 1.3.0-beta.0
2017-06-29 13:57:43 -07:00
Filipe Silva
28e4114785
feat(@angular/cli): followup changes to circular dependency detection
...
Flag is now positive instead of negative and shorter, and can now be set on commands as well (`--show-circular-dependencies`).
Dependency was also added to eject as per https://github.com/angular/angular-cli/pull/6813#issuecomment-311567074 .
2017-06-29 11:18:39 -07:00
Filipe Silva
ba5be2190b
ci: use --frozen-lockfile
...
Use `yarn --frozen-lockfile` to ensure up to date dependencies.
Thanks to @ishitatsuyuki for pushing for this change.
Followup to #6254 , #6772 .
Fix #6237 .
2017-06-29 19:09:07 +01:00
Charles Lyding
3dbd3ad88e
refactor(@angular/cli): remove unneeded rimraf dependency
2017-06-29 15:49:59 +01:00
Yaroslav Admin
70713bf076
feat(@angular/cli): add flag to specify environment for ng test command
2017-06-29 14:28:11 +01:00
mgechev
8bad46eef2
fix(@angular/cli): remove slash in the end of open tag
...
HTML5 void elements should not have a slash.
https://stackoverflow.com/questions/3558119/are-non-void-self-closing-tags-valid-in-html5
2017-06-28 15:01:44 +01:00
Daniel Rönnkvist
0c6a9c5beb
fix(@angular/cli): Changed init order to make sure all files gets committed
...
With the update of npm 5 and the introduction of package-lock.json all files weren't
committed into the first commit.
2017-06-28 14:49:05 +01:00
Luke Pettway
d133a05972
docs(@angular/cli): Update xi18n outfile argument string
...
Should be ` --out-file` which is what the cli shows when you use `ng xi18n --help` to list commands
2017-06-28 14:44:24 +01:00
Bram Borggreve
baf60dc83b
docs: add story about configuring HMR
2017-06-28 14:43:40 +01:00