How to use the ember-cli/lib/models/project function in ember-cli

To help you get started, we’ve selected a few ember-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github embroider-build / embroider / test-packages / support / build.ts View on Github external
function emberAddon(dir: string, userOpts: any = {}): any {
  let cli = new MockCLI();
  let project = new EmberCLIProject(dir, readJSONSync(join(dir, 'package.json')), cli.ui, cli);
  return new EmberAddon({ project }, userOpts);
}
github embroider-build / embroider / test-packages / support / build.ts View on Github external
function emberApp(dir: string, userOpts: any = {}): any {
  let cli = new MockCLI();
  let project = new EmberCLIProject(dir, readJSONSync(join(dir, 'package.json')), cli.ui, cli);
  return new EmberApp({ project }, userOpts);
}