Skip to content

Commit 75e3d50

Browse files
Merge pull request #14 from angular/master
Update upstream
2 parents 4a768e5 + 92a34e2 commit 75e3d50

File tree

6 files changed

+26
-0
lines changed

6 files changed

+26
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ npm install --save-dev @angular/cli@latest
117117
npm install
118118
```
119119

120+
If you are updating to 1.0 from a beta or RC version, check out our [1.0 Update Guide](https://github.com/angular/angular-cli/wiki/stories-1.0-update).
121+
120122
You can find more details about changes between versions in [CHANGELOG.md](https://github.com/angular/angular-cli/blob/master/CHANGELOG.md).
121123

122124

docs/documentation/config.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## Overview
66
`ng get [key]` Get a value from the configuration.
7+
`[key]` should be in JSON path format. Example: `a[3].foo.bar[2]`.
78

89
## Options
910
<details>
@@ -21,6 +22,7 @@
2122

2223
## Overview
2324
`ng set [key]=[value]` Set a value in the configuration.
25+
`[key]` should be in JSON path format. Example: `a[3].foo.bar[2]`.
2426

2527
## Options
2628
<details>

packages/@angular/cli/blueprints/service/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ export default Blueprint.extend({
103103
`;
104104
this._writeStatusToUI(chalk.yellow, 'WARNING', warningMessage);
105105
} else {
106+
if (options.dryRun) {
107+
this._writeStatusToUI(chalk.yellow,
108+
'update',
109+
path.relative(this.project.root, this.pathToModule));
110+
return;
111+
}
112+
106113
const className = stringUtils.classify(`${options.entity.name}Service`);
107114
const fileName = stringUtils.dasherize(`${options.entity.name}.service`);
108115
const fullGeneratePath = path.join(this.project.root, this.generatePath);

packages/@angular/cli/models/webpack-configs/styles.ts

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
117117
loader: 'sass-loader',
118118
options: {
119119
sourceMap: cssSourceMap,
120+
// bootstrap-sass requires a minimum precision of 8
121+
precision: 8,
120122
includePaths
121123
}
122124
}]

packages/@angular/cli/tasks/eject.ts

+4
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ class JsonWebpackSerializer {
320320
serialize(config: any): string {
321321
// config = Object.assign({}, config);
322322
config['plugins'] = this._pluginsReplacer(config['plugins']);
323+
// Routes using PathLocationStrategy break without this.
324+
config['devServer'] = {
325+
'historyApiFallback': true
326+
};
323327
config['resolve'] = this._resolveReplacer(config['resolve']);
324328
config['resolveLoader'] = this._resolveReplacer(config['resolveLoader']);
325329
config['entry'] = this._entryReplacer(config['entry']);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import {join} from 'path';
2+
import {ng} from '../../../utils/process';
3+
import {expectGitToBeClean} from '../../../utils/git';
4+
5+
6+
export default function() {
7+
return ng('generate', 'service', 'test-service', '--module', 'app.module.ts', '--dry-run')
8+
.then(() => expectGitToBeClean());
9+
}

0 commit comments

Comments
 (0)