Skip to content

Commit 384a04f

Browse files
clydinhansl
authored andcommitted
feat(@angular-devkit/schematics): split out schematics-cli
1 parent 16d8c65 commit 384a04f

File tree

7 files changed

+62
-7
lines changed

7 files changed

+62
-7
lines changed

.monorepo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
"version": "0.0.42",
7373
"hash": "33e9d31bdce777d0010265fcf99b8469"
7474
},
75+
"@angular-devkit/schematics-cli": {
76+
"name": "Schematics CLI",
77+
"version": "0.0.0",
78+
"hash": ""
79+
},
7580
"@schematics/angular": {
7681
"name": "Angular Schematics",
7782
"section": "Schematics",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ This is a monorepo which contains many packages:
5353
**Build Optimizer** | [`@angular-devkit/build-optimizer`](http://npmjs.com/packages/@angular-devkit/build-optimizer) | [![latest](https://img.shields.io/npm/v/%40angular-devkit%2Fbuild-optimizer/latest.svg)](http://npmjs.com/packages/@angular-devkit/build-optimizer) | [![README](https://img.shields.io/badge/README--green.svg)](https://github.com/angular/devkit/blob/master/packages/angular_devkit/build_optimizer/README.md)
5454
**Core** | [`@angular-devkit/core`](http://npmjs.com/packages/@angular-devkit/core) | [![latest](https://img.shields.io/npm/v/%40angular-devkit%2Fcore/latest.svg)](http://npmjs.com/packages/@angular-devkit/core) |
5555
**Schematics** | [`@angular-devkit/schematics`](http://npmjs.com/packages/@angular-devkit/schematics) | [![latest](https://img.shields.io/npm/v/%40angular-devkit%2Fschematics/latest.svg)](http://npmjs.com/packages/@angular-devkit/schematics) | [![README](https://img.shields.io/badge/README--green.svg)](https://github.com/angular/devkit/blob/master/packages/angular_devkit/schematics/README.md)
56+
**Schematics CLI** | [`@angular-devkit/schematics-cli`](http://npmjs.com/packages/@angular-devkit/schematics-cli) | [![latest](https://img.shields.io/npm/v/%40angular-devkit%2Fschematics-cli/latest.svg)](http://npmjs.com/packages/@angular-devkit/schematics-cli) |
5657

5758
#### Schematics
5859

packages/angular_devkit/schematics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ What distinguish Schematics from other generators, such as Yeoman or Yarn Create
2020
| **Sink** | The final destination of all `Action`s. |
2121

2222
# Tooling
23-
Schematics is a library, and does not work by itself. A [reference CLI](https://github.com/angular/devkit/blob/master/packages/angular_devkit/schematics/bin/schematics.ts) is available on this repository, but is not published on NPM. This document explain the library usage and the tooling API, but does not go into the tool implementation itself.
23+
Schematics is a library, and does not work by itself. A [reference CLI](https://github.com/angular/devkit/blob/master/packages/angular_devkit/schematics-cli/bin/schematics.ts) is available on this repository, but is not published on NPM. This document explain the library usage and the tooling API, but does not go into the tool implementation itself.
2424

2525
The tooling is responsible for the following tasks:
2626

packages/angular_devkit/schematics/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"name": "@angular-devkit/schematics",
33
"version": "0.0.0",
44
"description": "Angular Schematics - Library",
5-
"bin": {
6-
"schematics": "./bin/schematics.js"
7-
},
85
"scripts": {
96
"preinstall": "echo DO NOT INSTALL THIS PROJECT, ONLY THE ROOT PROJECT. && exit 1"
107
},
@@ -20,9 +17,9 @@
2017
],
2118
"dependencies": {
2219
"@angular-devkit/core": "0.0.0",
23-
"@ngtools/json-schema": "^1.1.0",
24-
"@schematics/schematics": "0.0.0",
25-
"minimist": "^1.2.0",
20+
"@ngtools/json-schema": "^1.1.0"
21+
},
22+
"peerDependencies": {
2623
"rxjs": "^5.5.2"
2724
}
2825
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright Google Inc. All Rights Reserved.
2+
#
3+
# Use of this source code is governed by an MIT-style license that can be
4+
# found in the LICENSE file at https://angular.io/license
5+
package(default_visibility = ["//visibility:public"])
6+
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
7+
8+
licenses(["notice"]) # MIT License
9+
10+
ts_library(
11+
name = "schematics-cli",
12+
srcs = glob(
13+
include = ["bin/**/*.ts"],
14+
exclude = ["bin/**/*_spec.ts", "bin/**/*_benchmark.ts"],
15+
),
16+
deps = [
17+
"//packages/angular_devkit/core",
18+
"//packages/angular_devkit/core:node",
19+
"//packages/angular_devkit/schematics",
20+
"//packages/angular_devkit/schematics:tools",
21+
# @deps: rxjs
22+
],
23+
tsconfig = "//:tsconfig.json",
24+
module_name = "@angular-devkit/schematics-cli",
25+
module_root = "bin"
26+
)

packages/angular_devkit/schematics/bin/schematics.ts renamed to packages/angular_devkit/schematics_cli/bin/schematics.ts

File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "@angular-devkit/schematics-cli",
3+
"version": "0.0.0",
4+
"description": "Angular Schematics - CLI",
5+
"bin": {
6+
"schematics": "./bin/schematics.js"
7+
},
8+
"scripts": {
9+
"preinstall": "echo DO NOT INSTALL THIS PROJECT, ONLY THE ROOT PROJECT. && exit 1"
10+
},
11+
"keywords": [
12+
"blueprints",
13+
"scaffolding",
14+
"template",
15+
"tooling",
16+
"code generation",
17+
"schematics"
18+
],
19+
"dependencies": {
20+
"@angular-devkit/core": "0.0.0",
21+
"@angular-devkit/schematics": "0.0.0",
22+
"@schematics/schematics": "0.0.0",
23+
"minimist": "^1.2.0",
24+
"rxjs": "^5.5.2"
25+
}
26+
}

0 commit comments

Comments
 (0)