Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.x #9399

Closed
wants to merge 66 commits into from
Closed

1.1.x #9399

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
5a6d772
release: 1.1.0-beta.1
filipesilva May 9, 2017
88e6e93
docs: add changelog for 1.1.0-beta.1
filipesilva May 9, 2017
4f48be0
fix(@angular/cli): allow e2e multi capabilities
filipesilva May 10, 2017
cfe60b5
fix(@angular/cli): adds language to index.html for accessibility
dave11mj May 11, 2017
0f388ea
docs(@angular/cli): fix sample home.md
pedrobuzzi May 10, 2017
a5cfdde
fix(@angular/cli): prefix `historyApiFallback.index` with `deployUrl`…
smoke May 15, 2017
9ac6e9a
docs(@angular/cli): fixes wrong link on corporate proxy story (#6299)
dave11mj May 15, 2017
d6d3842
docs(@angular/cli): add github pages deploy docs (#6326)
filipesilva May 15, 2017
2be220c
docs(@angular/cli): document service worker support (#6324)
filipesilva May 15, 2017
62b50c2
docs: add global lib usage instructions (#6294)
filipesilva May 15, 2017
38cb0e6
docs(@angular/cli): document resource copy (#6323)
filipesilva May 15, 2017
afc25de
docs(@angular/cli): fixing new docs
sumitarora May 11, 2017
117d393
ci: fix branch comparison (#6247)
filipesilva May 15, 2017
02aaec4
fix(@angular/cli): language-service as devDeps only (#6257)
cexbrayat May 15, 2017
54b1e35
fix(@angular/cli): enable full node module resolution for project dep…
clydin May 15, 2017
0a102ea
release: 1.1.0-rc.0
sumitarora May 15, 2017
2f9e1f8
docs: add changelog for 1.1.0-rc.0
sumitarora May 15, 2017
872737b
fix(@angular/cli): supress module file modification when generating g…
sarunint May 17, 2017
b4abe6d
fix(@angular/cli): put vendor ngfactory in vendor chunk
filipesilva May 16, 2017
f143cb6
refactor(@angular/cli): use memory FS for i18n extraction (#6306)
clydin May 17, 2017
6372f29
fix(@angular/cli): if user pass a full path, use the path (#6341)
hansl May 17, 2017
e619df1
fix(@angular/cli): proper generation when the target dir exists (#5929)
e-cloud May 17, 2017
ad026ef
feat(@ngtools/webpack): replace server bootstrap code (#5194)
FrozenPandaz May 22, 2017
7bd4074
fix(@angular/cli): update new project dev dependencies (#6415)
clydin May 23, 2017
169dc9e
fix(@angular/cli): fix package name fetching from package.json
sumitarora May 23, 2017
3f10c5a
fix(@angular/cli): allow e2e tests to run if no-serve and port is pro…
sumitarora May 23, 2017
2b0d935
fix(@angular/cli): remove broken script after eject
filipesilva May 22, 2017
8683c3c
fix(@angular/cli): fix leading digit in file names from generate command
RicardoVaranda May 18, 2017
7159920
fix(@angular/cli): only values in enum should be allowed to update
sumitarora Apr 10, 2017
b59bccf
fix(@ngtools/webpack): fix aot builds using npm packages that have la…
maleetz Mar 23, 2017
e4cedbb
fix(@angular/cli): fix issue of folder getting generated on dry run
sumitarora May 24, 2017
1484868
fix(@ngtools/webpack): fix paths-plugin to allow '*' as alias
Feb 27, 2017
f6e5961
fix(@angular/cli): update protractor API usage in the blueprints.
SamuelMarks May 18, 2017
627e722
refactor(@angular/cli): use this.project instead of cliProject
filipesilva May 22, 2017
3ca583b
fix(@angular/cli): use realpath for project root
filipesilva May 24, 2017
bb9a292
release: 1.1.0-rc.1
Brocco May 24, 2017
7e6c546
docs: add changelog for 1.1.0-rc.1
Brocco May 24, 2017
608e042
revert: fix(@ngtools/webpack): fix paths-plugin to allow '*' as alias
hansl May 25, 2017
9d3322b
release: 1.1.0-rc.2
hansl May 25, 2017
818fae1
fix(@angular/cli): add missing WeakMap polyfill
trotyl May 29, 2017
4de3830
release: 1.1.0
hansl May 31, 2017
0a8dced
fix(@angular/cli): allow node_modules to be linked somewhere else.
hansl May 30, 2017
9d63162
fix(@angular/cli): resolve in all available node_modules
douglasduteil May 27, 2017
b3a0568
refactor(@angular/cli): remove additional unneeded ember-cli files
May 24, 2017
390c624
fix(@angular/cli): restore e2e blueprint
cexbrayat Jun 1, 2017
01b082a
refactor(@angular/cli): remove unnecessary use of ember-cli promise w…
Jun 1, 2017
572351d
fix(@angular/cli): fix env path
sumitarora Jun 2, 2017
96d2a16
refactor(@angular/cli): simplify command registration
Jun 3, 2017
aaf29dd
fix(@angular/cli): check package manager only when using one
Jun 5, 2017
6a93451
fix(@angular/cli): fix empty style urls
sumitarora Jun 7, 2017
4f1c37b
fix(@angular/cli): allow public host option to accept only hostname
May 18, 2017
0a464ea
fix(@angular/cli): fix delete path check
sumitarora May 31, 2017
78dda8f
test: cleanup and convert acceptance tests to TypeScript
May 26, 2017
c8d2723
release: 1.1.1
filipesilva Jun 7, 2017
a935ed5
refactor(@angular/cli): use UI method to show component generation wa…
Jun 9, 2017
3927f93
fix(@angular/cli): provide file path with config parse errors
Jun 10, 2017
4073fa0
fix(@angular/cli): Make generated inline template conform to test case
fwielstra Jun 15, 2017
dbb7d6d
fix(@angular/cli): URL for tour of heroes tutorial (#6672)
prakhar1989 Jun 15, 2017
cf66e6b
fix(@angular/cli): correct sourcemap source paths
Jun 14, 2017
1a797dc
release: 1.1.2
Brocco Jun 15, 2017
1e1160f
fix(@angular/cli): package sort
jiverson Jun 16, 2017
c9c27a6
refactor(@ngtools/webpack): refactor bootstrap refactoring
FrozenPandaz May 25, 2017
8da9bcc
fix(@ngtools/webpack): fix error in compiler CLI when i18nFormat is u…
rayros Jun 19, 2017
ba973d4
fix(@ngtools/webpack): support webpack loaders in the webpack plugin
hansl Jun 19, 2017
b8c50c1
fix(@angular/cli): check for existing SW manifest should look in proj…
alxhub Jun 20, 2017
c3a9835
release: 1.1.3
Brocco Jun 21, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
<a name="1.1.0-rc.1"></a>
# [1.1.0-rc.1](https://github.com/angular/angular-cli/compare/v1.1.0-rc.0...v1.1.0-rc.1) (2017-05-24)


### Bug Fixes

* **@angular/cli:** allow e2e tests to run if no-serve and port is provided ([3f10c5a](https://github.com/angular/angular-cli/commit/3f10c5a))
* **@angular/cli:** fix issue of folder getting generated on dry run ([e4cedbb](https://github.com/angular/angular-cli/commit/e4cedbb))
* **@angular/cli:** fix leading digit in file names from generate command ([8683c3c](https://github.com/angular/angular-cli/commit/8683c3c))
* **@angular/cli:** fix package name fetching from package.json ([169dc9e](https://github.com/angular/angular-cli/commit/169dc9e))
* **@angular/cli:** if user pass a full path, use the path ([#6341](https://github.com/angular/angular-cli/issues/6341)) ([6372f29](https://github.com/angular/angular-cli/commit/6372f29))
* **@angular/cli:** proper generation when the target dir exists ([#5929](https://github.com/angular/angular-cli/issues/5929)) ([e619df1](https://github.com/angular/angular-cli/commit/e619df1))
* **@angular/cli:** put vendor ngfactory in vendor chunk ([b4abe6d](https://github.com/angular/angular-cli/commit/b4abe6d))
* **@angular/cli:** remove broken script after eject ([2b0d935](https://github.com/angular/angular-cli/commit/2b0d935))
* **@angular/cli:** supress module file modification when generating guard with dry-run flag ([872737b](https://github.com/angular/angular-cli/commit/872737b))
* **@angular/cli:** update new project dev dependencies ([#6415](https://github.com/angular/angular-cli/issues/6415)) ([7bd4074](https://github.com/angular/angular-cli/commit/7bd4074))
* **@angular/cli:** update protractor API usage in the blueprints. ([f6e5961](https://github.com/angular/angular-cli/commit/f6e5961)), closes [#6163](https://github.com/angular/angular-cli/issues/6163)
* **@angular/cli:** use realpath for project root ([3ca583b](https://github.com/angular/angular-cli/commit/3ca583b)), closes [#2726](https://github.com/angular/angular-cli/issues/2726)
* **@ngtools/json-schema:** only values in enum should be allowed to update ([7159920](https://github.com/angular/angular-cli/commit/7159920))
* **@ngtools/webpack:** fix aot builds using npm packages that have lazy loaded modules ([b59bccf](https://github.com/angular/angular-cli/commit/b59bccf)), closes [#5594](https://github.com/angular/angular-cli/issues/5594)
* **@ngtools/webpack:** fix paths-plugin to allow '*' as alias ([1484868](https://github.com/angular/angular-cli/commit/1484868)), closes [#5033](https://github.com/angular/angular-cli/issues/5033)


### Features

* **@ngtools/webpack:** replace server bootstrap code ([#5194](https://github.com/angular/angular-cli/issues/5194)) ([ad026ef](https://github.com/angular/angular-cli/commit/ad026ef))



<a name="1.1.0-rc.0"></a>
# [1.1.0-rc.0](https://github.com/angular/angular-cli/compare/v1.1.0-beta.1...v1.1.0-rc.0) (2017-05-15)


### Bug Fixes

* **@angular/cli:** adds language to index.html for accessibility ([cfe60b5](https://github.com/angular/angular-cli/commit/cfe60b5))
* **@angular/cli:** allow e2e multi capabilities ([4f48be0](https://github.com/angular/angular-cli/commit/4f48be0)), closes [#975](https://github.com/angular/angular-cli/issues/975)
* **@angular/cli:** enable full node module resolution for project deps ([#6276](https://github.com/angular/angular-cli/issues/6276)) ([54b1e35](https://github.com/angular/angular-cli/commit/54b1e35))
* **@angular/cli:** language-service as devDeps only ([#6257](https://github.com/angular/angular-cli/issues/6257)) ([02aaec4](https://github.com/angular/angular-cli/commit/02aaec4))
* **@angular/cli:** prefix `historyApiFallback.index` with `deployUrl` ([#6279](https://github.com/angular/angular-cli/issues/6279)) ([a5cfdde](https://github.com/angular/angular-cli/commit/a5cfdde))



<a name="1.1.0-beta.1"></a>
# [1.1.0-beta.1](https://github.com/angular/angular-cli/compare/v1.0.1...v1.1.0-beta.1) (2017-05-09)


### Bug Fixes

* **@angular/cli:** add error message when missing config env variable ([#5980](https://github.com/angular/angular-cli/issues/5980)) ([11d0afc](https://github.com/angular/angular-cli/commit/11d0afc))
* **@angular/cli:** fix text descriptions ([17ae140](https://github.com/angular/angular-cli/commit/17ae140)), closes [#5501](https://github.com/angular/angular-cli/issues/5501)
* **@angular/cli:** fixing component blueprint indent ([0ef9eb7](https://github.com/angular/angular-cli/commit/0ef9eb7))
* **@angular/cli:** format files according to tslint ([377a062](https://github.com/angular/angular-cli/commit/377a062)), closes [#5751](https://github.com/angular/angular-cli/issues/5751)
* **@angular/cli:** import at least one locale-data with intl ([#6190](https://github.com/angular/angular-cli/issues/6190)) ([1cc979f](https://github.com/angular/angular-cli/commit/1cc979f))
* **@angular/cli:** install webpack at ejection ([#5745](https://github.com/angular/angular-cli/issues/5745)) ([8e2f8cf](https://github.com/angular/angular-cli/commit/8e2f8cf))
* **@angular/cli:** ng get: return whole config root when no path provided. ([a5d8bc1](https://github.com/angular/angular-cli/commit/a5d8bc1)), closes [#5887](https://github.com/angular/angular-cli/issues/5887)
* **@angular/cli:** open option in serve command should open localhost when host is 0.0.0.0 ([23c039d](https://github.com/angular/angular-cli/commit/23c039d)), closes [#5743](https://github.com/angular/angular-cli/issues/5743)
* **@angular/cli:** properly support CSS url()'s with whitespace ([d9af12c](https://github.com/angular/angular-cli/commit/d9af12c))
* **@angular/cli:** remove default for test runners ([e7966a2](https://github.com/angular/angular-cli/commit/e7966a2))
* **@angular/cli:** removes redundant rules from tslint.json ([#5783](https://github.com/angular/angular-cli/issues/5783)) ([d90292e](https://github.com/angular/angular-cli/commit/d90292e)), closes [#5755](https://github.com/angular/angular-cli/issues/5755)
* correctly generate changelog ([3ec74e2](https://github.com/angular/angular-cli/commit/3ec74e2))
* **@angular/cli:** simplify import path if possible ([#6184](https://github.com/angular/angular-cli/issues/6184)) ([2d42a58](https://github.com/angular/angular-cli/commit/2d42a58)), closes [#6183](https://github.com/angular/angular-cli/issues/6183)
* **@angular/cli:** small typo on generated app.component.html ([6eeb9de](https://github.com/angular/angular-cli/commit/6eeb9de))
* **@angular/cli:** Throw error when no key provided for ng get ([382ba8d](https://github.com/angular/angular-cli/commit/382ba8d)), closes [#5887](https://github.com/angular/angular-cli/issues/5887)
* **@angular/cli:** Update README.md project generation text. ([#5958](https://github.com/angular/angular-cli/issues/5958)) ([a67eb07](https://github.com/angular/angular-cli/commit/a67eb07))
* **@ngtools/logger:** add typings and other information to logger package.json ([698aa3e](https://github.com/angular/angular-cli/commit/698aa3e))


### Features

* **@angular/cli:** add flag to not delete output path ([8bf040b](https://github.com/angular/angular-cli/commit/8bf040b)), closes [#5925](https://github.com/angular/angular-cli/issues/5925) [#6193](https://github.com/angular/angular-cli/issues/6193)
* **@angular/cli:** add host check flags to ng serve ([a54a991](https://github.com/angular/angular-cli/commit/a54a991)), closes [#6070](https://github.com/angular/angular-cli/issues/6070)
* **@angular/cli:** add import flag to modules ([8b220a4](https://github.com/angular/angular-cli/commit/8b220a4)), closes [#5377](https://github.com/angular/angular-cli/issues/5377)
* **@angular/cli:** add language service in devDependencies section ([bb99fac](https://github.com/angular/angular-cli/commit/bb99fac))
* **@angular/cli:** add option to use lint to adjust generated files ([a3bf529](https://github.com/angular/angular-cli/commit/a3bf529))
* **@angular/cli:** add publicPath support via command and angular-cli.json for webpack-dev-server ([8c78fb9](https://github.com/angular/angular-cli/commit/8c78fb9)), closes [#2727](https://github.com/angular/angular-cli/issues/2727)
* **@angular/cli:** add some rules from tslint 4.5 ([d482986](https://github.com/angular/angular-cli/commit/d482986))
* **@angular/cli:** adding option to search docs as well ([5e39361](https://github.com/angular/angular-cli/commit/5e39361))
* **@angular/cli:** allow lint project setting to be optional ([8035f54](https://github.com/angular/angular-cli/commit/8035f54))
* **@angular/cli:** always use named webpack modules in dev builds ([b07f631](https://github.com/angular/angular-cli/commit/b07f631))
* **@angular/cli:** bump to tslint 5 & codelyzer 3 ([af758b8](https://github.com/angular/angular-cli/commit/af758b8))
* **@angular/cli:** improve ng test performance ([1cd0a08](https://github.com/angular/angular-cli/commit/1cd0a08)), closes [#5423](https://github.com/angular/angular-cli/issues/5423)
* **@angular/cli:** new project landing page ([#6144](https://github.com/angular/angular-cli/issues/6144)) ([0ac878a](https://github.com/angular/angular-cli/commit/0ac878a)), closes [#5928](https://github.com/angular/angular-cli/issues/5928) [#6125](https://github.com/angular/angular-cli/issues/6125)
* **@angular/cli:** support inline source maps with defined charset ([ea4c864](https://github.com/angular/angular-cli/commit/ea4c864))
* **@angular/cli:** support TypeScript 2.3 ([69d3d2b](https://github.com/angular/angular-cli/commit/69d3d2b))
* **@angular/cli:** update tslint on updating prefix ([#5908](https://github.com/angular/angular-cli/issues/5908)) ([2bf5c96](https://github.com/angular/angular-cli/commit/2bf5c96)), closes [#5794](https://github.com/angular/angular-cli/issues/5794)
* **@angular/cli:** upgrade the blueprint karma-coverage-istanbul-reporter version ([#5519](https://github.com/angular/angular-cli/issues/5519)) ([d7b46d0](https://github.com/angular/angular-cli/commit/d7b46d0))
* **@angular/cli:** use and support webpack 2.3 ([aa958a6](https://github.com/angular/angular-cli/commit/aa958a6))
* **@angular/cli:** use and support webpack 2.4 ([818936e](https://github.com/angular/angular-cli/commit/818936e))



<a name="1.0.3"></a>
## [1.0.3](https://github.com/angular/angular-cli/compare/v1.0.2...v1.0.3) (2017-05-09)

Expand Down
21 changes: 21 additions & 0 deletions docs/documentation/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,27 @@ Flag | `--dev` | `--prod`
- Replaces `process.env.NODE_ENV` in modules with the `production` value (this is needed for some libraries, like react).
- Runs UglifyJS on the code.

### CSS resources

Resources in CSS, such as images and fonts, will be copied over automatically as part of a build.
If a resource is less than 10kb it will also be inlined.

You'll see these resources be outputted and fingerprinted at the root of `dist/`.

### Service Worker

There is experimental service worker support for production builds available in the CLI.
To enable it, run the following commands:
```
npm install @angular/service-worker --save
ng set apps.0.serviceWorker=true
```

On `--prod` builds a service worker manifest will be created and loaded automatically.
Remember to disable the service worker while developing to avoid stale code.

Note: service worker support is experimental and subject to change.

## Options
<details>
<summary>aot</summary>
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Generating and serving an Angular project via a development server
[Create](new) and [run](serve) a new project:
```
ng new my-project
cd new-project
cd my-project
ng serve
```
Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Expand Down
26 changes: 13 additions & 13 deletions docs/documentation/new.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>directory</summary>
<p>
`--directory` (alias: `-dir`) _default value: dir_
<code>--directory</code> (alias: <code>-dir</code>) <em>default value: dir</em>
</p>
<p>
The directory name to create the app in.
Expand All @@ -21,7 +21,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>dry-run</summary>
<p>
`--dry-run` (alias: `-d`) _default value: false_
<code>--dry-run</code> (alias: <code>-d</code>) <em>default value: false</em>
</p>
<p>
Run through without making any changes.
Expand All @@ -31,7 +31,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>inline-style</summary>
<p>
`--inline-style` (alias: `-is`) _default value: false_
<code>--inline-style</code> (alias: <code>-is</code>) <em>default value: false</em>
</p>
<p>
Should have an inline style.
Expand All @@ -41,7 +41,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>inline-template</summary>
<p>
`--inline-template` (alias: `-it`) _default value: false_
<code>--inline-template</code> (alias: <code>-it</code>) <em>default value: false</em>
</p>
<p>
Should have an inline template.
Expand All @@ -51,7 +51,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>prefix</summary>
<p>
`--prefix` (alias: `-p`) _default value: app_
<code>--prefix</code> (alias: <code>-p</code>) <em>default value: app</em>
</p>
<p>
The prefix to use for all component selectors.
Expand All @@ -61,7 +61,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>routing</summary>
<p>
`--routing` _default value: false_
<code>--routing</code> <em>default value: false</em>
</p>
<p>
Generate a routing module.
Expand All @@ -71,7 +71,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>skip-commit</summary>
<p>
`--skip-commit` (alias: `-sc`) _default value: false_
<code>--skip-commit</code> (alias: <code>-sc</code>) <em>default value: false</em>
</p>
<p>
Skip committing the first commit to git.
Expand All @@ -81,7 +81,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>skip-git</summary>
<p>
`--skip-git` (alias: `-sg`) _default value: false_
<code>--skip-git</code> (alias: <code>-sg</code>) <em>default value: false</em>
</p>
<p>
Skip initializing a git repository.
Expand All @@ -91,7 +91,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>skip-install</summary>
<p>
`--skip-install` (alias: `-si`) _default value: false_
<code>--skip-install</code> (alias: <code>-si</code>) <em>default value: false</em>
</p>
<p>
Skip installing packages.
Expand All @@ -101,7 +101,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>skip-tests</summary>
<p>
<code>--skip-tests</code> (aliases: <code>-st</code>) <em>default value: false</em>
<code>--skip-tests (aliases: </code>-st) <em>default value: false</em>
</p>
<p>
Skip creating spec files.
Expand All @@ -114,7 +114,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>source-dir</summary>
<p>
`--source-dir` (alias: `-sd`) _default value: src_
<code>--source-dir</code> (alias: <code>-sd</code>) <em>default value: src</em>
</p>
<p>
The name of the source directory.
Expand All @@ -124,7 +124,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>style</summary>
<p>
`--style` _default value: css_
<code>--style</code> <em>default value: css</em>
</p>
<p>
The style file default extension.
Expand All @@ -134,7 +134,7 @@ Default applications are created in a directory of the same name, with an initia
<details>
<summary>verbose</summary>
<p>
`--verbose` (alias: `-v`) _default value: false_
<code>--verbose</code> (alias: <code>-v</code>) <em>default value: false</em>
</p>
<p>
Adds more details to output logging.
Expand Down
1 change: 1 addition & 0 deletions docs/documentation/stories.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
- [Code Coverage](stories/code-coverage)
- [Application Environments](stories/application-environments)
- [Autoprefixer Configuration](stories/autoprefixer)
- [Deploy to GitHub Pages](stories/githug-pages)
21 changes: 21 additions & 0 deletions docs/documentation/stories/github-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Deploy to GitHub Pages

A simple way to deploy your Angular app is to use
[GitHub Pages](https://help.github.com/articles/what-is-github-pages/).

The first step is to [create a GitHub account](https://github.com/join), and then
[create a repository](https://help.github.com/articles/create-a-repo/) for your project.
Make a note of the user name and project name in GitHub.

Then all you need to do is run `ng build --prod --output-path docs --base-href PROJECT_NAME`, where
`PROJECT_NAME` is the name of your project in GitHub.
Make a copy of `dist/index.html` and name it `dist/404.html`.

Commit your changes and push. On the GitHub project page, configure it to
[publish from the docs folder](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/#publishing-your-github-pages-site-from-a-docs-folder-on-your-master-branch).

And that's all you need to do! Now you can see your page at
`https://USER_NAME.github.io/PROJECT_NAME/`.

You can also use [angular-cli-ghpages](https://github.com/angular-buch/angular-cli-ghpages), a full
featured package that does this all this for you and has extra functionality.
20 changes: 20 additions & 0 deletions docs/documentation/stories/global-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,23 @@ You can also rename the output and lazy load it by using the object format:
{ "input": "pre-rename-script.js", "output": "renamed-script" },
],
```

## Using global libraries inside your app

Once you import a library via the scripts array, you should **not** import it via a import statement
in your TypeScript code (e.g. `import * as $ from 'jquery';`).
If you do that, you'll end up with two different copies of the library: one imported as a
global library, and one imported as a module.

This is especially bad for libraries with plugins, like JQuery, because each copy will have
different plugins.

Instead, download typings for your library (`npm install @types/jquery`) which will give you
access to the global variables exposed by that library.

If the global library you need to use does not have global typings, you can also declare them
manually in `src/typings.d.ts` as `any`:

```
declare var libraryName: any;
```
2 changes: 1 addition & 1 deletion docs/documentation/stories/using-corporate-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Using corporate proxy

If you work behind a corporate proxy, the regular [backend proxy](http://github.com/angular/angular-cli#proxy-to-backend) configuration will not work if you try to proxy calls to any URL outside your local network.
If you work behind a corporate proxy, the regular [backend proxy](https://github.com/angular/angular-cli/wiki/stories-proxy) configuration will not work if you try to proxy calls to any URL outside your local network.

In this case, you can configure the backend proxy to redirect calls through your corporate proxy using an agent:

Expand Down