Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Babel from 'babel-core';
import Path from 'path';
import HbsPlugin from '../plugins/hbs-plugin';
import NewModulesPlugin from 'babel-plugin-ember-modules-api-polyfill';
import blueprints from '../lib/blueprints';
import Ember from 'ember';
import moment from 'moment';
import _template from "lodash/template";
import { pushDeletion } from 'ember-twiddle/utils/push-deletion';
const { computed, inject, RSVP, run, $, testing } = Ember;
const twiddleAppName = 'twiddle';
const oldTwiddleAppNames = ['demo-app', 'app'];
const hbsPlugin = new HbsPlugin(Babel);
const newModulesPlugin = new NewModulesPlugin(Babel);
// These files will be included if not present
const boilerPlateJs = [
'app',
'router',
'initializers/router',
'initializers/mouse-events',
'resolver'
];
// These files have to be present
const requiredFiles = [
'twiddle.json'
];
const availableBlueprints = {