Skip to content

Commit

Permalink
feat(all): add initial packages (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert authored Nov 21, 2018
1 parent 658fb5f commit 019680e
Show file tree
Hide file tree
Showing 67 changed files with 5,466 additions and 70 deletions.
7 changes: 5 additions & 2 deletions .gitignore
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
7 changes: 5 additions & 2 deletions .prettierignore
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
15 changes: 5 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"editor.formatOnSave": true,
"files.exclude": {
"**/lerna-debug.log": true,
"**/lib/**": true,
"**/node_modules/**": true,
"**/npm-debug.log": true,
"**/package-lock.json": true,
"**/yarn-error.log": true
},
"search.exclude": {
"**/.cache": true,
"**/coverage": true,
"**/docs": true,
"**/lerna-debug.log": true,
"**/lib/**": true,
"**/node_modules/**": true,
"**/lib": true,
"**/node_modules": true,
"**/npm-debug.log": true,
"**/package-lock.json": true,
"**/yarn-error.log": true,
Expand Down
Empty file removed @feature-hub/.gitkeep
Empty file.
28 changes: 28 additions & 0 deletions @feature-hub/browser-feature-app-module-loader/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# @feature-hub/browser-feature-app-module-loader

[![Package Version](https://img.shields.io/npm/v/@feature-hub/browser-feature-app-module-loader.svg)](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 @feature-hub/browser-feature-app-module-loader/package.json
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 @feature-hub/browser-feature-app-module-loader/src/index.ts
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);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib/cjs",
"paths": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.cjs.json",
"compilerOptions": {
"module": "esnext",
"outDir": "lib/es"
}
}
4 changes: 4 additions & 0 deletions @feature-hub/browser-feature-app-module-loader/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
3 changes: 3 additions & 0 deletions @feature-hub/browser-feature-app-module-loader/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tslint.json"
}
28 changes: 28 additions & 0 deletions @feature-hub/feature-app-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# @feature-hub/feature-app-manager

[![Package Version](https://img.shields.io/npm/v/@feature-hub/feature-app-manager.svg)](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).
27 changes: 27 additions & 0 deletions @feature-hub/feature-app-manager/package.json
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"
}
}
Loading

0 comments on commit 019680e

Please sign in to comment.