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:
Hans 2018-09-27 17:23:54 -04:00 committed by vikerman
parent fabcac10da
commit 8150838768
5 changed files with 50 additions and 0 deletions

View File

@ -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"

View File

@ -0,0 +1,10 @@
{
"$schema": "../architect/src/builders-schema.json",
"builders": {
"true": {
"class": "./src/true",
"schema": "./src/noop-schema.json",
"description": "Always succeed."
}
}
}

View 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"
}
}

View File

@ -0,0 +1,4 @@
{
"$schema": "http://json-schema.org/schema",
"type": "object"
}

View 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;