@equinor/echo-cli 4.3.1 → 5.0.0-beta-r19-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +415 -413
  2. package/lib/config/common/echoModuleConfig.d.ts +0 -2
  3. package/lib/config/common/echoModuleConfig.js +1 -33
  4. package/lib/config/common/echoModuleConfig.js.map +1 -1
  5. package/lib/const/common.d.ts +0 -1
  6. package/lib/const/common.js +0 -1
  7. package/lib/const/common.js.map +1 -1
  8. package/lib/echo-dev-host/README.md +121 -121
  9. package/lib/echo-dev-host/babel.config.js +10 -10
  10. package/lib/echo-dev-host/echo-dev-host-build/d2d97a9feca22f12a8c8c7413d7867ac.jpg +0 -0
  11. package/lib/echo-dev-host/echo-dev-host-build/env-config.js +1 -0
  12. package/lib/echo-dev-host/echo-dev-host-build/index.css +60 -0
  13. package/lib/echo-dev-host/echo-dev-host-build/index.html +21 -0
  14. package/lib/echo-dev-host/echo-dev-host-build/main.echo.bundle.js +3 -0
  15. package/lib/echo-dev-host/echo-dev-host-build/main.echo.bundle.js.LICENSE.txt +97 -0
  16. package/lib/echo-dev-host/echo-dev-host-build/main.echo.bundle.js.map +1 -0
  17. package/lib/echo-dev-host/echo-dev-host-build/vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-972289.echo.bundle.js +3 -0
  18. package/lib/echo-dev-host/echo-dev-host-build/vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-972289.echo.bundle.js.LICENSE.txt +2887 -0
  19. package/lib/echo-dev-host/echo-dev-host-build/vendors-node_modules_babel_polyfill_lib_index_js-node_modules_react-dom_client_js-node_module-972289.echo.bundle.js.map +1 -0
  20. package/lib/echo-dev-host/jest.config.js +21 -21
  21. package/lib/echo-dev-host/package-lock.json +14710 -14707
  22. package/lib/echo-dev-host/package.json +10 -10
  23. package/lib/echo-dev-host/public/env-config.js +17 -17
  24. package/lib/echo-dev-host/public/index.html +21 -21
  25. package/lib/echo-dev-host/src/index.tsx +1 -1
  26. package/lib/echo-dev-host/tsconfig.json +21 -21
  27. package/lib/echo-dev-host/webpack.config.js +154 -154
  28. package/lib/sync-echo-dev-versions.d.ts +6 -0
  29. package/lib/sync-echo-dev-versions.js +43 -0
  30. package/lib/sync-echo-dev-versions.js.map +1 -0
  31. package/lib/tools/buildScripts/buildAndCopyDevHost.test.d.ts +1 -0
  32. package/lib/tools/buildScripts/buildAndCopyDevHost.test.js +500 -0
  33. package/lib/tools/buildScripts/buildAndCopyDevHost.test.js.map +1 -0
  34. package/lib/tools/releaseWorkflow/bump-version.d.ts +27 -0
  35. package/lib/tools/releaseWorkflow/bump-version.js +81 -0
  36. package/lib/tools/releaseWorkflow/bump-version.js.map +1 -0
  37. package/lib/utils/merge.test.d.ts +1 -0
  38. package/lib/utils/merge.test.js +29 -0
  39. package/lib/utils/merge.test.js.map +1 -0
  40. package/package.json +122 -126
  41. package/templates/echoAppTemplate/.env +0 -0
  42. package/templates/echoAppTemplate/.gitattributes +0 -3
  43. package/templates/echoAppTemplate/env.sh +0 -54
  44. package/templates/echoAppTemplate/package.json +0 -36
  45. package/templates/echoAppTemplate/readme.md +0 -41
  46. package/templates/echoAppTemplate/src/app.module.css +0 -5
  47. package/templates/echoAppTemplate/src/app.tsx +0 -30
  48. package/templates/echoAppTemplate/src/index.ts +0 -6
  49. package/templates/echoAppTemplate/tsconfig.json +0 -25
  50. package/templates/echoAppTemplateTutorial/.env +0 -0
  51. package/templates/echoAppTemplateTutorial/.gitattributes +0 -3
  52. package/templates/echoAppTemplateTutorial/env.sh +0 -54
  53. package/templates/echoAppTemplateTutorial/package.json +0 -37
  54. package/templates/echoAppTemplateTutorial/readme.md +0 -41
  55. package/templates/echoAppTemplateTutorial/src/app.module.css +0 -5
  56. package/templates/echoAppTemplateTutorial/src/app.tsx +0 -30
  57. package/templates/echoAppTemplateTutorial/src/index.ts +0 -6
  58. package/templates/echoAppTemplateTutorial/tsconfig.json +0 -25
  59. package/templates/echoLibraryTemplate/package.json +0 -36
  60. package/templates/echoLibraryTemplate/public/ee.png +0 -0
  61. package/templates/echoLibraryTemplate/public/index.html +0 -21
  62. package/templates/echoLibraryTemplate/public/style.css +0 -43
  63. package/templates/echoLibraryTemplate/readme.md +0 -1
  64. package/templates/echoPluginTemplate/package.json +0 -36
  65. package/templates/echoPluginTemplate/public/ee.png +0 -0
  66. package/templates/echoPluginTemplate/public/index.html +0 -21
  67. package/templates/echoPluginTemplate/public/style.css +0 -43
  68. package/templates/echoPluginTemplate/readme.md +0 -1
@@ -1,5 +0,0 @@
1
- .wrapper {
2
- margin-top: 150px;
3
- padding: 16px;
4
- text-align: center;
5
- }
@@ -1,30 +0,0 @@
1
- import EchoCore, { EchoEnv } from '@equinor/echo-core';
2
- import React, { useEffect, useState } from 'react';
3
- import style from './app.module.css';
4
-
5
- const baseApiUrl = EchoEnv.env().REACT_APP_API_URL;
6
-
7
- async function getVersion(): Promise<string> {
8
- const data = await EchoCore.EchoClient.fetch(`${baseApiUrl}/Version`);
9
- return await data.text();
10
- }
11
-
12
- const App: React.FC = (): JSX.Element => {
13
- const [echoVersion, setEchoVersion] = useState('');
14
-
15
- useEffect(() => {
16
- getVersion().then((version: string) => {
17
- setEchoVersion(version);
18
- });
19
- });
20
-
21
- return (
22
- <div className={style.wrapper}>
23
- <h1>Echo App Template</h1>
24
- <p>This is an app template for Echo Applications</p>
25
- <h6>Echo v{echoVersion}</h6>
26
- </div>
27
- );
28
- };
29
-
30
- export default App;
@@ -1,6 +0,0 @@
1
- import { EchoModuleApi } from '@equinor/echo-core';
2
- import App from './app';
3
-
4
- export function setup(api: EchoModuleApi): void {
5
- api.registerApp(App);
6
- }
@@ -1,25 +0,0 @@
1
- {
2
- "include": ["src"],
3
- "compilerOptions": {
4
- "sourceMap": true,
5
- "noImplicitAny": false,
6
- "module": "ES2015",
7
- "target": "es5",
8
- "lib": [
9
- "esnext",
10
- "dom",
11
- "dom.iterable"
12
- ],
13
- "removeComments": true,
14
- "allowSyntheticDefaultImports": true,
15
- "jsx": "react",
16
- "allowJs": true,
17
- "baseUrl": "./src",
18
- "esModuleInterop": true,
19
- "resolveJsonModule": true,
20
- "moduleResolution": "node",
21
- "downlevelIteration": true,
22
- "types": ["@equinor/echo-scripts"],
23
- }
24
- }
25
-
@@ -1,36 +0,0 @@
1
- {
2
- "name": "echo-library-template",
3
- "version": "0.0.1",
4
- "description": "",
5
- "main": "build/index.js",
6
- "source": "src/index.ts",
7
- "scripts": {
8
- "build": "echo-build",
9
- "start": "echo-build -s -d"
10
- },
11
- "author": "",
12
- "license": "ISC",
13
- "manifest": {},
14
- "dependencies": {},
15
- "peerDependencies": {
16
- "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
17
- "@equinor/echo-components": ">= 0.11.1 < 0.12.0",
18
- "@equinor/echo-core": ">= 0.9.8 < 0.10.0",
19
- "@equinor/echo-search": ">= 0.15.3 < 0.16.0",
20
- "@equinor/echo-utils": ">= 0.4.1 < 0.5.0",
21
- "react": ">= 17.0.2",
22
- "react-dom": " >= 17.0.2"
23
- },
24
- "devDependencies": {
25
- "@equinor/echo-base": "0.7.3",
26
- "@equinor/echo-components": "0.11.16",
27
- "@equinor/echo-core": "0.9.12",
28
- "@equinor/echo-search": "0.15.8",
29
- "@equinor/echo-utils": "0.4.5",
30
- "@equinor/echo-cli": "0.14.18",
31
- "@types/react": "18.0.27",
32
- "@types/react-dom": "18.0.10",
33
- "react": "18.2.0",
34
- "react-dom": "18.2.0"
35
- }
36
- }
@@ -1,21 +0,0 @@
1
- <!-- src/template.html -->
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <title>Echo | Search</title>
7
- <link rel="stylesheet" href="style.css">
8
- </head>
9
-
10
- <body>
11
- <div class="centered">
12
- <img src="./ee.png" width="250" alt="EchoSearch">
13
- <div>Example</div>
14
- <h1 class="header">Echo Search</h1><br />
15
- <p>Please look at your developer console.</p>
16
- <button id="start">Start</button>
17
- <button id="doStuff">Start</button>
18
- </div>
19
- </body>
20
-
21
- </html>
@@ -1,43 +0,0 @@
1
- html,
2
- body {
3
- margin: 0;
4
- padding: 0;
5
- width: 100%;
6
- height: 100%;
7
- background-color: #fff;
8
- font-family: monospace;
9
- }
10
-
11
- .centered {
12
- position: absolute;
13
- top: 50%;
14
- left: 50%;
15
- transform: translate(-50%, -50%);
16
- background-color: #dedede;
17
- padding: 20px 30px;
18
- display: flex;
19
- flex-direction: column;
20
- text-align: center;
21
- }
22
-
23
- .header {
24
- width: 100%;
25
- text-align: center;
26
- color: rgb(203, 119, 50);
27
- }
28
-
29
- button {
30
- justify-self: center;
31
- margin-top: 8px;
32
- background: rgb(253, 108, 156);
33
- padding: 16px;
34
- border: hidden;
35
- }
36
-
37
- button:hover {
38
- background: rgb(248, 177, 62);
39
- }
40
-
41
- button:focus {
42
- background: rgb(230, 181, 104);
43
- }
@@ -1 +0,0 @@
1
- # echoLibraryTemplate
@@ -1,36 +0,0 @@
1
- {
2
- "name": "echo-plugin-template",
3
- "version": "0.0.1",
4
- "description": "",
5
- "main": "build/index.js",
6
- "source": "src/index.ts",
7
- "scripts": {
8
- "build": "echo-build",
9
- "start": "echo-build -s -d"
10
- },
11
- "author": "",
12
- "license": "ISC",
13
- "manifest": {},
14
- "dependencies": {},
15
- "peerDependencies": {
16
- "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
17
- "@equinor/echo-components": ">= 0.11.1 < 0.12.0",
18
- "@equinor/echo-core": ">= 0.9.8 < 0.10.0",
19
- "@equinor/echo-search": ">= 0.15.3 < 0.16.0",
20
- "@equinor/echo-utils": ">= 0.4.1 < 0.5.0",
21
- "react": ">= 17.0.2",
22
- "react-dom": " >= 17.0.2"
23
- },
24
- "devDependencies": {
25
- "@equinor/echo-base": "0.7.3",
26
- "@equinor/echo-components": "0.11.16",
27
- "@equinor/echo-core": "0.9.12",
28
- "@equinor/echo-search": "0.15.8",
29
- "@equinor/echo-utils": "0.4.5",
30
- "@equinor/echo-cli": "0.14.18",
31
- "@types/react": "18.0.27",
32
- "@types/react-dom": "18.0.10",
33
- "react": "18.2.0",
34
- "react-dom": "18.2.0"
35
- }
36
- }
@@ -1,21 +0,0 @@
1
- <!-- src/template.html -->
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <title>Echo | Search</title>
7
- <link rel="stylesheet" href="style.css">
8
- </head>
9
-
10
- <body>
11
- <div class="centered">
12
- <img src="./ee.png" width="250" alt="EchoSearch">
13
- <div>Example</div>
14
- <h1 class="header">Echo Search</h1><br />
15
- <p>Please look at your developer console.</p>
16
- <button id="start">Start</button>
17
- <button id="doStuff">Start</button>
18
- </div>
19
- </body>
20
-
21
- </html>
@@ -1,43 +0,0 @@
1
- html,
2
- body {
3
- margin: 0;
4
- padding: 0;
5
- width: 100%;
6
- height: 100%;
7
- background-color: #fff;
8
- font-family: monospace;
9
- }
10
-
11
- .centered {
12
- position: absolute;
13
- top: 50%;
14
- left: 50%;
15
- transform: translate(-50%, -50%);
16
- background-color: #dedede;
17
- padding: 20px 30px;
18
- display: flex;
19
- flex-direction: column;
20
- text-align: center;
21
- }
22
-
23
- .header {
24
- width: 100%;
25
- text-align: center;
26
- color: rgb(203, 119, 50);
27
- }
28
-
29
- button {
30
- justify-self: center;
31
- margin-top: 8px;
32
- background: rgb(253, 108, 156);
33
- padding: 16px;
34
- border: hidden;
35
- }
36
-
37
- button:hover {
38
- background: rgb(248, 177, 62);
39
- }
40
-
41
- button:focus {
42
- background: rgb(230, 181, 104);
43
- }
@@ -1 +0,0 @@
1
- # Woohoo module