5c2a08de6d
* Update browserslist * Add browserslistrc * ember-cli-update --to 3.26, fix conflicts * Run codemodes that start with ember-* * More codemods - before cp* * More codemods (curly data-test-*) * WIP ember-basic-dropdown template errors * updates ember-basic-dropdown and related deps to fix build issues * updates basic dropdown instances to new version API * updates more deps -- ember-template-lint is working again * runs no-implicit-this codemod * creates and runs no-quoteless-attributes codemod * runs angle brackets codemod * updates lint:hbs globs to only touch hbs files * removes yield only templates * creates and runs deprecated args transform * supresses lint error for invokeAction on LinkTo component * resolves remaining ambiguous path lint errors * resolves simple-unless lint errors * adds warnings for deprecated tagName arg on LinkTo components * adds warnings for remaining curly component invocation * updates global template lint rules * resolves remaining template lint errors * disables some ember specfic lint rules that target pre octane patterns * js lint fix run * resolves remaining js lint errors * fixes test run * adds npm-run-all dep * fixes test attribute issues * fixes console acceptance tests * fixes tests * adds yield only wizard/tutorial-active template * fixes more tests * attempts to fix more flaky tests * removes commented out settled in transit test * updates deprecations workflow and adds initializer to filter by version * updates flaky policies acl old test * updates to flaky transit test * bumps ember deps down to LTS version * runs linters after main merge * fixes client count tests after bad merge conflict fixes * fixes client count history test * more updates to lint config * another round of hbs lint fixes after extending stylistic rule * updates lint-staged commands * removes indent eslint rule since it seems to break things * fixes bad attribute in transform-edit-form template * test fixes * fixes enterprise tests * adds changelog * removes deprecated ember-concurrency-test-waiters dep and adds @ember/test-waiters * flaky test fix Co-authored-by: hashishaw <cshaw@hashicorp.com>
103 lines
3 KiB
JavaScript
103 lines
3 KiB
JavaScript
/* eslint-env node */
|
|
'use strict';
|
|
|
|
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
|
const config = require('./config/environment')();
|
|
|
|
const environment = EmberApp.env();
|
|
const isProd = environment === 'production';
|
|
const isTest = environment === 'test';
|
|
const isCI = !!process.env.CI;
|
|
|
|
const appConfig = {
|
|
'ember-service-worker': {
|
|
serviceWorkerScope: config.serviceWorkerScope,
|
|
skipWaitingOnMessage: true,
|
|
},
|
|
svgJar: {
|
|
//optimize: false,
|
|
//paths: [],
|
|
optimizer: {},
|
|
sourceDirs: ['node_modules/@hashicorp/structure-icons/dist', 'public'],
|
|
rootURL: '/ui/',
|
|
},
|
|
assetLoader: {
|
|
generateURI: function (filePath) {
|
|
return `${config.rootURL.replace(/\/$/, '')}${filePath}`;
|
|
},
|
|
},
|
|
codemirror: {
|
|
modes: ['javascript', 'ruby'],
|
|
keyMaps: ['sublime'],
|
|
},
|
|
babel: {
|
|
plugins: ['@babel/plugin-proposal-object-rest-spread', ['inline-json-import', {}]],
|
|
},
|
|
'ember-cli-babel': {
|
|
includePolyfill: isTest || isProd || isCI,
|
|
},
|
|
hinting: isTest,
|
|
tests: isTest,
|
|
sourcemaps: {
|
|
enabled: !isProd,
|
|
},
|
|
sassOptions: {
|
|
sourceMap: false,
|
|
onlyIncluded: true,
|
|
},
|
|
autoprefixer: {
|
|
enabled: isTest || isProd,
|
|
grid: true,
|
|
// TODO CBS: Remove IE
|
|
browsers: ['defaults', 'ie 11'],
|
|
},
|
|
autoImport: {
|
|
forbidEval: true,
|
|
},
|
|
'ember-test-selectors': {
|
|
strip: isProd,
|
|
},
|
|
'ember-composable-helpers': {
|
|
except: ['array'],
|
|
},
|
|
'ember-cli-deprecation-workflow': {
|
|
enabled: true,
|
|
},
|
|
};
|
|
|
|
module.exports = function (defaults) {
|
|
let app = new EmberApp(defaults, appConfig);
|
|
|
|
app.import('vendor/string-includes.js');
|
|
app.import('node_modules/string.prototype.endswith/endswith.js');
|
|
app.import('node_modules/string.prototype.startswith/startswith.js');
|
|
|
|
app.import('node_modules/jsonlint/lib/jsonlint.js');
|
|
app.import('node_modules/codemirror/addon/lint/lint.css');
|
|
app.import('node_modules/codemirror/addon/lint/lint.js');
|
|
app.import('node_modules/codemirror/addon/lint/json-lint.js');
|
|
app.import('node_modules/text-encoder-lite/text-encoder-lite.js');
|
|
app.import('node_modules/jsondiffpatch/dist/jsondiffpatch.umd.js');
|
|
app.import('node_modules/jsondiffpatch/dist/formatters-styles/html.css');
|
|
|
|
app.import('app/styles/bulma/bulma-radio-checkbox.css');
|
|
|
|
app.import('node_modules/@hashicorp/structure-icons/dist/loading.css');
|
|
app.import('node_modules/@hashicorp/structure-icons/dist/run.css');
|
|
|
|
// Use `app.import` to add additional libraries to the generated
|
|
// output files.
|
|
//
|
|
// If you need to use different assets in different
|
|
// environments, specify an object as the first parameter. That
|
|
// object's keys should be the environment name and the values
|
|
// should be the asset to use in that environment.
|
|
//
|
|
// If the library that you are including contains AMD or ES6
|
|
// modules that you would like to import into your application
|
|
// please specify an object with the list of modules as keys
|
|
// along with the exports of each module as its value.
|
|
|
|
return app.toTree();
|
|
};
|