159 Commits

Author SHA1 Message Date
Charles Lyding
402349d763 test: remove unused code coverage infrastructure
Closes #13228
It is currently unused and requires an old version of the `source-map` package.  This old version conflicts with the use of newer versions that are required to provide the necessary functionality and performance within the published packages.
2019-08-08 08:26:15 -07:00
Charles Lyding
8ef7ba5a8d build: generate valid version when on release commit 2019-07-10 04:08:39 +08:00
Filipe Silva
97970026f1 ci: add circleci windows preview 2019-06-06 16:02:17 -07:00
Charles Lyding
3d313aede8 build: remove generation of inline sourcemaps 2019-03-25 13:00:20 -07:00
Hans Larsen
470ae53a63 fix(@angular/cli): don't remove scripts from package.json
This was dropped because we used to have postinstall scripts that
we did not want to use on npm. We don't anymore, so there's no
use in removing those scripts.
2019-03-25 12:37:05 -07:00
Hans Larsen
c0aa3d9a63 build: add reverse dependencies to packages map 2019-03-13 13:51:01 -07:00
Hans Larsen
08e91a94ab build: refactor QoL on monorepo.json
This should make it easier to manage and diff. This takes 2 things into account:
1. we have either stable or experimental versions and each are kept in monorepo.
2. we dont keep hash and update only changed packages.

This commit also removed the hash to make sure this does not happen.
2019-03-13 13:51:01 -07:00
Charles Lyding
1357ea2183 build: update minimum required Node.js version to 10.9 2019-03-11 13:46:48 -07:00
Hans Larsen
3c0bb12091 build: add bootstrap debug logs 2019-02-27 16:35:31 -08:00
Hans
8a796e7db5 test: downgrade output of typescript to es2016 for istanbul 2018-12-14 10:55:04 -08:00
Hans
2b3f9de403 refactor: use Buffer.from instead of deprecated constructor 2018-12-14 10:55:04 -08:00
Hans
a6f80e4fe7 Various QoL with TSLint and Docs (#12655)
* docs: add README files to all root folders

Except benchmark and tools.

* refactor: move rules/ directory to etc/

And fix a linting error that was found while updating tslint usage

* ci: lint errors out if TSLint shows a warning

This is not a warning from the code itself, but from TSLint. For example,
if a rule was missing, TSLint will just ignore the rule, show something on
STDOUT and not fail.

This fixes CI where local rules were missing for unknown reasons. It will
now fail CI when that happens, which is the correct behaviour.
2018-10-23 11:59:16 -07:00
Charles Lyding
b89f6b1c62 build: avoid swallowing module not found exception 2018-10-04 13:32:30 -07:00
Noel Mace
3de49db38e fix(@angular/cli): capture CPU profile
Replace the v8-profiler dependency with v8-profiler-node8 as the first one
doesn't support node 8 and 10, and that @angular/cli support only node 8
and 10.
2018-10-03 16:35:54 -07:00
Filipe Silva
b6793bd521 build: use specific engines for built packages 2018-09-14 13:56:43 -07:00
Hans
defe0cca06 build: support for JSON Schemas files in bootstrap-local 2018-09-13 16:44:17 -07:00
Hans Larsen
737ffad272 ci: bootstrap-local now prioritizes typescript files over JSON
The require() logic by default is not enough; require("file") would pick the json
if there are both a file.ts and file.json. This does not show up in prod because
js files are prioritized over json, but it does show up in bootstrap because we
compile ts in memory and there are no .js file on disk (which require()
could potentially see).

This is necessary for the schema change because schema.json and
schema.ts collides. We should also rename the commands from *-impl.ts to
just *.ts (they were named that way because of this conflict).
2018-09-13 16:44:17 -07:00
Filipe Silva
4a5973c37a build: workaround yarn tgz bug 2018-09-10 14:19:22 -07:00
Hans
c0f61dcb83 build: throw an exception when a package is not found in monorepo 2018-08-21 11:19:55 -07:00
Hans
56a97c1fc2 build: add support for yarn workspace in scripts 2018-08-21 11:19:55 -07:00
Charles Lyding
c729b0e7d9 build: use yarn workspaces 2018-08-10 18:25:32 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00
Charles Lyding
e54213e488 refactor(@angular/cli): remove resolve dependency 2018-05-14 16:38:03 -04:00
Dennis Sanders
bfa46656de refactor(@angular/cli): exclude builtin modules 2018-01-29 13:46:21 +00:00
Dennis Sanders
f724722914 fix(@angular/cli): exclude nodejs built-ins from process.cwd() resolve 2018-01-23 15:27:59 -08:00
Hans Larsen
dd9e69e1ae build: fix bootstrap-local when linked locally
Before it would try to load the package from the CLI project, as a
regular require() call, now it adds a check to see if it can be resolved
from the process.cwd(), before doing the previous behaviour.
2017-10-23 22:08:30 -07:00
Hans Larsen
23da9064fb build: use the tar files for dependencies for e2e
This adds a new flag to the build script that sets the tar files path as dependencies inside the package.json before tarring the files.
2017-08-02 13:41:06 -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
d928c1c8d4 tool(publish): adding a new tool infrastructure with a publish tool. 2017-03-27 17:34:39 -07:00
Filipe Silva
5c9c653f79 feat(@angular/cli): use standard stackTraceLimit (#5284)
Sometime very long ago we set infinite stack traces and never took them out.

This PR sets infinite stack traces only on dev setups.
2017-03-07 21:59:06 +00:00
Stephen Cavaliere
7b8f692973 fix(@angular/cli): ignore ts-node when attempting to run karma with a linked cli (#4997)
fixes #4568, #4177
2017-02-25 14:54:57 +00:00
Hans
601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00
Hans
61dd440f4d chore(packages): move packages into their own scope. (#3413)
This will facilitate management of packages internally.
2016-12-05 17:44:35 -08:00
Hans
28925dc3a6 chore(install): move ember cli in our repo and remove everything unnecessary (#3056)
* chore(install): move ember-cli to a directory in angular-cli
* further remove files
2016-11-10 02:34:23 +01:00
Hans
d29677815b feature(compiler): add support for AoT to the CLI. (#2333)
Also adding a new package, webpack, which is a plugin and loader for
webpack that adds support for AoT.

It is behind a `--aot` flag in the CLI that is supported by build and
serve.
2016-09-27 18:59:33 -07:00
Hans
1572270b1c refactor(all): Repackaging (#2056)
Moving Angular-CLI into `packages/` and building the angular-cli.

The published packages will now have JavaScript only (with their d.ts), instead of being a mix of TypeScript and JavaScript, and it won't have the hacks of having a custom require extension to load the TypeScript.

Our development flow will be more streamlined, tools are going to be better (no more undefined symbols that are actually defined), and the npm packages will boot up way faster (since there's no more compilation during runtime).

Locally nothing changes, use `npm link` and run your local `ng`. Using the `npm` releases though it should be all javascript from the release.

The E2E tests also now uses the `dist` folder output to install in the new E2E app, making sure the process works for an app published to npm.

Note: Even though we're following the lerna structure, we won't be using their tool anytime soon.
2016-09-12 13:29:10 -07:00
Filipe Silva
c41600a21f fix(bootstrap): fix windows node_modules path (#2037) 2016-09-10 00:07:13 +01:00
Hans
9703dfa79c refactor(tests): Refactor e2e tests entirely. (#1986) 2016-09-08 14:11:26 -07:00
Mike Brocchi
440d767469 chore(routes): remove lazy route prefix (#1928) 2016-08-31 23:17:12 -04:00
Hans
8be7096bf6 fix: fix compilation errors for the whole project (#1864) 2016-08-28 15:54:29 -07:00
Zhicheng Wang
80512bad15 fix: improve 'ember'->'ng' replacement
before: `ng g c member-list` output `create src/app/ng-list/ng-list.component.scss`.

after: `ng g c member-list` output ` create src/app/member-list/member-list.component.scss`.

Close #1405
Close #1829
2016-08-26 16:05:04 +01:00
Hans
b5e86c9fa9 feature: splitting the ast into its own packages (#1828) 2016-08-24 19:54:26 -07:00
Hans
1ecd72dc49 refactor(config): refactor the config object. (#1809)
This also will load angular-cli.json in the HOME directory as a fallback, supports more stuff from the JSON Schema (like default values) than the old one, and actually verify that what you inputs is the right thing.

This will be its own NPM package at some point, as other people will probably be interested in having a JSON Schema loader that gives type safety and provides fallbacks and metadata.

Closes #1763
2016-08-23 19:35:18 -07:00
Filipe Silva
d2d74c7903 chore(docs): add global lib docs (#1747) 2016-08-22 20:34:47 +01:00
Filipe Silva
3dcd49bc62 feat(build): update angular-cli.json (#1633) 2016-08-19 20:39:09 +01:00
Hans
a163186a70 Merge Webpack Feature branch into Master (#1455)
* build: use webpack for building apps.

This pull request replaces the underlying broccoli build system and then
replaces it with webpack as the build and bundler.

This will affect the following commands (however the user-level)
functionality should go unchanged (besides unimplemented flags which
will come after this PR.):

ng build (with --env flag and --watch flag supported)
ng serve (with --port flag supported)
ng test / ng e2e

The webpack configuration is blackboxed, and therefore users will not
see a webpack.config.js file in their repository.

Also this PR will bump the typescript version to 2.0 (beta).

Fixes #909 #1155 #882

* chore(lint) Corrected any eslint errors and cleaned up unused files

* chore(cleanup) additional cleanup tasks performed. Removed unneeded code, indentation causing linting errors, add back tsconfig sourcemapping, removed console logs, deleted material unused files.

* chore: remove bind from serve command

* chore: simplify test command

* chore: fix test warnings

* chore: revert whitespace changes

* chore: re-add mapRoot to tsconfig

* chore: remove unused import

* bugfix: fix broken tests

* fix: fix mobile-specific feature test

* bugfix: fix public folder test

* fix: fixes for path mappings, tests, and coverage (#1359)

* fix(): Multiple fixes for path mappings:

* Removed invalid test case that was throwing path mappings  tests because of a typescript bug.
* Readded PathsPlugin for Path Mappings
* Removed coverage preprocessor which was throwing bad type errors against ts code when it shouldn't be.
* Added sourcemap support for istanbul instrumenter. Coverage files are still being generated.

* fix: fix the way the build command runs for mobile tests

* fix: fix the way the build command runs for mobile tests

* fix: replaced promise based ng command with sh.exec to allow mappings test to run correctly against mobile

* fix: replaced promise based ng command with sh.exec to allow mappings test to run correctly against mobile

* fix: add environment configuration replacement (#1364)

* fix: add environment configuration replacement

* remove debuggers

* fix: move mobile test above config test because it relies on prod build from previous step

* fix: removed unneeded interface moved config paths

* fix(tests): re-enable sass/less/stylus tests (#1363)

* chore: remove systemjs (#1376)

* chore: remove vendor.ts (#1383)

* chore: remove material2 test option (#1385)

* fix(build): re-add support for sourceDir (#1378)

* chore(build): remove broccoli (#1386)

* chore: remove windows elevation check (#1384)

* fix(test): add missing sourceDir (#1387)

* fix: update node polyfill support properties for prod config to allow dev-server (aka ng serve) (#1395)

* chore(tests): add prod env e2e test (#1394)

* chore: cleanup of new files (#1388)

* fix(serve): disable HMR (#1402)

* chore: review docs (#1407)

* feat(env): decouple build from env file (#1404)

* fix: fix tsconfig for editors (#1420)

* chore: fix webpack branch after merge conflicts (#1423)

* fix: update to awesome-typescript-loader 2.1.0 (#1425)

* fix: update to awesome-typescript-loader 2.1.0 which fixes a few issues shimming typings libs in tsconfig.json

* fix: forgot to set libs in tsconfig blueprint

* chore(blueprints): remove module.id (#1426)

* feat: add host flag support for ng serve (#1442)

* feat(test): add karma plugin (#1437)

* chore(blueprints): re-add outDir (#1428)

* feat: use @types instead of typings (#1449)

* fix: make sourcemaps work in test (#1447)

* feat: add utilities for typescript ast (#1159) (#1453)

'ast-utils.ts' provides typescript ast utility functions
2016-07-26 17:06:39 -07:00
Filipe Silva
00e111af2b fix(build): don't ignore js in public (#1129)
Fix #540
2016-07-12 11:15:44 -07:00
Jeff Cross
03fd4c4914 fix(mobile): remove app/index.js from concatenated bundle (#1267)
Currently, when building for production with --mobile, there
is a runtime error because require is being called. This is
because the app/index.js file is being concatenated into the
final script, in addition to having already been processed 
by System bundler. Since it's already included in the bundle,
it shouldn't be explicitly added to the concatenated JS file.
2016-07-06 18:43:01 +01:00
Lasse Søberg
af9a4f98b5 fix(sass): don't compile partials 2016-07-04 02:23:46 +01:00
Jonathan Samples
e08b8385b7 build(broccoli): Expose options property of Angular2App to be compatible with existing ember addons (#1229)
Motivation: allow angular-cli builds to take advantage of other brocolli plugins that do double duty as ember-cli addons. Specifically, `broccoli-asset-rev`
Expose the `_options` property as a public getter through `options` to allow the ember addon to query for options without throwing fatal build errors

Closes #1226
2016-07-01 10:30:11 -07:00