Skip to content

Uptodate with actual repo #1

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

Merged
merged 54 commits into from
Dec 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
71bf855
fix(generate): revert change to component dir in generate module, as …
Meligy Nov 17, 2016
6f9d2c1
feat(build): add sourcemap option (#3113)
filipesilva Nov 17, 2016
52f9120
chore(version): jasmine types and jasmine-core are out of sync (#3229)
JohannesHoppe Nov 22, 2016
9484a10
chore(webpack): add missing -loader suffix (#3187)
Nov 22, 2016
f833d25
fix(editorconfig): use off instead of 0 for max line length (#3186)
scttcper Nov 22, 2016
6e8a848
fix(aot): lock the angular version to 2.2.1. (#3242)
hansl Nov 23, 2016
c1eb4bf
v1.0.0-beta.21
alxhub Nov 23, 2016
54ef738
fix(version): bump ast-tools and webpack versions to correct mismatch…
alxhub Nov 23, 2016
f9a7c01
feature(@ngtools/webpack): add an option to skip code generation. (#3…
hansl Nov 23, 2016
c816402
chore(package): update uuid to version 3.0.0 (#3246)
marcbachmann Nov 23, 2016
b1cbf17
fix(build): use custom index value when copying to 404.html during gi…
AnalogJ Nov 23, 2016
fe4b35b
chore(docs): Correct the spelling of Bootstrap 4 (#3184)
demus Nov 23, 2016
859d905
fix(build): don't inline sourcemaps (#3262)
filipesilva Nov 25, 2016
bf9c8f1
feat(build): auto generate vendor chunk (#3117)
filipesilva Nov 25, 2016
d1037df
fix(ngtools/webpack): move the generate directory to a separate dir (…
hansl Nov 29, 2016
dd7b74d
chore(blueprints): update tslint and codelyzer (#3304)
mgechev Nov 29, 2016
58fea8f
chore(e2e): chdir back to the previous dir at the end of a test. (#3287)
hansl Nov 30, 2016
f6f24e7
feat(build): add --verbose and --progress flags (#2858)
filipesilva Nov 30, 2016
ed305a2
feat(angular): Update Angular2 version to 2.2.3 (#3295)
Dec 1, 2016
46efa9e
feat(serve): add --hmr flag for HotModuleReplacement support (#3330)
jschwarty Dec 1, 2016
53ab4df
feat(new): include routing in spec and inline template when called wi…
Meligy Dec 1, 2016
45d5154
fix(@ngtools/webpack): fixed path resolution for entry modules and la…
hansl Dec 2, 2016
787dfa2
v1.0.0-beta.22
hansl Dec 2, 2016
4dcfe27
fix(@ngtools/webpack): performance improvement. (#3360)
hansl Dec 3, 2016
51869fb
fix(deploy): clean up gh-pages obsolete files (#3081) (#3333)
rolyatsats Dec 3, 2016
457a6e0
Missing css in CompressionPlugin (#3300)
grizzm0 Dec 3, 2016
5b2a0fb
fix: change apiFilter querystring to query in ng doc(#3383)
baruchvlz Dec 4, 2016
9687081
v1.0.0-beta.22-1
hansl Dec 5, 2016
b907e9a
chore(speed): further remove files. (#3135)
hansl Dec 5, 2016
55acb2e
chore(e2e): fix early process exit to fail with error code 255 (#3049)
hansl Dec 5, 2016
a5a33fa
chore(docs): move the new wiki docs to main repo (#3382)
Brocco Dec 5, 2016
c5cd095
fix(deploy): gh-pages checkout initial branch on error (#3378)
rolyatsats Dec 5, 2016
8b0ad7a
chore(travis): cleanup the tests on Travis and Appveyor. (#3416)
hansl Dec 6, 2016
61dd440
chore(packages): move packages into their own scope. (#3413)
hansl Dec 6, 2016
e6364a9
perf(install time): Remove dependency to zopfli. (#3414)
hansl Dec 6, 2016
8597786
fix(webpack): remove usage of __dirname from the config. (#3422)
hansl Dec 6, 2016
3f18a30
chore: remove unneeded file. (#3423)
hansl Dec 6, 2016
96852ed
added module to the readme command list (#3374)
johnpapa Dec 6, 2016
0365118
chore: change README to add the creation of typings.d.ts (#3439)
hansl Dec 6, 2016
51659b9
fix(help): fix `ng help <command>` (#3442)
tsabirgaliev Dec 7, 2016
83dfc96
feat(serve): Add support to open with ssl. (#3432)
JimiC Dec 7, 2016
09f9aa9
fix(webpack): fix some problems with errors not reported. (#3444)
hansl Dec 7, 2016
0a68cc5
fix(deploy): gh-pages deploy fail after repo create (#3386)
rolyatsats Dec 7, 2016
9b65481
fix(build): pin @types/lodash (#3465)
filipesilva Dec 8, 2016
52dda0c
docs(readme): add code-coverage option
Nov 4, 2016
a1ccf23
chore(completion): add new flags
catull Nov 9, 2016
761e86f
feat: Make CLI available without install
Meligy Nov 13, 2016
00bf3ff
docs(readme): update ng --help to ng help in readme
Nov 16, 2016
1648d51
fix(build): added autoprefixer to prod
grizzm0 Nov 16, 2016
3da9c57
chore(contributing): update the javascript style guide url
CarreraPHP Nov 17, 2016
a238cba
chore(docs): fix typos in readme
equinox Dec 3, 2016
183d301
(chore): update tslint-loader for tslint 4
JohannesRudolph Dec 8, 2016
8d88446
fix(gitignore): No longer ignore VSCode settings (#3477)
phillip-haydon Dec 8, 2016
e836f92
fix(new): Make sure the project name is valid. (#3478)
hansl Dec 8, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
environment:
matrix:
- nodejs_version: "4.0"
- nodejs_version: "6.0"

matrix:
Expand Down
37 changes: 17 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
dist: trusty
sudo: required

language: node_js
node_js:
- "4"
os:
- linux

env:
global:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
matrix:
- SCRIPT=lint
- SCRIPT=build
- SCRIPT=test
- NODE_SCRIPT=tests/e2e_runner.js
- NODE_SCRIPT="tests/e2e_runner.js --nightly"
# - TARGET=mobile SCRIPT=mobile_test

matrix:
fast_finish: true
allow_failures:
- node_js: "5"
- os: osx
- node_js: "7"
- env: NODE_SCRIPT="tests/e2e_runner.js --nightly"
include:
- node_js: "5"
- node_js: "6"
os: linux
env: SCRIPT=test
- node_js: "5"
env: SCRIPT=lint
- node_js: "6"
os: linux
env: SCRIPT=build
- node_js: "4"
os: linux
env: NODE_SCRIPT=tests/e2e_runner.js
- node_js: "6"
Expand All @@ -34,17 +29,19 @@ matrix:
- node_js: "6"
os: linux
env: NODE_SCRIPT=tests/e2e_runner.js
- node_js: "4"
os: osx
env: SCRIPT=test
- node_js: "4"
- node_js: "6"
os: osx
env: NODE_SCRIPT=tests/e2e_runner.js

# Optional builds.
- node_js: "6"
os: osx
env: SCRIPT=test
- node_js: "6"
os: osx
os: linux
env: NODE_SCRIPT="tests/e2e_runner.js --nightly"
- node_js: "7"
os: linux
env: NODE_SCRIPT=tests/e2e_runner.js

before_install:
Expand Down
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
<a name="1.0.0-beta.22"></a>
# [1.0.0-beta.22](https://github.com/angular/angular-cli/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2016-12-02)


### Bug Fixes

* **@ngtools/webpack:** fixed path resolution for entry modules and lazy routes ([#3332](https://github.com/angular/angular-cli/issues/3332)) ([45d5154](https://github.com/angular/angular-cli/commit/45d5154))
* **build:** don't inline sourcemaps ([#3262](https://github.com/angular/angular-cli/issues/3262)) ([859d905](https://github.com/angular/angular-cli/commit/859d905))
* **build:** use custom index value when copying to 404.html during github deploy ([#3201](https://github.com/angular/angular-cli/issues/3201)) ([b1cbf17](https://github.com/angular/angular-cli/commit/b1cbf17))
* **ngtools/webpack:** move the generate directory to a separate dir ([#3256](https://github.com/angular/angular-cli/issues/3256)) ([d1037df](https://github.com/angular/angular-cli/commit/d1037df))
* **version:** bump ast-tools and webpack versions to correct mismatch with published packages ([54ef738](https://github.com/angular/angular-cli/commit/54ef738))


### Features

* **angular:** Update Angular2 version to 2.2.3 ([#3295](https://github.com/angular/angular-cli/issues/3295)) ([ed305a2](https://github.com/angular/angular-cli/commit/ed305a2))
* **build:** add --verbose and --progress flags ([#2858](https://github.com/angular/angular-cli/issues/2858)) ([f6f24e7](https://github.com/angular/angular-cli/commit/f6f24e7)), closes [#1836](https://github.com/angular/angular-cli/issues/1836) [#2012](https://github.com/angular/angular-cli/issues/2012)
* **build:** auto generate vendor chunk ([#3117](https://github.com/angular/angular-cli/issues/3117)) ([bf9c8f1](https://github.com/angular/angular-cli/commit/bf9c8f1))
* **new:** include routing in spec and inline template when called with `--routing` ([#3252](https://github.com/angular/angular-cli/issues/3252)) ([53ab4df](https://github.com/angular/angular-cli/commit/53ab4df))
* **serve:** add --hmr flag for HotModuleReplacement support ([#3330](https://github.com/angular/angular-cli/issues/3330)) ([46efa9e](https://github.com/angular/angular-cli/commit/46efa9e))


### BREAKING CHANGES

* build: `ng build/serve` now generates `vendor.bundle.js` by
default.



<a name="1.0.0-beta.21"></a>
# [1.0.0-beta.21](https://github.com/angular/angular-cli/compare/v1.0.0-beta.20-1...v1.0.0-beta.21) (2016-11-23)


### Bug Fixes

* **angular-cli:** add necessary dependencies. ([#3152](https://github.com/angular/angular-cli/issues/3152)) ([8f574e4](https://github.com/angular/angular-cli/commit/8f574e4)), closes [#3148](https://github.com/angular/angular-cli/issues/3148)
* **angular-cli:** add necessary dependency. ([f7704b0](https://github.com/angular/angular-cli/commit/f7704b0))
* **angular-cli:** change version of webpack plugin. ([07e96ea](https://github.com/angular/angular-cli/commit/07e96ea))
* **aot:** lock the angular version to 2.2.1. ([#3242](https://github.com/angular/angular-cli/issues/3242)) ([6e8a848](https://github.com/angular/angular-cli/commit/6e8a848))
* **editorconfig:** use off instead of 0 for max line length ([#3186](https://github.com/angular/angular-cli/issues/3186)) ([f833d25](https://github.com/angular/angular-cli/commit/f833d25))
* **generate:** revert change to component dir in generate module, as it caused component declaration to go to parent module ([#3158](https://github.com/angular/angular-cli/issues/3158)) ([71bf855](https://github.com/angular/angular-cli/commit/71bf855))
* **github-pages-deploy:** Show more accurate url ([#3160](https://github.com/angular/angular-cli/issues/3160)) ([a431389](https://github.com/angular/angular-cli/commit/a431389))


### Features

* **build:** add sourcemap option ([#3113](https://github.com/angular/angular-cli/issues/3113)) ([6f9d2c1](https://github.com/angular/angular-cli/commit/6f9d2c1))



<a name="1.0.0-beta.20"></a>
# [1.0.0-beta.20](https://github.com/angular/angular-cli/compare/v1.0.0-beta.19...v1.0.0-beta.20-1) (2016-11-16)

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
[github]: https://github.com/angular/angular-cli
[gitter]: https://gitter.im/angular/angular-cli
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
[js-style-guide]: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
[js-style-guide]: https://google.github.io/styleguide/jsguide.html
[jsfiddle]: http://jsfiddle.net/
[plunker]: http://plnkr.co/edit
[runnable]: http://runnable.com/
Expand Down
37 changes: 25 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This project is very much still a work in progress.
The CLI is now in beta.
If you wish to collaborate while the project is still young, check out [our issue list](https://github.com/angular/angular-cli/issues).

Before submitting new issues, have a look at [issues marked with the `type: faq` label](https://github.com/angular/angular-cli/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3A%22type%3A%20faq%22%20).
Before submitting new issues, have a look at [issues marked with the `type: faq` label](https://github.com/angular/angular-cli/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3A%22type%3A%20faq%22%20).

## Webpack update

Expand Down Expand Up @@ -67,7 +67,7 @@ npm install -g angular-cli
## Usage

```bash
ng --help
ng help
```

### Generating and serving an Angular2 project via a development server
Expand Down Expand Up @@ -161,7 +161,7 @@ ng build

You can also add your own env files other than `dev` and `prod` by doing the following:
- create a `src/environments/environment.NAME.ts`
- add `{ "NAME": 'src/environments/environment.NAME.ts' }` to the the `apps[0].environments` object in `angular-cli.json`
- add `{ "NAME": 'src/environments/environment.NAME.ts' }` to the `apps[0].environments` object in `angular-cli.json`
- use them via the `--env=NAME` flag on the build/serve commands.

### Base tag handling in index.html
Expand All @@ -187,6 +187,10 @@ ng test

Tests will execute after a build is executed via [Karma](http://karma-runner.github.io/0.13/index.html), and it will automatically watch your files for changes. You can run tests a single time via `--watch=false` or `--single-run`.

You can run tests with coverage via `--code-coverage`. The coverage report will be in the `coverage/` directory.

Linting during tests is also available via the `--lint` flag. See [Linting and formatting code](#linting-and-formatting-code) chapter for more informations.

### Running end-to-end tests

```bash
Expand Down Expand Up @@ -319,7 +323,7 @@ Angular-CLI supports all major CSS preprocessors:
- less ([http://lesscss.org/](http://lesscss.org/))
- stylus ([http://stylus-lang.com/](http://stylus-lang.com/))

To use these prepocessors simply add the file to your component's `styleUrls`:
To use these preprocessors simply add the file to your component's `styleUrls`:

```javascript
@Component({
Expand Down Expand Up @@ -358,22 +362,31 @@ npm install @types/d3 --save-dev

If the library doesn't have typings available at `@types/`, you can still use it by
manually adding typings for it:
```
// in src/typings.d.ts
declare module 'typeless-package';

// in src/app/app.component.ts
import * as typelessPackage from 'typeless-package';
typelessPackage.method();
```
1. First, create a `typings.d.ts` file in your `src/` folder. This file will be automatically included as global type definition.

2. Then, in `src/typings.d.ts`, add the following code:

```typescript
declare module 'typeless-package';
```

3. Finally, in the component or file that uses the library, add the following code:

```typescript
import * as typelessPackage from 'typeless-package';
typelessPackage.method();
```

Done. Note: you might need or find useful to define more typings for the library that you're trying to use.

### Global Library Installation

Some javascript libraries need to be added to the global scope, and loaded as if
they were in a script tag. We can do this using the `apps[0].scripts` and
`apps[0].styles` properties of `angular-cli.json`.

As an example, to use [Boostrap 4](http://v4-alpha.getbootstrap.com/) this is
As an example, to use [Bootstrap 4](http://v4-alpha.getbootstrap.com/) this is
what you need to do:

First install Bootstrap from `npm`:
Expand Down
19 changes: 19 additions & 0 deletions docs/documentation/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ng build

## Overview
`ng build` compiles the application into an output directory

## Options
`--target` (`-t`, `-dev`, `prod`) define the build target

`--environment` (`-e`)

`--output-path` (`-o`) path where output will be placed

`--watch` (`-w`) flag to run builds when files change

`--surpress-sizes` flag to suppress sizes from build output

`--base-href` (`-bh`) base url for the application being built

`--aot` flag whether to build using Ahead of Time compilation
2 changes: 2 additions & 0 deletions docs/documentation/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
`ng get`
`ng set`
4 changes: 4 additions & 0 deletions docs/documentation/doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ng doc

## Overview
`ng doc [search term]` searches documentation on [angular.io](https://angular.io)
4 changes: 4 additions & 0 deletions docs/documentation/e2e.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ng e2e

## Overview
`ng e2e` executes end-to-end tests
14 changes: 14 additions & 0 deletions docs/documentation/generate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ng generate

## Overview
`ng generate [name]` generates the specified blueprint

## Available blueprints:
- [class](class)
- [component](component)
- [directive](directive)
- [enum](enum)
- [interface](interface)
- [module](module)
- [pipe](pipe)
- [service](service)
7 changes: 7 additions & 0 deletions docs/documentation/generate/class.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ng generate class

## Overview
`ng generate class [name]` generates a class

## Options
`--spec` specifies if a spec file is generated
21 changes: 21 additions & 0 deletions docs/documentation/generate/component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ng generate component

## Overview
`ng generate component [name]` generates a component

## Options
`--flat` flag to indicate if a dir is created

`--inline-template` (`-it`) specifies if the template will be in the ts file

`--inline-style` (`-is`) specifies if the style will be in the ts file

`--prefix` specifies whether to use the prefix

`--spec` specifies if a spec file is generated

`--view-encapsulation` (`-ve`) set the view encapsulation strategy

`--change-detection` (`-cd`) set the change detection strategy

`--skip-import` allows for skipping the module import
13 changes: 13 additions & 0 deletions docs/documentation/generate/directive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ng generate directive

## Overview
`ng generate directive [name]` generates a directive

## Options
`--flat` flag to indicate if a dir is created

`--prefix` specifies whether to use the prefix

`--spec` specifies if a spec file is generated

`--skip-import` allows for skipping the module import
4 changes: 4 additions & 0 deletions docs/documentation/generate/enum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ng generate enum

## Overview
`ng generate enum [name]` generates an enumeration
8 changes: 8 additions & 0 deletions docs/documentation/generate/interface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ng generate interface

## Overview
`ng generate interface [name] <type>` generates an interface

## Arguments

`type` optional string to specify the type of interface
9 changes: 9 additions & 0 deletions docs/documentation/generate/module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ng generate module

## Overview
`ng generate module [name]` generates an NgModule

## Options
`--spec` specifies if a spec file is generated

`--routing` specifies if a routing module file should be generated
11 changes: 11 additions & 0 deletions docs/documentation/generate/pipe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ng generate pipe

## Overview
`ng generate pipe [name]` generates a pipe

## Options
`--flat` flag to indicate if a dir is created

`--spec` specifies if a spec file is generated

`--skip-import` allows for skipping the module import
9 changes: 9 additions & 0 deletions docs/documentation/generate/service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ng generate service

## Overview
`ng generate service [name]` generates a service

## Options
`--flat` flag to indicate if a dir is created

`--spec` specifies if a spec file is generated
27 changes: 27 additions & 0 deletions docs/documentation/init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# ng init

## Overview
`ng init [name]` initializes, or re-initializes, an angular application.

Initialization is done in-place, meaning that the generated application is initialized in the current directory.

## Options
`--dry-run` (`-d`) run through without making any changes

`--skip-npm` (`-sn`) skip installing npm packages

`--skip-git` (`-sg`) skip initializing a git repository

`--directory` (`-dir`) the directory name to create the app in

`--source-dir` (`-sd`) the name of the source directory

`--style` the style file default extension

`--prefix` (`p`) the prefix to use for all component selectors

`--routing` flag to indicate whether to generate a routing module

`--inline-style` (`is`) flag to indicate if the app component should have an inline style

`--inline-template` (`it`) flag to indicate if the app component should have an inline template
Loading