move build before detection
This commit is contained in:
parent
974fe320f0
commit
869eb79faf
@ -51,6 +51,7 @@ Plugin manifest (`plugin.json`) example:
|
||||
"name": "plugin-name", // The name of your plugin, must match the name of the directory
|
||||
"version": "0.0.0", // The version of your plugin, must be semantic versioning!
|
||||
"description": "", // Optional description for this plugin
|
||||
"tags": [], // Optional list of tags describing this plugin
|
||||
"dependencies": [], // List of plugins this plugin depends on
|
||||
"npmDependencies": [], // List of npm modules this plugin depends on. Supports versions, example 'thing@1.0.0'
|
||||
}
|
||||
|
@ -217,6 +217,11 @@ async function buildRepository(
|
||||
}
|
||||
}
|
||||
|
||||
if (meta.typescript) {
|
||||
console.log('Running build task..');
|
||||
await execute(['npm', 'run', 'build'], location);
|
||||
}
|
||||
|
||||
console.log('Detecting plugins in this environment..');
|
||||
|
||||
const loader = new PluginMetaLoader(env);
|
||||
@ -237,11 +242,6 @@ async function buildRepository(
|
||||
meta.plugins = savedList;
|
||||
await fs.writeJson(buildMetaFile, meta, { spaces: 2 });
|
||||
|
||||
if (meta.typescript) {
|
||||
console.log('Running build task..');
|
||||
await execute(['npm', 'run', 'build'], location);
|
||||
}
|
||||
|
||||
if (!out) {
|
||||
console.log('Done!');
|
||||
return;
|
||||
|
38
tslint.json
38
tslint.json
@ -14,10 +14,6 @@
|
||||
"severity": "warning"
|
||||
},
|
||||
"eofline": true,
|
||||
"import-blacklist": [
|
||||
true,
|
||||
"rxjs/Rx"
|
||||
],
|
||||
"import-spacing": true,
|
||||
"indent": {
|
||||
"options": [
|
||||
@ -70,7 +66,6 @@
|
||||
"always"
|
||||
]
|
||||
},
|
||||
"forin": false,
|
||||
"space-before-function-paren": {
|
||||
"options": {
|
||||
"anonymous": "never",
|
||||
@ -84,6 +79,10 @@
|
||||
true,
|
||||
"call-signature"
|
||||
],
|
||||
"forin": false,
|
||||
"ban-types": {
|
||||
"function": false
|
||||
},
|
||||
"typedef-whitespace": {
|
||||
"options": [
|
||||
{
|
||||
@ -118,33 +117,6 @@
|
||||
"check-type",
|
||||
"check-typecast"
|
||||
]
|
||||
},
|
||||
"component-class-suffix": true,
|
||||
"contextual-lifecycle": true,
|
||||
"directive-class-suffix": true,
|
||||
"no-conflicting-lifecycle": true,
|
||||
"no-host-metadata-property": true,
|
||||
"no-input-rename": true,
|
||||
"no-inputs-metadata-property": true,
|
||||
"no-output-native": true,
|
||||
"no-output-on-prefix": true,
|
||||
"no-output-rename": true,
|
||||
"no-outputs-metadata-property": true,
|
||||
"template-banana-in-box": true,
|
||||
"template-no-negated-async": true,
|
||||
"use-lifecycle-interface": true,
|
||||
"use-pipe-transform-interface": true,
|
||||
"directive-selector": [
|
||||
true,
|
||||
"attribute",
|
||||
"app",
|
||||
"camelCase"
|
||||
],
|
||||
"component-selector": [
|
||||
true,
|
||||
"element",
|
||||
"app",
|
||||
"kebab-case"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user