minimal-piral 0.15.0-beta.4411
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.5cddef.js +45575 -0
- package/app/index.5cddef.js.map +1 -0
- package/app/index.d.ts +1465 -0
- package/app/index.html +12 -0
- package/app/index.js +16 -0
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +60 -0
package/app/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head>
|
|
2
|
+
<meta charset="UTF-8">
|
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
5
|
+
<title>Minimal Piral Sample</title>
|
|
6
|
+
<script defer src="/index.5cddef.js"></script></head>
|
|
7
|
+
<body>
|
|
8
|
+
<div id="app"></div>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
</body></html>
|
package/app/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (process.env.NODE_ENV === 'test') {
|
|
2
|
+
// behavior for the test environment, we'll try to make it work
|
|
3
|
+
|
|
4
|
+
if (typeof window !== 'undefined') {
|
|
5
|
+
require('.//index.5cddef.js');
|
|
6
|
+
const ctx = window['dbg:piral'];
|
|
7
|
+
const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
|
|
8
|
+
module.exports = dependencies['minimal-piral'] || {};
|
|
9
|
+
} else {
|
|
10
|
+
console.error('Your test environment does not define "window". Please make sure to provide a proper environment.');
|
|
11
|
+
module.exports = {};
|
|
12
|
+
}
|
|
13
|
+
} else {
|
|
14
|
+
// under "normal" circumstances disallow such an import
|
|
15
|
+
throw new Error("This file should not be included anywhere. Usually, this means you've imported the Piral instance directly.");
|
|
16
|
+
}
|
package/files.tar
ADDED
|
Binary file
|
package/files_once.tar
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "minimal-piral",
|
|
3
|
+
"description": "Example project illustrating the exposure of a minimal Pilet API.",
|
|
4
|
+
"version": "0.15.0-beta.4411",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://piral.io",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"portal",
|
|
9
|
+
"smapiot",
|
|
10
|
+
"sample",
|
|
11
|
+
"minimal",
|
|
12
|
+
"independent",
|
|
13
|
+
"example",
|
|
14
|
+
"microfrontend",
|
|
15
|
+
"modules",
|
|
16
|
+
"spa"
|
|
17
|
+
],
|
|
18
|
+
"pilets": {
|
|
19
|
+
"files": []
|
|
20
|
+
},
|
|
21
|
+
"piralCLI": {
|
|
22
|
+
"version": "0.14.29",
|
|
23
|
+
"generated": true
|
|
24
|
+
},
|
|
25
|
+
"main": "./app/index.js",
|
|
26
|
+
"typings": "./app/index.d.ts",
|
|
27
|
+
"app": "./app/index.html",
|
|
28
|
+
"peerDependencies": {},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/react": "^18.0.0",
|
|
31
|
+
"@types/react-dom": "^18.0.0",
|
|
32
|
+
"@types/react-router": "^5.1.8",
|
|
33
|
+
"@types/react-router-dom": "^5.1.6",
|
|
34
|
+
"piral-cli": "^0.14.29",
|
|
35
|
+
"piral-cli-webpack5": "^0.14.29",
|
|
36
|
+
"piral-core": "^0.14.29",
|
|
37
|
+
"react": "18.2.0",
|
|
38
|
+
"react-dom": "18.2.0",
|
|
39
|
+
"react-router": "5.3.3",
|
|
40
|
+
"react-router-dom": "5.3.3",
|
|
41
|
+
"history": "4.10.1",
|
|
42
|
+
"tslib": "2.3.1"
|
|
43
|
+
},
|
|
44
|
+
"sharedDependencies": [
|
|
45
|
+
"react",
|
|
46
|
+
"react-dom",
|
|
47
|
+
"react-router",
|
|
48
|
+
"react-router-dom",
|
|
49
|
+
"history",
|
|
50
|
+
"tslib"
|
|
51
|
+
],
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git+https://github.com/smapiot/piral.git"
|
|
55
|
+
},
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/smapiot/piral/issues"
|
|
58
|
+
},
|
|
59
|
+
"author": "smapiot"
|
|
60
|
+
}
|