@equinor/echo-cli 1.0.0-beta-15 → 1.0.0-beta-17

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 (35) hide show
  1. package/lib/const/common.d.ts +1 -1
  2. package/lib/const/common.js +1 -1
  3. package/lib/const/common.js.map +1 -1
  4. package/lib/echo-build-dev-host.js +2 -1
  5. package/lib/echo-build-dev-host.js.map +1 -1
  6. package/lib/echo-update-dev-host-deps.js +7 -5
  7. package/lib/echo-update-dev-host-deps.js.map +1 -1
  8. package/lib/tools/buildScripts/buildAndCopyDevHost.js +8 -4
  9. package/lib/tools/buildScripts/buildAndCopyDevHost.js.map +1 -1
  10. package/package.json +2 -3
  11. package/echo-dev-host/.env +0 -29
  12. package/echo-dev-host/.vscode/settings.json +0 -5
  13. package/echo-dev-host/README.md +0 -46
  14. package/echo-dev-host/babel.config.js +0 -11
  15. package/echo-dev-host/env.sh +0 -51
  16. package/echo-dev-host/jest.config.js +0 -21
  17. package/echo-dev-host/package-lock.json +0 -12457
  18. package/echo-dev-host/package.json +0 -80
  19. package/echo-dev-host/public/env-config.js +0 -17
  20. package/echo-dev-host/public/index.css +0 -60
  21. package/echo-dev-host/public/index.html +0 -21
  22. package/echo-dev-host/src/api/api-plants.ts +0 -22
  23. package/echo-dev-host/src/app.css +0 -12
  24. package/echo-dev-host/src/app.tsx +0 -43
  25. package/echo-dev-host/src/components/Home/Home.tsx +0 -23
  26. package/echo-dev-host/src/components/Home/home.module.css +0 -38
  27. package/echo-dev-host/src/components/legend.tsx +0 -3
  28. package/echo-dev-host/src/images/frontpage-brand-placeholder.jpg +0 -0
  29. package/echo-dev-host/src/index.tsx +0 -90
  30. package/echo-dev-host/src/setupTests.ts +0 -25
  31. package/echo-dev-host/src/utils/plants.test.ts +0 -33
  32. package/echo-dev-host/src/utils/plants.ts +0 -12
  33. package/echo-dev-host/src/utils/setupSkipAuth.ts +0 -43
  34. package/echo-dev-host/tsconfig.json +0 -21
  35. package/echo-dev-host/webpack.config.js +0 -141
@@ -1,141 +0,0 @@
1
- import CopyPlugin from 'copy-webpack-plugin';
2
- import Dotenv from 'dotenv-webpack';
3
- import HtmlWebpackPlugin from 'html-webpack-plugin';
4
- import path from 'path';
5
- import WebpackBar from 'webpackbar';
6
-
7
- const webpackConfig = (env) => {
8
- console.log('Building the dev host application for EchoCli.');
9
-
10
- const buildOutputFolder = 'echo-dev-host-build';
11
-
12
- return {
13
- entry: ['@babel/polyfill', './src/index.tsx'],
14
- mode: 'production',
15
- devtool: 'source-map',
16
- output: {
17
- clean: true,
18
- path: path.resolve(process.cwd(), buildOutputFolder),
19
- filename: '[name].echo.bundle.js',
20
- chunkFilename: 'assets/[name].[contenthash].chunk.js',
21
- publicPath: '/'
22
- },
23
- resolve: {
24
- extensions: ['.ts', '.tsx', '.js', '.jsx'],
25
- fallback: {
26
- crypto: false,
27
- stream: false,
28
- buffer: false
29
- }
30
- },
31
- module: {
32
- rules: [
33
- {
34
- test: /\.(ts|tsx)$/,
35
- loader: 'ts-loader',
36
- exclude: /node_modules/
37
- },
38
- {
39
- test: /\.(js|jsx)$/,
40
- exclude: /node_modules/,
41
- loader: 'babel-loader'
42
- },
43
- {
44
- test: /\.css$/,
45
- use: [
46
- 'style-loader',
47
- {
48
- loader: 'css-loader',
49
- options: {
50
- importLoaders: 1,
51
- modules: {
52
- mode: 'local',
53
- localIdentName: 'echo-[folder]__[local]-[hash:base64:5]',
54
- namedExport: false,
55
- exportLocalsConvention: 'as-is'
56
- }
57
- }
58
- }
59
- ],
60
- include: /\.module\.css$/
61
- },
62
- {
63
- test: /\.css$/,
64
- use: ['style-loader', 'css-loader'],
65
- exclude: /\.module\.css$/
66
- },
67
- {
68
- test: /\.svg$/,
69
- use: ['@svgr/webpack']
70
- },
71
- {
72
- test: /\.(png|jpe?g|gif)$/i,
73
- use: [
74
- {
75
- loader: 'file-loader'
76
- }
77
- ]
78
- }
79
- ]
80
- },
81
- devServer: {
82
- static: [
83
- {
84
- directory: path.join(import.meta.dirname, 'public')
85
- },
86
- {
87
- directory: path.join(import.meta.dirname, 'build')
88
- }
89
- ],
90
- compress: true,
91
- port: 3000,
92
- hot: true,
93
- historyApiFallback: true,
94
- server: 'https',
95
- headers: {
96
- 'Access-Control-Allow-Origin': '*',
97
- 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
98
- 'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization'
99
- }
100
- // overlay: {
101
- // warnings: true,
102
- // errors: true,
103
- // },
104
- },
105
- plugins: [
106
- new Dotenv({
107
- ignoreStub: false,
108
- expand: true,
109
- systemvars: false
110
- }),
111
- new HtmlWebpackPlugin({
112
- template: path.resolve(import.meta.dirname, './public/index.html')
113
- }),
114
- new WebpackBar({
115
- name: 'Echo module',
116
- color: '#007079',
117
- profile: true
118
- }),
119
- new CopyPlugin({
120
- patterns: [
121
- {
122
- from: path.resolve(import.meta.dirname, './public/index.css'),
123
- to: path.resolve(process.cwd(), buildOutputFolder, 'index.css')
124
- },
125
- {
126
- from: path.resolve(import.meta.dirname, './public/env-config.js'),
127
- to: path.resolve(process.cwd(), buildOutputFolder, 'env-config.js')
128
- }
129
- ]
130
- })
131
- ],
132
- optimization: {
133
- splitChunks: {
134
- chunks: 'all'
135
- },
136
- minimize: true
137
- }
138
- };
139
- };
140
-
141
- export default webpackConfig;