Skip to content

Commit

Permalink
micro-frontends scope
Browse files Browse the repository at this point in the history
  • Loading branch information
one-more committed Jun 25, 2019
1 parent 91e799e commit 176b0cc
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.DS_Store
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "x-componensts",
"name": "micro-frontends",
"private": false,
"devDependencies": {
"lerna": "^3.15.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "@micro-frontends/core",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
9 changes: 9 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib"
},
"include": [
"./src"
]
}
2 changes: 1 addition & 1 deletion packages/framework/content.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, retrieve, store} from "@x-components/core";
import {Component, retrieve, store} from "@micro-frontends/core";
import {Subscription} from "./models";
import {addHistoryChangeListener} from "./history";

Expand Down
2 changes: 1 addition & 1 deletion packages/framework/link.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import {Component} from "@x-components/core";
import {Component} from "@micro-frontends/core";
import styled from "styled-components";
import {SyntheticEvent} from "react";
import {addHistoryChangeListener, pushState} from "./history";
Expand Down
9 changes: 5 additions & 4 deletions packages/framework/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@x-components/framework",
"name": "@micro-frontends/framework",
"version": "1.0.1",
"description": "",
"main": "index.ts",
Expand All @@ -10,12 +10,13 @@
"author": "",
"license": "MIT",
"peerDependencies": {
"@x-components/core": "github:one-more/@x-components/core",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"vue": "^2.6.10"
"vue": "^2.6.10",
"@micro-frontends/core": "*"
},
"dependencies": {
"styled-components": "^4.3.1"
}
},
"gitHead": "91e799e2e76fa305e0050310d3076b657746d1bc"
}
9 changes: 9 additions & 0 deletions packages/framework/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./lib"
},
"include": [
"./src"
]
}
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"jsx": "react",
"types": ["react"],
"baseUrl": "./",
"paths": {
"~/*": ["src/*"]
}
},
"include": [
"./src/**/*"
]
}

0 comments on commit 176b0cc

Please sign in to comment.