@nstudio/ionic-angular
Version:
Ionic Angular Plugin for xplat
21 lines (20 loc) • 765 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runSchematic = runSchematic;
exports.callRule = callRule;
const path_1 = require("path");
const testing_1 = require("@angular-devkit/schematics/testing");
const testRunner = new testing_1.SchematicTestRunner('@nstudio/ionic-angular', (0, path_1.join)(__dirname, '../../collection.json'));
function runSchematic(schematicName, options, tree) {
return testRunner.runSchematic(schematicName, options, tree);
}
// export function runSchematicSync(
// schematicName: string,
// options: any,
// tree: Tree
// ) {
// return testRunner.runSchematic(schematicName, options, tree);
// }
function callRule(rule, tree) {
return testRunner.callRule(rule, tree).toPromise();
}