3 Commits

Author SHA1 Message Date
Andrey Vlasov
f2209f6708 1.3.0 2020-12-06 19:49:43 +03:00
Andrey Vlasov
753eaada75 add features 2020-12-06 19:49:08 +03:00
fe6d5df006 No test specified 2020-04-04 11:20:21 +03:00
3 changed files with 9 additions and 8 deletions

View File

@@ -1,12 +1,11 @@
{
"name": "@ijl/fire.app",
"version": "1.2.0",
"version": "1.3.0",
"description": "",
"main": "dist/index.js",
"scripts": {
"start": "nodemon ./stubs/server.js",
"build": "webpack --mode development",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "webpack --mode development"
},
"author": "innoavvlasov@gmail.com",
"license": "ISC",

View File

@@ -33,8 +33,8 @@ const systemJSImport = async (requestUrl: string) => {
// sections: { version: '1.0.0', name: 'sections' }
// }
export default async ({ apps: rawApps, navigations, config }) => {
defineVirtualModule({ navigations, config })
export default async ({ apps: rawApps, navigations, config, features }) => {
defineVirtualModule({ navigations, config, features })
const apps = new Apps(rawApps)

View File

@@ -1,8 +1,10 @@
const createVirtualModule = ({ config, navigations }) => ({
const createVirtualModule = ({ config, navigations, features }) => ({
getConfig: () => config,
getConfigValue: (key) => config[key],
getConfigValue: (pkg: string) => config[pkg],
getNavigations: () => navigations,
getNavigationsValue: (key) => navigations[key],
getNavigationsValue: (pkg: string) => navigations[pkg],
getAllFeatures: () => features,
getFeatures: (pkg: string) => features[pkg]
})
export const defineVirtualModule = (params) => {