Refactor upgrade ember 4 (#1501)

Upgrade Ember 4

Co-authored-by: Randall Morey <randall@randallmorey.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
authored and GitHub committed 2023-01-09 08:48:49 -08:00
1 parent ed91b26861
commit c21f011bb2
119 files changed
+1482 -496

No files matched your search

+7 -1
View File
@@ -5,5 +5,11 @@
Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false
"disableAnalytics": false,
/**
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
*/
"isTypeScriptProject": false
}
+9
View File
@@ -13,4 +13,13 @@
# misc
/coverage/
!.*
.*/
.eslintcache
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
+9
View File
@@ -14,3 +14,12 @@
/coverage/
!.*
.eslintcache
.lint-todo/
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
+1 -1
View File
@@ -103,7 +103,7 @@ Specify what it takes to deploy your app.
## Further Reading / Useful Links
* [ember.js](https://emberjs.com/)
* [ember-cli](https://ember-cli.com/)
* [ember-cli](https://cli.emberjs.com/release/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
-1
View File
@@ -2,7 +2,6 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Admin</title>
<meta name="description" content="Simple and secure remote access with HashiCorp Boundary.">
<meta name="viewport" content="width=device-width, initial-scale=1">
+1 -1
View File
@@ -3,7 +3,7 @@
"packages": [
{
"name": "ember-cli",
"version": "3.24.0",
"version": "4.4.1",
"blueprints": [
{
"name": "app",
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = function (environment) {
modulePrefix: 'admin',
environment,
rootURL: '/',
locationType: 'auto',
locationType: 'history',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
+6 -7
View File
@@ -16,7 +16,7 @@
"build:oss": "EDITION=oss ember build --environment=production",
"build:enterprise": "EDITION=enterprise ember build --environment=production",
"build:hcp": "EDITION=hcp ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
"lint:hbs": "ember-template-lint .",
"lint:hbs:fix": "ember-template-lint . --fix",
@@ -55,9 +55,9 @@
"doctoc": "^2.2.0",
"ember-a11y-testing": "^4.2.0",
"ember-auto-import": "^2.4.2",
"ember-cli": "^4.4.0",
"ember-cli": "^4.4.1",
"ember-cli-app-version": "^5.0.0",
"ember-cli-babel": "^7.26.10",
"ember-cli-babel": "^7.26.11",
"ember-cli-code-coverage": "^1.0.3",
"ember-cli-content-security-policy": "^2.0.3",
"ember-cli-dependency-checker": "^3.3.1",
@@ -71,13 +71,12 @@
"ember-export-application-global": "^2.0.1",
"ember-inline-svg": "^1.0.1",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^1.0.0",
"ember-modifier": "^3.2.7",
"ember-page-title": "^7.0.0",
"ember-pollster": "^0.0.1-beta.2",
"ember-qunit": "^6.0.0",
"ember-resolver": "^8.0.3",
"ember-source": "~3.28.8",
"ember-source": "~4.4.0",
"ember-template-lint": "^4.14.0",
"ember-template-lint-plugin-prettier": "^4.0.0",
"eslint": "^8.18.0",
@@ -89,14 +88,14 @@
"loader.js": "^4.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"qunit": "^2.17.2",
"qunit": "^2.19.1",
"qunit-dom": "^2.0.0",
"rose": "*",
"stylelint": "^14.14.0",
"stylelint-config-prettier-scss": "^0.0.1",
"stylelint-config-standard-scss": "^6.0.0",
"sinon": "^14.0.0",
"webpack": "^5"
"webpack": "^5.72.1"
},
"engines": {
"node": "12.* || 14.* || 16.*"
@@ -199,7 +199,8 @@ module('Acceptance | targets | brokered credential sources', function (hooks) {
brokeredCredentialSourceIds: [],
});
await visit(urls.brokeredCredentialSources);
await click(find('.rose-message-link'));
// Click on the rose message link
await click(find('.rose-message > .rose-message-body > a'));
assert.strictEqual(currentURL(), urls.addBrokeredCredentialSources);
});
@@ -196,7 +196,8 @@ module(
injectedApplicationCredentialSourceIds: [],
});
await visit(urls.injectedApplicationCredentialSources);
await click(find('.rose-message-link'));
// Click on the rose message link
await click(find('.rose-message > .rose-message-body > a'));
assert.strictEqual(
currentURL(),
urls.addInjectedApplicationCredentialSources
+42
View File
@@ -0,0 +1,42 @@
import {
setupApplicationTest as upstreamSetupApplicationTest,
setupRenderingTest as upstreamSetupRenderingTest,
setupTest as upstreamSetupTest,
} from 'ember-qunit';
// This file exists to provide wrappers around ember-qunit's / ember-mocha's
// test setup functions. This way, you can easily extend the setup that is
// needed per test type.
function setupApplicationTest(hooks, options) {
upstreamSetupApplicationTest(hooks, options);
// Additional setup for application tests can be done here.
//
// For example, if you need an authenticated session for each
// application test, you could do:
//
// hooks.beforeEach(async function () {
// await authenticateSession(); // ember-simple-auth
// });
//
// This is also a good place to call test setup functions coming
// from other addons:
//
// setupIntl(hooks); // ember-intl
// setupMirage(hooks); // ember-cli-mirage
}
function setupRenderingTest(hooks, options) {
upstreamSetupRenderingTest(hooks, options);
// Additional setup for rendering tests can be done here.
}
function setupTest(hooks, options) {
upstreamSetupTest(hooks, options);
// Additional setup for unit tests can be done here.
}
export { setupApplicationTest, setupRenderingTest, setupTest };
-1
View File
@@ -2,7 +2,6 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Admin Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">