@equinor/echo-cli 0.20.0-beta-1 → 0.20.0-beta-3

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.
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@equinor/echo-cpc",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "main": "build/index.js",
6
+ "source": "src/index.ts",
7
+ "scripts": {
8
+ "build": "echo-build -c && npm run env",
9
+ "env": "bash ./env.sh",
10
+ "start": "echo-build -s -d",
11
+ "start-admin": "echo-build -s -d -a"
12
+ },
13
+ "author": "",
14
+ "license": "ISC",
15
+ "peerDependencies": {
16
+ "@equinor/echo-base": "0.7.5",
17
+ "@equinor/echo-components": "0.12.4",
18
+ "@equinor/echo-core": "^0.9.19",
19
+ "@equinor/echo-framework": "0.24.0",
20
+ "@equinor/echo-search": "0.15.17",
21
+ "@equinor/echo-utils": "^0.4.11",
22
+ "@equinor/eds-core-react": "0.43.0",
23
+ "@equinor/eds-icons": "0.22.0",
24
+ "lodash": "^4.17.21",
25
+ "react": "^18.3.1",
26
+ "react-dom": "^18.2.0"
27
+ },
28
+ "devDependencies": {
29
+ "@equinor/echo-base": "0.7.5",
30
+ "@equinor/echo-components": "0.12.4",
31
+ "@equinor/echo-core": "^0.9.19",
32
+ "@equinor/echo-framework": "0.24.0",
33
+ "@equinor/echo-search": "0.15.17",
34
+ "@equinor/echo-utils": "^0.4.11",
35
+ "@equinor/eds-core-react": "0.43.0",
36
+ "@equinor/echo-cli": "0.20.0-beta-2",
37
+ "@types/react": "18.0.27",
38
+ "@types/react-dom": "18.0.10",
39
+ "react": "18.2.0",
40
+ "react-dom": "18.2.0"
41
+ }
42
+ }
@@ -0,0 +1,41 @@
1
+ ![logo](https://raw.githubusercontent.com/equinor/EchoCore/main/doc/ee.png)
2
+
3
+ # Echo - cpc
4
+
5
+ This module has been bootstrapped by EchoCli.
6
+
7
+ ### NPM
8
+
9
+ ```sh-session
10
+ $ npm install @equinor/echo-module-cpc --save
11
+ ```
12
+
13
+ # Development
14
+
15
+ First time usage, run following command first:
16
+
17
+ ```sh-session
18
+ $ npm install
19
+ ```
20
+
21
+ ### NPM build
22
+
23
+ ```sh-session
24
+ $ npm run build
25
+ ```
26
+
27
+ ### NPM build watch
28
+
29
+ ```sh-session
30
+ $ npm run start
31
+ ```
32
+
33
+ ## Publish
34
+
35
+ For now the only way to include a module to echo is to publish the package to npmjs.com or npm.equinor.com
36
+
37
+ For npmjs use:
38
+
39
+ ```sh-session
40
+ $ npm run publish
41
+ ```
@@ -0,0 +1,5 @@
1
+ .wrapper {
2
+ margin-top: 150px;
3
+ padding: 16px;
4
+ text-align: center;
5
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import style from './app.module.css';
3
+
4
+ export const App: React.FC = (): JSX.Element => {
5
+ return (
6
+ <div className={style.wrapper}>
7
+ <h1>Echo App Template</h1>
8
+ <p>This is an app template for Echo Applications</p>
9
+ </div>
10
+ );
11
+ };
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1,25 @@
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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-cli",
3
- "version": "0.20.0-beta-1",
3
+ "version": "0.20.0-beta-3",
4
4
  "description": "Command line interface for Echo Apps",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/test.js",
@@ -76,7 +76,7 @@
76
76
  "webpack": "5.99.8",
77
77
  "webpack-bundle-analyzer": "4.10.2",
78
78
  "webpack-dev-middleware": "7.4.2",
79
- "webpack-dev-server": "^5.2.1",
79
+ "webpack-dev-server": "4.15.2",
80
80
  "webpack-hot-middleware": "2.26.1",
81
81
  "webpack-merge": "6.0.1",
82
82
  "webpackbar": "7.0.0"