Skip to content

Commit

Permalink
feat(all): create Alloy project optimization (#13641)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Nov 13, 2022
1 parent 1d9b9ba commit e18c213
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const appc = require('node-appc'),
i18n = appc.i18n(__dirname),
path = require('path'),
ti = require('node-titanium-sdk'),
{ execSync } = require('child_process'),
__ = i18n.__;

exports.cliVersion = '>=3.2.1';
Expand Down Expand Up @@ -181,6 +182,11 @@ CreateCommand.prototype.run = function run(logger, config, cli, finished) {
} else {
logger.info(__('Project created successfully in %s', appc.time.prettyDiff(cli.startTime, Date.now())) + '\n');
}

if (cli.argv.alloy !== undefined) {
execSync('alloy new ' + cli.argv['workspace-dir'] + '/' + cli.argv.name);
}

finished(err);
});
});
Expand Down

0 comments on commit e18c213

Please sign in to comment.