Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2209f6708 | ||
|
|
753eaada75 | ||
| fe6d5df006 |
@@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@ijl/fire.app",
|
"name": "@ijl/fire.app",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon ./stubs/server.js",
|
"start": "nodemon ./stubs/server.js",
|
||||||
"build": "webpack --mode development",
|
"build": "webpack --mode development"
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
|
||||||
},
|
},
|
||||||
"author": "innoavvlasov@gmail.com",
|
"author": "innoavvlasov@gmail.com",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ const systemJSImport = async (requestUrl: string) => {
|
|||||||
// sections: { version: '1.0.0', name: 'sections' }
|
// sections: { version: '1.0.0', name: 'sections' }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
export default async ({ apps: rawApps, navigations, config }) => {
|
export default async ({ apps: rawApps, navigations, config, features }) => {
|
||||||
defineVirtualModule({ navigations, config })
|
defineVirtualModule({ navigations, config, features })
|
||||||
|
|
||||||
const apps = new Apps(rawApps)
|
const apps = new Apps(rawApps)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
const createVirtualModule = ({ config, navigations }) => ({
|
const createVirtualModule = ({ config, navigations, features }) => ({
|
||||||
getConfig: () => config,
|
getConfig: () => config,
|
||||||
getConfigValue: (key) => config[key],
|
getConfigValue: (pkg: string) => config[pkg],
|
||||||
getNavigations: () => navigations,
|
getNavigations: () => navigations,
|
||||||
getNavigationsValue: (key) => navigations[key],
|
getNavigationsValue: (pkg: string) => navigations[pkg],
|
||||||
|
getAllFeatures: () => features,
|
||||||
|
getFeatures: (pkg: string) => features[pkg]
|
||||||
})
|
})
|
||||||
|
|
||||||
export const defineVirtualModule = (params) => {
|
export const defineVirtualModule = (params) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user