mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 01:08:29 +08:00
ci: new true builder as a private package (#12390)
This is useful for testing things with a builder that always succeeds. In a project, use "devkit-admin build && npm install $DEVKIT_PATH/dist/___builder.tgz" and you have a "@_/builders" package that contains a true builder. This is not published on NPM so I scope this as ci.
This commit is contained in:
parent
fabcac10da
commit
8150838768
@ -45,6 +45,10 @@
|
|||||||
"version": "0.9.0-beta.4",
|
"version": "0.9.0-beta.4",
|
||||||
"hash": "a9b1f213a4069f789d20021bda616775"
|
"hash": "a9b1f213a4069f789d20021bda616775"
|
||||||
},
|
},
|
||||||
|
"@_/builders": {
|
||||||
|
"version": "0.9.0-beta.4",
|
||||||
|
"hash": ""
|
||||||
|
},
|
||||||
"devkit": {
|
"devkit": {
|
||||||
"version": "0.9.0-beta.4",
|
"version": "0.9.0-beta.4",
|
||||||
"hash": "30ac66398ef7b4f7a5dbd3192d24c665"
|
"hash": "30ac66398ef7b4f7a5dbd3192d24c665"
|
||||||
|
10
packages/_/builders/builders.json
Normal file
10
packages/_/builders/builders.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../architect/src/builders-schema.json",
|
||||||
|
"builders": {
|
||||||
|
"true": {
|
||||||
|
"class": "./src/true",
|
||||||
|
"schema": "./src/noop-schema.json",
|
||||||
|
"description": "Always succeed."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
12
packages/_/builders/package.json
Normal file
12
packages/_/builders/package.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "@_/builders",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "CLI tool for Angular",
|
||||||
|
"main": "src/index.js",
|
||||||
|
"typings": "src/index.d.ts",
|
||||||
|
"builders": "builders.json",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"rxjs": "6.3.3"
|
||||||
|
}
|
||||||
|
}
|
4
packages/_/builders/src/noop-schema.json
Normal file
4
packages/_/builders/src/noop-schema.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/schema",
|
||||||
|
"type": "object"
|
||||||
|
}
|
20
packages/_/builders/src/true.ts
Normal file
20
packages/_/builders/src/true.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Google Inc. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style license that can be
|
||||||
|
* found in the LICENSE file at https://angular.io/license
|
||||||
|
*/
|
||||||
|
import { Observable, of } from 'rxjs';
|
||||||
|
|
||||||
|
export class TrueBuilder {
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
run(): Observable<{ success: boolean }> {
|
||||||
|
return of({
|
||||||
|
success: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default TrueBuilder;
|
Loading…
x
Reference in New Issue
Block a user