-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(all): add initial packages (#1)
- Loading branch information
Showing
67 changed files
with
5,466 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.cache | ||
coverage | ||
lerna-debug.log | ||
lib/ | ||
node_modules/ | ||
lib | ||
node_modules | ||
npm-debug.log | ||
package-lock.json | ||
todo.tasks | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.cache | ||
CHANGELOG.md | ||
lib/ | ||
node_modules/ | ||
coverage | ||
docs | ||
lib | ||
node_modules | ||
package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# @feature-hub/browser-feature-app-module-loader | ||
|
||
[](https://yarnpkg.com/en/package/@feature-hub/browser-feature-app-module-loader) | ||
|
||
> TODO | ||
**This package is part of the | ||
[Feature Hub](https://github.com/sinnerschrader/feature-hub) monorepo.** | ||
|
||
## Getting started | ||
|
||
Install `@feature-hub/browser-feature-app-module-loader` as a dependency: | ||
|
||
```sh | ||
# Install using Yarn | ||
yarn add @feature-hub/browser-feature-app-module-loader | ||
``` | ||
|
||
```sh | ||
# Install using npm | ||
npm install @feature-hub/browser-feature-app-module-loader | ||
``` | ||
|
||
--- | ||
|
||
Copyright (c) 2018 SinnerSchrader Deutschland GmbH. Released under the terms of | ||
the | ||
[MIT License](https://github.com/sinnerschrader/feature-hub/blob/master/LICENSE). |
30 changes: 30 additions & 0 deletions
30
@feature-hub/browser-feature-app-module-loader/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "@feature-hub/browser-feature-app-module-loader", | ||
"version": "0.0.0", | ||
"description": "TODO", | ||
"bugs": { | ||
"url": "https://github.com/sinnerschrader/feature-hub/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sinnerschrader/feature-hub.git" | ||
}, | ||
"license": "MIT", | ||
"author": "SinnerSchrader Deutschland GmbH", | ||
"files": [ | ||
"lib", | ||
"!__tests__" | ||
], | ||
"main": "lib/cjs/index.js", | ||
"module": "lib/es/index.js", | ||
"typings": "lib/cjs/index.d.ts", | ||
"dependencies": { | ||
"systemjs": "^0.21.5" | ||
}, | ||
"devDependencies": { | ||
"@types/systemjs": "^0.20.6" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
@feature-hub/browser-feature-app-module-loader/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// tslint:disable-next-line:no-import-side-effect | ||
import 'systemjs/dist/system-production'; | ||
|
||
export interface Externals { | ||
[moduleName: string]: unknown; | ||
} | ||
|
||
export function defineExternals(externals: Externals): void { | ||
for (const moduleName of Object.keys(externals)) { | ||
const external = externals[moduleName]; | ||
|
||
SystemJS.amdDefine(moduleName, () => external); | ||
} | ||
} | ||
|
||
export async function loadFeatureAppModule( | ||
featureAppUrl: string | ||
): Promise<unknown> { | ||
return SystemJS.import(featureAppUrl); | ||
} |
8 changes: 8 additions & 0 deletions
8
@feature-hub/browser-feature-app-module-loader/tsconfig.cjs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "lib/cjs", | ||
"paths": {} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
@feature-hub/browser-feature-app-module-loader/tsconfig.es.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.cjs.json", | ||
"compilerOptions": { | ||
"module": "esnext", | ||
"outDir": "lib/es" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"include": ["src/**/*.ts", "src/**/*.tsx"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tslint.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# @feature-hub/feature-app-manager | ||
|
||
[](https://yarnpkg.com/en/package/@feature-hub/feature-app-manager) | ||
|
||
> TODO | ||
**This package is part of the | ||
[Feature Hub](https://github.com/sinnerschrader/feature-hub) monorepo.** | ||
|
||
## Getting started | ||
|
||
Install `@feature-hub/feature-app-manager` as a dependency: | ||
|
||
```sh | ||
# Install using Yarn | ||
yarn add @feature-hub/feature-app-manager | ||
``` | ||
|
||
```sh | ||
# Install using npm | ||
npm install @feature-hub/feature-app-manager | ||
``` | ||
|
||
--- | ||
|
||
Copyright (c) 2018 SinnerSchrader Deutschland GmbH. Released under the terms of | ||
the | ||
[MIT License](https://github.com/sinnerschrader/feature-hub/blob/master/LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@feature-hub/feature-app-manager", | ||
"version": "0.0.0", | ||
"description": "TODO", | ||
"bugs": { | ||
"url": "https://github.com/sinnerschrader/feature-hub/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sinnerschrader/feature-hub.git" | ||
}, | ||
"license": "MIT", | ||
"author": "SinnerSchrader Deutschland GmbH", | ||
"files": [ | ||
"lib", | ||
"!__tests__" | ||
], | ||
"main": "lib/cjs/index.js", | ||
"module": "lib/es/index.js", | ||
"typings": "lib/cjs/index.d.ts", | ||
"devDependencies": { | ||
"@feature-hub/feature-service-registry": "^0.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Oops, something went wrong.