Skip to content

Commit

Permalink
build(form): cancel less downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Sep 4, 2018
1 parent ccedc74 commit 02e42e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions packages/schematics/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ type: Documents

## 为什么降级 Less

> `@angular-devkit/build-angular < 0.7.5`
目前Angular6需要降级 less ([#10430](https://github.com/angular/angular-cli/issues/10430))才能使用 ng-zorro-antd,若执行 `ng add ng-alain` 过程中依然无效,可先 **删除** `node_modules``package-lock.json` 并重新 `npm i`

若使用 `yarn` 来安装依赖包,可能需要通过指令来修复其他依赖:
Expand Down
2 changes: 2 additions & 0 deletions packages/schematics/docs/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ ng g ng-alain:plugin npm -t=remove

### yarn

> `@angular-devkit/build-angular < 0.7.5`
修复由于降级 Less 导致无法使用 `yarn` 安装依赖包问题。

```bash
Expand Down
4 changes: 0 additions & 4 deletions packages/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export default function(options: NgAddOptions): Rule {
rules.push(schematic('plugin', { name: 'npm', type: 'add' }));
}

if (options.yarn) {
rules.push(schematic('plugin', { name: 'yarn', type: 'add' }));
}

if (options.hmr) {
rules.push(schematic('plugin', { name: 'hmr', type: 'add' }));
}
Expand Down
5 changes: 0 additions & 5 deletions packages/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
"description": "Generates .npmrc proxy to taobao.",
"default": false
},
"yarn": {
"type": "boolean",
"description": "usage yarn install dependencies",
"default": false
},
"hmr": {
"type": "boolean",
"description": "Generates hmr files and configuration",
Expand Down

0 comments on commit 02e42e7

Please sign in to comment.