Skip to content

Commit

Permalink
Merge branch 'release/v0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
jualoppaz committed Jan 26, 2020
2 parents 0de1f72 + 0eb5ca4 commit 6cfb0de
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 8 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title></title>
<title>single-spa / Login example with NPM packages</title>
</head>

<body>
<script src="/root-application.js"></script>

<div id="auth-app"></div>
<div id="layout-app"></div>
<div id="angular-app"></div>
</body>
</html>
169 changes: 165 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "single-spa-login-example-with-npm-packages",
"version": "0.0.2",
"version": "0.0.3",
"description": "Single-spa application example which imports registered applications from NPM packages and manages authentication features as login.",
"main": "root-application.js",
"scripts": {
Expand Down Expand Up @@ -29,10 +29,12 @@
"copy-webpack-plugin": "5.1.1",
"html-webpack-plugin": "3.2.0",
"single-spa": "4.4.2",
"single-spa-angular-app": "0.0.3",
"single-spa-auth-app": "0.0.5",
"single-spa-layout-app": "0.0.3",
"single-spa-layout-app": "0.0.5",
"webpack": "4.41.5",
"webpack-cli": "3.3.10",
"webpack-dev-server": "3.10.1"
"webpack-dev-server": "3.10.1",
"zone.js": "0.10.2"
}
}
6 changes: 6 additions & 0 deletions root-application.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as singleSpa from "single-spa";
import 'zone.js';

singleSpa.registerApplication(
"login",
Expand All @@ -10,6 +11,11 @@ singleSpa.registerApplication(
() => import("single-spa-layout-app"),
showExcept(["/login"])
);
singleSpa.registerApplication(
"angular",
() => import("single-spa-angular-app"),
showWhenPrefix(["/angular"])
);

singleSpa.start();

Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ module.exports = {
},
module: {
rules: [
{
parser: {
system: false
}
},
{
test: /\.js?$/,
exclude: [path.resolve(__dirname, "node_modules")],
Expand Down

0 comments on commit 6cfb0de

Please sign in to comment.