Skip to content

Commit

Permalink
feat(generate-skeletons): add plugin skeletons to "au generate-skelet…
Browse files Browse the repository at this point in the history
…ons"
  • Loading branch information
3cp committed Mar 27, 2019
1 parent f5b2367 commit 245ce7e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/commands/generate-skeletons/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const CLIOptions = require('../../cli-options').CLIOptions;
const logger = require('aurelia-logging').getLogger('generate-skeletons');
const selectFeatures = require('../../workflow/select-features');
const writeProject = require('../../workflow/write-project');
const applicable = require('../../workflow/applicable');

// Designed to cover all unit/e2e/transpiler combinations.
// Cover decent css/postcss/htmlmin combinations.
Expand Down Expand Up @@ -79,7 +80,17 @@ const projectDefs = [
'webpack typescript jest dotnet-core cypress',
'webpack http2 htmlmin-max typescript jest cypress scaffold-navigation',
'webpack http2 sass typescript postcss-typical karma dotnet-core cypress scaffold-navigation vscode',
'webpack htmlmin-min typescript karma cypress'
'webpack htmlmin-min typescript karma cypress',

'plugin stylus htmlmin-min jest',
'plugin karma postcss-typical vscode',
'plugin htmlmin-max typescript jest',
'plugin typescript karma plugin-scaffold-basic',

'plugin htmlmin-max jest',
'plugin less htmlmin-min postcss-typical postcss-basic karma plugin-scaffold-basic',
'plugin typescript jest',
'plugin sass htmlmin-max typescript karma'
];

module.exports = class {
Expand All @@ -100,7 +111,7 @@ module.exports = class {
for (let i = 0, ii = defs.length; i < ii; i++) {
let features = _(defs[i].split(' ')).map(_.trim).compact().value();
// Cleanup feature set, and fillup default.
features = await selectFeatures(features, {unattended: true});
features = await selectFeatures(features, {unattended: true, plugin: applicable(features, 'plugin')});
const projectName = features.join('_');

logger.info(`Writing ${i + 1}/${ii} ${projectName}`);
Expand Down

0 comments on commit 245ce7e

Please sign in to comment.