@equinor/fusion-framework-cli 7.0.13 → 8.0.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.
- package/CHANGELOG.md +31 -0
- package/bin/create-config.js +16 -7
- package/bin/dev-portal/assets/index-6bd97f49.js +2901 -0
- package/bin/dev-portal/index.html +1 -1
- package/bin/main.js +13 -5
- package/package.json +9 -9
- package/bin/dev-portal/assets/index-db8f1e6a.js +0 -2886
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#973](https://github.com/equinor/fusion-framework/pull/973) [`713c94d9`](https://github.com/equinor/fusion-framework/commit/713c94d9a493f5aecb9fefa44942f83bd30ae29c) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump commander from [10.0.1](https://github.com/tj/commander.js/releases/tag/v10.0.1) to [11.0.0](https://github.com/tj/commander.js/releases/tag/v11.0.0)
|
|
8
|
+
|
|
9
|
+
**Breaking**
|
|
10
|
+
|
|
11
|
+
@equinor/fusion-framework-cli now requires Node.js v16 or higher
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#1047](https://github.com/equinor/fusion-framework/pull/1047) [`1a2880d2`](https://github.com/equinor/fusion-framework/commit/1a2880d2e4c80ac5ce08f63ca3699fe77e4b565c) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @typescript-eslint/eslint-plugin from 5.59.11 to 6.1.0
|
|
16
|
+
|
|
17
|
+
only style semantics updated
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`b16e93e2`](https://github.com/equinor/fusion-framework/commit/b16e93e23e456ab065a414f4bdc44445b6e9ad9f), [`b16e93e2`](https://github.com/equinor/fusion-framework/commit/b16e93e23e456ab065a414f4bdc44445b6e9ad9f), [`b16e93e2`](https://github.com/equinor/fusion-framework/commit/b16e93e23e456ab065a414f4bdc44445b6e9ad9f), [`0a785d5c`](https://github.com/equinor/fusion-framework/commit/0a785d5c339ceec7cbbe2a6ff9e16053c86ce511), [`38869a87`](https://github.com/equinor/fusion-framework/commit/38869a87788c340d363e9be1e7fc6ce0e29efa63)]:
|
|
20
|
+
- @equinor/fusion-observable@8.0.3
|
|
21
|
+
- @equinor/fusion-framework-app@7.1.0
|
|
22
|
+
|
|
23
|
+
## 7.1.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [#1055](https://github.com/equinor/fusion-framework/pull/1055) [`6c2fd59e`](https://github.com/equinor/fusion-framework/commit/6c2fd59e66ff77629ce1b7ecd5fd47e799719b91) Thanks [@odinr](https://github.com/odinr)! - **Allow loading of custom vite config**
|
|
28
|
+
|
|
29
|
+
When running the CLI, allow the user to provide custom [Vite config](https://vitejs.dev/config/).
|
|
30
|
+
The provided config is merged with the built-in config (default generated by the CLI).
|
|
31
|
+
|
|
32
|
+
updated [documentation](https://equinor.github.io/fusion-framework/guide/app/cli.html#config)
|
|
33
|
+
|
|
3
34
|
## 7.0.13
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/bin/create-config.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import { resolve } from 'path';
|
|
2
11
|
import { defineConfig, createLogger } from 'vite';
|
|
3
12
|
import react from '@vitejs/plugin-react';
|
|
@@ -16,21 +25,25 @@ const createCustomLogger = () => {
|
|
|
16
25
|
};
|
|
17
26
|
return logger;
|
|
18
27
|
};
|
|
19
|
-
export const
|
|
28
|
+
export const loadCustomConfig = (file) => __awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
const filePath = resolve(process.cwd(), file);
|
|
30
|
+
return (yield import(filePath)).default;
|
|
31
|
+
});
|
|
32
|
+
export const createConfig = (opt) => {
|
|
33
|
+
const { mode } = opt !== null && opt !== void 0 ? opt : { mode: 'development' };
|
|
20
34
|
const { root, pkg } = resolvePackage();
|
|
21
35
|
return defineConfig({
|
|
22
36
|
plugins: [
|
|
23
37
|
react(),
|
|
24
38
|
tsconfigPaths(),
|
|
25
39
|
EnvironmentPlugin({
|
|
26
|
-
NODE_ENV:
|
|
40
|
+
NODE_ENV: mode,
|
|
27
41
|
}),
|
|
28
42
|
],
|
|
29
43
|
root: root,
|
|
30
44
|
server: {
|
|
31
45
|
middlewareMode: true,
|
|
32
46
|
},
|
|
33
|
-
mode: 'development',
|
|
34
47
|
appType: 'custom',
|
|
35
48
|
build: {
|
|
36
49
|
outDir: resolve(root, 'dist'),
|
|
@@ -39,10 +52,6 @@ export const createConfig = () => {
|
|
|
39
52
|
fileName: 'app-bundle',
|
|
40
53
|
formats: ['es'],
|
|
41
54
|
},
|
|
42
|
-
// minify: false,
|
|
43
|
-
// terserOptions: {
|
|
44
|
-
// mangle: false,
|
|
45
|
-
// },
|
|
46
55
|
},
|
|
47
56
|
customLogger: createCustomLogger(),
|
|
48
57
|
});
|