Skip to content

Commit 5fd4cf9

Browse files
authored
Merge pull request #9 from angular/master
chore: upgrade to angular-cli beta 15
2 parents 0f3949e + 93da512 commit 5fd4cf9

File tree

17 files changed

+97
-99
lines changed

17 files changed

+97
-99
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<a name="1.0.0-beta.15"></a>
2+
# [1.0.0-beta.15](https://github.com/angular/angular-cli/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2016-09-20)
3+
4+
5+
### Bug Fixes
6+
7+
* **help:** fix a bug where help was not available inside a project. ([#2146](https://github.com/angular/angular-cli/issues/2146)) ([5b880b2](https://github.com/angular/angular-cli/commit/5b880b2))
8+
* pin beta package versions ([#2236](https://github.com/angular/angular-cli/issues/2236)) ([638a54b](https://github.com/angular/angular-cli/commit/638a54b)), closes [#2234](https://github.com/angular/angular-cli/issues/2234)
9+
10+
11+
112
<a name="1.0.0-beta.14"></a>
213
# [1.0.0-beta.14](https://github.com/angular/angular-cli/compare/v1.0.0-beta.11-webpack.2...v1.0.0-beta.14) (2016-09-15)
314

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ This project is very much still a work in progress.
1616
The CLI is now in beta.
1717
If you wish to collaborate while the project is still young, check out [our issue list](https://github.com/angular/angular-cli/issues).
1818

19-
## Webpack preview release update
19+
## Webpack update
2020

21-
We're updating the build system in Angular-CLI to use webpack instead of Broccoli.
21+
We changed the build system between beta.10 and beta.12, from SystemJS to Webpack.
22+
And with it comes a lot of benefits.
23+
To take advantage of these, your app built with the old beta will need to migrate.
2224

23-
You can install and update your projects using [these instructions](https://github.com/angular/angular-cli/blob/master/WEBPACK_UPDATE.md).
24-
25-
**The current instructions on this file reflect usage for the `webpack` version.**
25+
You can update your `beta.10` projects to `beta.12` by following [these instructions](https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14).
2626

2727
## Prerequisites
2828

WEBPACK_UPDATE.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cli",
3-
"version": "1.0.0-beta.14",
3+
"version": "1.0.0-beta.15",
44
"description": "CLI tool for Angular",
55
"main": "packages/angular-cli/lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",
@@ -91,7 +91,7 @@
9191
"remap-istanbul": "^0.6.4",
9292
"resolve": "^1.1.7",
9393
"rimraf": "^2.5.3",
94-
"rxjs": "^5.0.0-beta.12",
94+
"rxjs": "5.0.0-beta.12",
9595
"sass-loader": "^3.2.0",
9696
"script-loader": "^0.7.0",
9797
"shelljs": "^0.7.0",
@@ -109,8 +109,8 @@
109109
"typedoc": "^0.4.2",
110110
"typescript": "2.0.2",
111111
"url-loader": "^0.5.7",
112-
"webpack": "^2.1.0-beta.22",
113-
"webpack-dev-server": "^2.1.0-beta.3",
112+
"webpack": "2.1.0-beta.22",
113+
"webpack-dev-server": "2.1.0-beta.3",
114114
"webpack-md5-hash": "0.0.5",
115115
"webpack-merge": "^0.14.0",
116116
"zone.js": "^0.6.23"

packages/angular-cli/blueprints/directive/files/__path__/__name__.directive.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* tslint:disable:no-unused-variable */
22

33
import { TestBed, async } from '@angular/core/testing';
4-
import { <%= classifiedModuleName %> } from './<%= dasherizedModuleName %>.directive';
4+
import { <%= classifiedModuleName %>Directive } from './<%= dasherizedModuleName %>.directive';
55

66
describe('Directive: <%= classifiedModuleName %>', () => {
77
it('should create an instance', () => {

packages/angular-cli/commands/help.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ const commandsToIgnore = [
1515
const HelpCommand = Command.extend({
1616
name: 'help',
1717
description: 'Shows help for the CLI',
18-
works: 'outsideProject',
18+
works: 'everywhere',
1919

2020
availableOptions: [],
2121

2222
run: function (commandOptions: any) {
2323
let commandFiles = fs.readdirSync(__dirname)
24+
// Remove files that are not JavaScript
25+
.filter(file => file.match(/\.js$/))
2426
.map(file => path.parse(file).name)
2527
.map(file => file.toLowerCase());
2628

packages/angular-cli/models/webpack-build-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function getWebpackCommonConfig(
117117
       { test: /\.(jpg|png|gif)$/, loader: 'url-loader?limit=10000' },
118118
       { test: /\.html$/, loader: 'raw-loader' },
119119

120-
{ test: /\.(woff|ttf|svg)$/, loader: 'url?limit=10000' },
120+
{ test: /\.(otf|woff|ttf|svg)$/, loader: 'url?limit=10000' },
121121
{ test: /\.woff2$/, loader: 'url?limit=10000&mimetype=font/woff2' },
122122
{ test: /\.eot$/, loader: 'file' }
123123
]

packages/angular-cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cli",
3-
"version": "1.0.0-beta.14",
3+
"version": "1.0.0-beta.15",
44
"description": "CLI tool for Angular",
55
"main": "lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",
@@ -73,7 +73,7 @@
7373
"remap-istanbul": "^0.6.4",
7474
"resolve": "^1.1.7",
7575
"rimraf": "^2.5.3",
76-
"rxjs": "^5.0.0-beta.12",
76+
"rxjs": "5.0.0-beta.12",
7777
"sass-loader": "^3.2.0",
7878
"script-loader": "^0.7.0",
7979
"shelljs": "^0.7.0",
@@ -91,8 +91,8 @@
9191
"typedoc": "^0.4.2",
9292
"typescript": "2.0.2",
9393
"url-loader": "^0.5.7",
94-
"webpack": "^2.1.0-beta.22",
95-
"webpack-dev-server": "^2.1.0-beta.3",
94+
"webpack": "2.1.0-beta.22",
95+
"webpack-dev-server": "2.1.0-beta.3",
9696
"webpack-md5-hash": "0.0.5",
9797
"webpack-merge": "^0.14.0",
9898
"zone.js": "^0.6.23"

packages/angular-cli/plugins/karma.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const init = (config) => {
1212
const environment = config.angularCli.environment || 'dev';
1313

1414
// add webpack config
15-
config.webpack = getWebpackTestConfig(config.basePath, environment, appConfig);
16-
config.webpackMiddleware = {
15+
const webpackConfig = getWebpackTestConfig(config.basePath, environment, appConfig);
16+
const webpackMiddlewareConfig = {
1717
noInfo: true, // Hide webpack output because its noisy.
1818
stats: { // Also prevent chunk and module display output, cleaner look. Only emit errors.
1919
assets: false,
@@ -25,6 +25,8 @@ const init = (config) => {
2525
chunkModules: false
2626
}
2727
};
28+
config.webpack = Object.assign(webpackConfig, config.webpack);
29+
config.webpackMiddleware = Object.assign(webpackMiddlewareConfig, config.webpackMiddleware);
2830

2931
// replace the angular-cli preprocessor with webpack+sourcemap
3032
Object.keys(config.preprocessors)

packages/ast-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"homepage": "https://github.com/angular/angular-cli",
2222
"dependencies": {
23-
"rxjs": "^5.0.0-beta.11",
23+
"rxjs": "5.0.0-beta.11",
2424
"denodeify": "^1.2.1",
2525
"typescript": "2.0.0"
2626
}

0 commit comments

Comments
 (0)