@equinor/fusion-framework-cli
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -22,2 +22,3 @@ import { readFileSync } from 'fs'; | ||
}, | ||
mode: 'development', | ||
appType: 'custom', | ||
@@ -24,0 +25,0 @@ build: { |
@@ -11,2 +11,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { createServer } from 'vite'; | ||
import { readFileSync } from 'fs'; | ||
import express from 'express'; | ||
@@ -26,5 +27,7 @@ import dns from 'dns'; | ||
app.use(vite.middlewares); | ||
app.use(express.static(resolveRelativePath('dev-portal'))); | ||
app.use('*', (_, res) => __awaiter(void 0, void 0, void 0, function* () { | ||
res.sendFile(resolveRelativePath('dev-portal/index.html')); | ||
app.use(express.static(resolveRelativePath('dev-portal'), { index: false })); | ||
app.use('*', (req, res) => __awaiter(void 0, void 0, void 0, function* () { | ||
const htmlRaw = readFileSync(resolveRelativePath('dev-portal/index.html'), 'utf-8'); | ||
const html = yield vite.transformIndexHtml(req.url, htmlRaw); | ||
res.send(html); | ||
})); | ||
@@ -31,0 +34,0 @@ app.listen(port); |
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.7](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@0.1.6...@equinor/fusion-framework-cli@0.1.7) (2022-11-03) | ||
### Bug Fixes | ||
- **cli:** allow default export of render app ([d27a336](https://github.com/equinor/fusion-framework/commit/d27a336874d918448389a79b1291b13a1b2f41d9)) | ||
- **cli:** transform request to index.html ([e531958](https://github.com/equinor/fusion-framework/commit/e5319586598cf8567987040468f933438a4a7521)) | ||
- deprecate useFramework from hooks ([d3d9b24](https://github.com/equinor/fusion-framework/commit/d3d9b24fe56937e2c9feba7de4228d8eb1cbbec5)) | ||
## [0.1.6](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@0.1.5...@equinor/fusion-framework-cli@0.1.6) (2022-11-03) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@equinor/fusion-framework-cli", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"keywords": [ | ||
@@ -34,3 +34,3 @@ "Fusion", | ||
"devDependencies": { | ||
"@equinor/fusion-framework-react": "^1.3.5", | ||
"@equinor/fusion-framework-react": "^1.3.6", | ||
"@equinor/fusion-react-progress-indicator": "^0.1.5", | ||
@@ -47,3 +47,3 @@ "@equinor/fusion-react-styles": "^0.5.5", | ||
}, | ||
"gitHead": "bb21836f3674173eb2809e6daa75d616c1dcf64e" | ||
"gitHead": "9cce61b38374a86ac2a74344e12af461b78aea5c" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
620427
2720
3
6