UNPKG

ember-cli

Version:

Command line tool for developing ambitious ember.js apps

36 lines (29 loc) 822 B
'use strict'; const stringUtil = require('ember-cli-string-utils'); const getURLFor = require('ember-source-channel-url'); module.exports = { description: 'Generates an Ember application with a module unification layout.', filesToRemove: [], locals(options) { let entity = options.entity; let rawName = entity.name; let name = stringUtil.dasherize(rawName); let namespace = stringUtil.classify(rawName); return getURLFor('canary').then(url => ({ name, modulePrefix: name, namespace, emberCLIVersion: require('../../package').version, emberCanaryVersion: url, yarn: options.yarn, welcome: options.welcome, })); }, fileMapTokens(options) { return { __component__() { return options.locals.component; }, }; }, };