139 Commits

Author SHA1 Message Date
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
Filipe Silva
e97fd9f378 fix(init): don't replace live reload script on diffs (#1128)
Fix #1122
2016-06-18 03:23:49 +01:00
Hans
5f909aa7e4 fix(sourcemaps): try to improve the source maps by fixing the path (#1028) 2016-06-06 20:54:48 -07:00
Petar Blazevski
8307c14c50 chore(broccoli): Load different env config files
Fix #899
Close #913
2016-06-03 17:00:07 +01:00
Filipe Silva
9005d0f51b chore: fix typoed var name (#981) 2016-06-03 15:37:46 +01:00
Giovanni Degiorgi
0bc3d94994 fix(admin): added support for non Administrator CLI user
In case of non-admin user instead of symlinkSync will just writeFileSync.

Close #905
Fix #886
Fix #370
2016-06-01 16:52:19 +01:00
Mike Brocchi
c3fd9c72cb feat: allow lazy route prefix to be configurable
Fixes #842
2016-05-23 22:12:18 -04:00
Hans
19d578d02e build(typescript): path mapping now includes checking without an extension (#875) 2016-05-21 00:11:47 +01:00
Filipe Silva
234de2b4f9 fix(build): fix broken sourcemaps (#839) 2016-05-19 09:45:57 -07:00
Mike Brocchi
482aa74bac feat(blueprint): add blueprint for generating interfaces (#757)
Fixes #729
2016-05-18 13:20:30 -07:00
Hans
289c9bdb4d build: add path mapping support to broccoli typescript (#797) 2016-05-17 16:16:49 -07:00
Jeff Cross
9d18f742c9 fix(mobile): prevent already-bundled JS from getting cached by Service Worker
This change excludes all JS files, except for the production-ready bundle,
from the tree that the ServiceWorkerPlugin receives.
2016-05-16 17:44:19 -07:00
killface
6b45099b6a feat(SASSPlugin): Allow regexes to be passed to include/exclude certain file patterns
Allow passing in cacheInclude and cacheExclude as options to the SASSPlugin, primarily so that filenames beginning with an underscore can be ignored during SASS/SCSS compilation, which is generally accepted to be a standard in SASS (http://sass-lang.com/guide#topic-4). These config values can be set in angular-cli-build.js thus:
    "sassCompiler": {
        "cacheExclude": [/\/_[^\/]+$/]
    }

This arguably closes issue #558 (https://github.com/angular/angular-cli/issues/558)
2016-05-16 14:46:53 -07:00
Filipe Silva
285db139ce fix(build): fix infinite loop on ng serve (#775)
Close #773

In windows, `filePath` seems to not be normalized and has the wrong separations, resulting in incorrect calculation of `destPath`.
2016-05-14 23:06:32 -07:00
Jeff Cross
bbf1bc8e14 fix(broccoli-typescript): properly parse compilerOptions (#764)
Previously, the settings in tsconfig would be ignored by
the broccoli-typescript plugin, because the whole config's
JSON was being provided to `convertCompilerOptionsFromJson()`
instead of just the expected `compilerOptions`.
2016-05-13 14:34:04 -07:00
Mike Brocchi
c302be81d5 chore: add ability to set default style file extensions (#763) 2016-05-13 12:31:31 -07:00
Jeff Cross
679d0e60cf fix(mobile): include vendor scripts in bundle
Closes #733
2016-05-12 20:17:58 -07:00
Jeff Cross
818fb19b0a fix(mobile): update path to reflect updated service worker package (#746) 2016-05-12 18:14:41 -07:00
Jeff Cross
04593ebe1d feat(mobile): add ServiceWorker generation to build process and index 2016-05-11 21:13:59 -07:00
Jeff Cross
51569ce674 feat(mobile): add prod build step to concatenate scripts
For projects that use the --mobile flag, this will cause all
third-party polyfills and the system-loader script to be
concatenated into a single file that can be loaded via
an async script tag. This is necessary for App Shell to work
properly, so that rendering won't be blocked on synchronous
script loading.

Note: this change still loads app and library files individually.
Follow-up work should be done to further improve loading
performance.
2016-05-11 21:13:59 -07:00
Jeff Cross
cb1270f5e4 feat(mobile): add support for generating App Shell in index.html 2016-05-11 21:13:52 -07:00