generator-reshow 0.17.33 → 0.17.36
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/generators/app/__tests__/TestApp.js +2 -2
- package/generators/app/index.js +11 -6
- package/generators/app/templates/PageTest.js +12 -0
- package/generators/app/templates/babel.config.js +1 -0
- package/generators/app/templates/index.tpl +27 -0
- package/generators/app/templates/src/client.js +1 -1
- package/generators/app/templates/{ui → src/ui}/molecules/Menu.jsx +0 -0
- package/generators/app/templates/{ui → src/ui}/pages/Page1.jsx +1 -1
- package/generators/app/templates/{ui → src/ui}/pages/Page2.jsx +1 -1
- package/generators/app/templates/{ui → src/ui}/pages/index.jsx +0 -0
- package/generators/app/templates/{ui → src/ui}/templates/Doc.jsx +0 -0
- package/generators/app/templates/webpack.config.mjs +3 -0
- package/generators/compile-sh/templates/compile.sh +2 -5
- package/generators/docker/README.md +16 -2
- package/generators/npm/index.js +14 -34
- package/generators/npm/templates/LIBTest.js +13 -0
- package/generators/npm/templates/UITest.js +11 -0
- package/generators/npm/templates/babel.config.js +1 -0
- package/generators/npm/templates/lib-src/index.js +2 -0
- package/generators/npm/templates/lib-src/lib.js +3 -0
- package/generators/npm/templates/ui-src/index.js +2 -0
- package/generators/npm/templates/ui-src/ui/pages/Index.jsx +2 -0
- package/generators/package-json/README.md +9 -0
- package/generators/package-json/__tests__/Test.js +44 -0
- package/generators/package-json/index.js +97 -0
- package/generators/package-json/templates/.yo +1 -0
- package/generators/{npm → package-json}/templates/package.json +4 -3
- package/package.json +2 -2
- package/generators/app/templates/index.html +0 -39
- package/generators/app/templates/package.json +0 -29
- package/generators/app/templates/webpack.config.js +0 -3
|
@@ -30,11 +30,11 @@ describe("generator-reshow:app", () => {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
it("should have folder", () => {
|
|
33
|
-
assert.file(["src", "ui"]);
|
|
33
|
+
assert.file(["src", "src/ui"]);
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
it("should have file", () => {
|
|
37
|
-
assert.file(["compile.sh", "index.
|
|
37
|
+
assert.file(["compile.sh", "index.tpl"]);
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
it("should have content", () => {
|
package/generators/app/index.js
CHANGED
|
@@ -36,6 +36,11 @@ module.exports = class extends YoGenerator {
|
|
|
36
36
|
this.composeWith(require.resolve("../compile-sh"), {
|
|
37
37
|
webpackEnabled: true,
|
|
38
38
|
});
|
|
39
|
+
this.composeWith(require.resolve("../package-json"), {
|
|
40
|
+
...answers,
|
|
41
|
+
isApp: true,
|
|
42
|
+
isUseWebpack: true,
|
|
43
|
+
});
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
writing() {
|
|
@@ -46,23 +51,23 @@ module.exports = class extends YoGenerator {
|
|
|
46
51
|
chMainName(this.mainName);
|
|
47
52
|
|
|
48
53
|
// handle copy file
|
|
49
|
-
mkdir("ui/organisms");
|
|
50
|
-
cp("ui");
|
|
51
54
|
cp("src");
|
|
52
55
|
cp("data");
|
|
53
56
|
cp(".gitignore");
|
|
54
57
|
cp("screen.sh");
|
|
55
|
-
cp("index.
|
|
56
|
-
cp("package.json");
|
|
58
|
+
cp("index.tpl");
|
|
57
59
|
cp("README.md");
|
|
58
|
-
cp("webpack.config.
|
|
60
|
+
cp("webpack.config.mjs");
|
|
61
|
+
cp("babel.config.js");
|
|
62
|
+
cp("PageTest.js", "src/ui/pages/__tests__/PageTest.js");
|
|
63
|
+
mkdir("src/ui/organisms");
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
async end() {
|
|
62
67
|
if (!this.options.skipInstall) {
|
|
63
68
|
const { say, onExit } = YoHelper(this);
|
|
64
69
|
await this.spawnCommand("./compile.sh", ["s", "open"]);
|
|
65
|
-
|
|
70
|
+
onExit(() => say("Check the web browser, it should autoload now."));
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { render } from "reshow-unit";
|
|
3
|
+
|
|
4
|
+
import Page1 from "../Page1";
|
|
5
|
+
|
|
6
|
+
describe("Page Test", () => {
|
|
7
|
+
it("basic test", () => {
|
|
8
|
+
const wrap = render(<Page1 />);
|
|
9
|
+
const html = wrap.html();
|
|
10
|
+
expect(html).to.have.string("This is page");
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("react-atomic-atom/babel.config");
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<!--
|
|
3
|
+
_____ ______ _____ _ _ ______ __
|
|
4
|
+
| __ \| ____|/ ____| | | |/ __ \ \ / /
|
|
5
|
+
| |__) | |__ | (___ | |__| | | | \ \ /\ / /
|
|
6
|
+
| _ /| __| \___ \| __ | | | |\ \/ \/ /
|
|
7
|
+
| | \ \| |____ ____) | | | | |__| | \ /\ /
|
|
8
|
+
|_| \_\______|_____/|_| |_|\____/ \/ \/
|
|
9
|
+
|
|
10
|
+
Interested in our source? Help us out by improving it.
|
|
11
|
+
https://github.com/react-atomic/reshow/issues
|
|
12
|
+
-->
|
|
13
|
+
<html lang="en">
|
|
14
|
+
<head>
|
|
15
|
+
<meta charset="utf-8">
|
|
16
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge; IE=11; IE=10; IE=9; IE=8;">
|
|
17
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,shrink-to-fit=no">
|
|
18
|
+
<!--[if IE]>
|
|
19
|
+
<script defer src="https://cdn.jsdelivr.net/npm/babel-polyfill@6.26.0/dist/polyfill.min.js"></script>
|
|
20
|
+
<![endif]-->
|
|
21
|
+
<link rel="icon" href="data:,">
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/combine/npm/purecss@2.1.0/build/base-min.css,npm/purecss@2.1.0/build/grids-min.css,npm/purecss@2.1.0/build/grids-responsive-min.css">
|
|
25
|
+
<div id="app"></div>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -88,16 +88,13 @@ develop() {
|
|
|
88
88
|
|
|
89
89
|
watch() {
|
|
90
90
|
echo "Watch Mode"
|
|
91
|
-
npm run build:es
|
|
92
|
-
npm run build:es:src -- --watch &
|
|
91
|
+
npm run build:es -- --watch &
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
hot() {
|
|
96
95
|
stop
|
|
97
|
-
[ -e "$SWJS" ] && rm $SWJS
|
|
98
96
|
echo "Hot Mode"
|
|
99
|
-
npm run build:es
|
|
100
|
-
npm run build:es:src -- --watch &
|
|
97
|
+
npm run build:es -- --watch &
|
|
101
98
|
[ ! -z "$webpack" ] && sleep 10 && HOT_UPDATE=1 CONFIG=$conf $webpack serve &
|
|
102
99
|
}
|
|
103
100
|
|
|
@@ -2,9 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
> Docker generator
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Setup circleci
|
|
6
|
+
|
|
7
|
+
### setup multi version
|
|
8
|
+
* https://github.com/HillLiu/docker-twemproxy-alpine/blob/main/.circleci/config.yml#L62
|
|
9
|
+
|
|
10
|
+
### Environment Variables
|
|
6
11
|
* DOCKER_LOGIN
|
|
7
12
|
* DOCKER_PASSWORD
|
|
8
13
|
|
|
9
14
|
### circleci sample url
|
|
10
|
-
|
|
15
|
+
|
|
16
|
+
* Syntax
|
|
17
|
+
```
|
|
18
|
+
* /settings/project/github/[git-org]/[git-repository-name]/environment-variables
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
* Sample
|
|
22
|
+
* git-org: HillLiu
|
|
23
|
+
* git-repository-name: docker-twemproxy-alpine
|
|
24
|
+
* url: https://app.circleci.com/settings/project/github/HillLiu/docker-twemproxy-alpine/environment-variables
|
package/generators/npm/index.js
CHANGED
|
@@ -48,53 +48,33 @@ module.exports = class extends YoGenerator {
|
|
|
48
48
|
if (payload.isUseBabel) {
|
|
49
49
|
this.composeWith(require.resolve("../compile-sh"), payload);
|
|
50
50
|
}
|
|
51
|
+
this.composeWith(require.resolve("../package-json"), payload);
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
writing() {
|
|
55
56
|
this.env.options.nodePackageManager = "yarn";
|
|
56
57
|
const { cp, chMainName, syncJSON } = YoHelper(this);
|
|
58
|
+
const { isUseBabel, isUseBabelUI } = this.payload || {};
|
|
57
59
|
|
|
58
60
|
// handle change to new folder
|
|
59
61
|
chMainName(this.mainName);
|
|
60
62
|
|
|
61
63
|
// handle copy file
|
|
62
|
-
cp("src", null, this.payload);
|
|
63
64
|
cp("README.md", null, this.payload);
|
|
64
65
|
cp(".gitignore", null, this.payload);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
data.homepage = this.payload.repositoryHomepage;
|
|
74
|
-
data.dependencies = {
|
|
75
|
-
...data.dependencies,
|
|
76
|
-
...this.payload.npmDependencies,
|
|
77
|
-
};
|
|
78
|
-
if (!this.payload.isUseBabel) {
|
|
79
|
-
delete data.devDependencies["@babel/cli"];
|
|
80
|
-
delete data.exports;
|
|
81
|
-
delete data.module;
|
|
82
|
-
delete data.scripts.clean;
|
|
83
|
-
delete data.scripts.build;
|
|
84
|
-
delete data.scripts["build:cjs"];
|
|
85
|
-
delete data.scripts["build:es"];
|
|
86
|
-
data.main = "./src/index.js";
|
|
87
|
-
data.bin[this.mainName] = "./src/index.js";
|
|
88
|
-
data.scripts.test = "npm run mocha";
|
|
89
|
-
data.scripts.mocha = "npm run mochaFor -- 'src/**/__tests__/*.js'";
|
|
90
|
-
data.files = data.files.filter((f) => f !== "build");
|
|
91
|
-
data.files.push("src");
|
|
66
|
+
if (isUseBabel) {
|
|
67
|
+
cp("babel.config.js");
|
|
68
|
+
if (isUseBabelUI) {
|
|
69
|
+
cp("ui-src", "src");
|
|
70
|
+
cp("UITest.js", "src/ui/pages/__tests__/IndexTest.js", this.payload);
|
|
71
|
+
} else {
|
|
72
|
+
cp("lib-src", "src");
|
|
73
|
+
cp("LIBTest.js", "src/__tests__/LibTest.js", this.payload);
|
|
92
74
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return data;
|
|
98
|
-
});
|
|
75
|
+
} else {
|
|
76
|
+
cp("src", null, this.payload);
|
|
77
|
+
cp("Test.js", "src/__tests__/Test.js", this.payload);
|
|
78
|
+
}
|
|
99
79
|
}
|
|
100
80
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { getSinon } from "reshow-unit-dom";
|
|
3
|
+
|
|
4
|
+
import lib from "../lib";
|
|
5
|
+
|
|
6
|
+
describe("Lib Test", () => {
|
|
7
|
+
it("basic test", () => {
|
|
8
|
+
const spy = getSinon().spy(lib);
|
|
9
|
+
const actual = spy("foo");
|
|
10
|
+
expect(actual).to.equal("foo");
|
|
11
|
+
expect(spy.called).to.be.true;
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { render } from "reshow-unit";
|
|
3
|
+
|
|
4
|
+
import Index from "../Index";
|
|
5
|
+
|
|
6
|
+
describe("UI Test", () => {
|
|
7
|
+
it("basic test", () => {
|
|
8
|
+
const wrap = render(<Index />);
|
|
9
|
+
expect(wrap.html()).to.have.string("Hello, there.");
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("react-atomic-atom/babel.config");
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://yeoman.io/authoring/testing.html
|
|
3
|
+
* https://gilsondev.gitbooks.io/yeoman-authoring/content/authoring/unit_testing.html
|
|
4
|
+
*
|
|
5
|
+
* https://github.com/yeoman/yeoman-assert/blob/main/index.js
|
|
6
|
+
* https://github.com/yeoman/yeoman-test/blob/main/lib/run-context.js
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const { YoTest, assert } = require("yo-unit");
|
|
10
|
+
|
|
11
|
+
describe("!! package-json !!", () => {
|
|
12
|
+
let runResult;
|
|
13
|
+
|
|
14
|
+
before(async () => {
|
|
15
|
+
runResult = await YoTest({
|
|
16
|
+
source: __dirname + "/../.",
|
|
17
|
+
params: {
|
|
18
|
+
isReady: true,
|
|
19
|
+
appNamee: "foo",
|
|
20
|
+
description: "foo-desc",
|
|
21
|
+
keyword: "foo-keyword",
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
after(() => {
|
|
27
|
+
if (runResult) {
|
|
28
|
+
runResult.restore();
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it("should have folder", () => {
|
|
33
|
+
// assert.file(["src", "ui"]);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it("should have file", () => {
|
|
37
|
+
// assert.file(["compile.sh", "index.html"]);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it("should have content", () => {
|
|
41
|
+
// assert.fileContent('composer.json', 'foo-desc');
|
|
42
|
+
// assert.fileContent('.circleci/config.yml', 'foo');
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const { YoGenerator, YoHelper, commonPrompt } = require("yo-reshow");
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* package-json Generator
|
|
5
|
+
*/
|
|
6
|
+
module.exports = class extends YoGenerator {
|
|
7
|
+
writing() {
|
|
8
|
+
const { cp, getDotYo, handleKeywords, syncJSON } = YoHelper(this);
|
|
9
|
+
const payload = {
|
|
10
|
+
mainName: "",
|
|
11
|
+
description: "",
|
|
12
|
+
babelRootMode: "",
|
|
13
|
+
...this.payload,
|
|
14
|
+
...this.options,
|
|
15
|
+
...getDotYo(this.options),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
syncJSON(
|
|
19
|
+
"package.json",
|
|
20
|
+
null,
|
|
21
|
+
payload,
|
|
22
|
+
(
|
|
23
|
+
data,
|
|
24
|
+
{
|
|
25
|
+
isApp,
|
|
26
|
+
isUseWebpack,
|
|
27
|
+
isUseBabel,
|
|
28
|
+
isUseBabelUI,
|
|
29
|
+
keyword,
|
|
30
|
+
repository,
|
|
31
|
+
repositoryHomepage,
|
|
32
|
+
npmDependencies,
|
|
33
|
+
}
|
|
34
|
+
) => {
|
|
35
|
+
handleKeywords(keyword, (arr) => (data.keywords = arr));
|
|
36
|
+
data.repository = repository;
|
|
37
|
+
data.homepage = repositoryHomepage;
|
|
38
|
+
if (isApp) {
|
|
39
|
+
data.private = true;
|
|
40
|
+
data.dependencies = {
|
|
41
|
+
pmvc_react_admin: "*",
|
|
42
|
+
react: "^18.x",
|
|
43
|
+
"react-dom": "^18.x",
|
|
44
|
+
"reshow-app": "*",
|
|
45
|
+
...npmDependencies,
|
|
46
|
+
};
|
|
47
|
+
delete data.devDependencies;
|
|
48
|
+
delete data.version;
|
|
49
|
+
data.scripts["prepublishOnly"] = "exit 1;";
|
|
50
|
+
data.scripts.build = "npm run clean && npm run build:es";
|
|
51
|
+
} else {
|
|
52
|
+
delete data.private;
|
|
53
|
+
data.dependencies = {
|
|
54
|
+
...data.dependencies,
|
|
55
|
+
...npmDependencies,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (!isUseBabel) {
|
|
59
|
+
if (data.devDependencies) {
|
|
60
|
+
delete data.devDependencies["@babel/cli"];
|
|
61
|
+
}
|
|
62
|
+
delete data.exports;
|
|
63
|
+
delete data.module;
|
|
64
|
+
delete data.scripts["build:cjs"];
|
|
65
|
+
data.main = "./src/index.js";
|
|
66
|
+
data.bin[this.mainName] = "./src/index.js";
|
|
67
|
+
data.files = data.files.filter((f) => f !== "build");
|
|
68
|
+
data.files.push("src");
|
|
69
|
+
} else {
|
|
70
|
+
data.devDependencies["react-atomic-atom"] = "*";
|
|
71
|
+
}
|
|
72
|
+
if (isUseBabelUI) {
|
|
73
|
+
delete data.bin;
|
|
74
|
+
data.devDependencies["react"] = "^18.x";
|
|
75
|
+
data.devDependencies["react-dom"] = "^18.x";
|
|
76
|
+
data.devDependencies["reshow-unit"] = "*";
|
|
77
|
+
delete data.devDependencies["reshow-unit-dom"];
|
|
78
|
+
}
|
|
79
|
+
if (!isUseWebpack) {
|
|
80
|
+
delete data.scripts["webpack"];
|
|
81
|
+
delete data.scripts["clean:webpack"];
|
|
82
|
+
} else {
|
|
83
|
+
cp(".yo");
|
|
84
|
+
}
|
|
85
|
+
if (!isApp && !isUseBabel) {
|
|
86
|
+
delete data.scripts["build:es"];
|
|
87
|
+
delete data.scripts.build;
|
|
88
|
+
delete data.scripts.clean;
|
|
89
|
+
data.scripts.test = "npm run mocha";
|
|
90
|
+
data.scripts.mocha =
|
|
91
|
+
"npm run mochaFor -- 'src/**/__tests__/*.{js,mjs}'";
|
|
92
|
+
}
|
|
93
|
+
return data;
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
webpackEnabled=on
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"private": true,
|
|
2
3
|
"version": "0.0.0",
|
|
3
4
|
"name": "<%= mainName %>",
|
|
4
5
|
"repository": {},
|
|
@@ -31,11 +32,11 @@
|
|
|
31
32
|
"format": "prettier-eslint --write 'src/**/*.js' 'ui/**/*.js*'",
|
|
32
33
|
"clean:webpack": "find ./assets -name '*.*' | xargs rm -rf && rm -rf workbox-*.js",
|
|
33
34
|
"clean": "find ./build -name '*.*' | xargs rm -rf",
|
|
34
|
-
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src<%= babelRootMode %>",
|
|
35
|
-
"build:es": "BABEL_ENV=es babel src -d build/es/src<%= babelRootMode %>",
|
|
35
|
+
"build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --ignore /**/__tests__<%= babelRootMode %>",
|
|
36
|
+
"build:es": "BABEL_ENV=es babel src -d build/es/src --out-file-extension .mjs<%= babelRootMode %>",
|
|
36
37
|
"build": "npm run clean && npm run build:cjs && npm run build:es",
|
|
37
38
|
"mochaFor": "mocha -r global-jsdom/register",
|
|
38
|
-
"mocha": "npm run mochaFor -- 'build/cjs/**/__tests__/*.js'",
|
|
39
|
+
"mocha": "npm run mochaFor -- 'build/{cjs,es}/**/__tests__/*.{js,mjs}'",
|
|
39
40
|
"test": "npm run build && npm run mocha",
|
|
40
41
|
"prepublishOnly": "npm run test"
|
|
41
42
|
},
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.17.
|
|
2
|
+
"version": "0.17.36",
|
|
3
3
|
"name": "generator-reshow",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"yo-unit": "*"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"mochaFor": "mocha",
|
|
23
|
+
"mochaFor": "mocha --timeout 2500",
|
|
24
24
|
"mocha": "npm run mochaFor -- 'generators/**/__tests__/*.js'",
|
|
25
25
|
"test": "npm run mocha",
|
|
26
26
|
"prepublishOnly": "npm run test"
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge; IE=11; IE=10; IE=9; IE=8;">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<script defer src="//cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"></script>
|
|
8
|
-
<script defer src="//cdn.jsdelivr.net/npm/d3@6.5.0/dist/d3.js"></script>
|
|
9
|
-
<script defer src="assets/main.bundle.js"></script>
|
|
10
|
-
<link rel="icon" href="data:,">
|
|
11
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/purecss@2.0.6/build/base-min.css">
|
|
12
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/purecss@2.0.6/build/grids-min.css">
|
|
13
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/purecss@2.0.6/build/grids-responsive-min.css">
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div id="app"></div>
|
|
17
|
-
</body>
|
|
18
|
-
<script src="assets/vendor.bundle.js"></script>
|
|
19
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-segment@latest/segment.min.css">
|
|
20
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-progress@latest/progress.min.css">
|
|
21
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-rail@latest/rail.min.css">
|
|
22
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-header@latest/header.min.css">
|
|
23
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-form@latest/form.min.css">
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-menu@latest/menu.min.css">
|
|
25
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-dropdown@latest/dropdown.css">
|
|
26
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-input@latest/input.min.css">
|
|
27
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-button@latest/button.min.css">
|
|
28
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-search@latest/search.min.css">
|
|
29
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-label@latest/label.min.css">
|
|
30
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-card@latest/card.min.css">
|
|
31
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-popup@latest/popup.min.css">
|
|
32
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-modal@latest/modal.min.css">
|
|
33
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-dimmer@latest/dimmer.min.css">
|
|
34
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-message@latest/message.min.css">
|
|
35
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-table@latest/table.min.css">
|
|
36
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-tab@latest/tab.min.css">
|
|
37
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/semantic-ui-checkbox@latest/checkbox.min.css">
|
|
38
|
-
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/prismjs/themes/prism.css">
|
|
39
|
-
</html>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"private": true,
|
|
3
|
-
"repository": {
|
|
4
|
-
"type": "git",
|
|
5
|
-
"url": "https://github.com/react-atomic/"
|
|
6
|
-
},
|
|
7
|
-
"description": "Reshow App",
|
|
8
|
-
"version": "0.0.0",
|
|
9
|
-
"keywords": ["app", "reshow-app"],
|
|
10
|
-
"author": "",
|
|
11
|
-
"license": "ISC",
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"pmvc_react_admin": "*",
|
|
14
|
-
"react": "^18.x",
|
|
15
|
-
"react-dom": "^18.x",
|
|
16
|
-
"reshow-app": "*",
|
|
17
|
-
"ricon": "*"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"webpack": "webpack",
|
|
21
|
-
"start": "ws",
|
|
22
|
-
"format": "prettier-eslint --write 'src/**/*.js' 'ui/**/*.jsx'",
|
|
23
|
-
"clean": "find ./build ./assets -name '*.*' | xargs rm -rf",
|
|
24
|
-
"build:ui": "BABEL_ENV=es babel ui -d build/es/ui --ignore /**/__tests__",
|
|
25
|
-
"build:src": "BABEL_ENV=es babel src -d build/es/src --ignore /**/__tests__",
|
|
26
|
-
"build": "npm run clean && npm run build:ui && npm run build:src",
|
|
27
|
-
"prepublishOnly": "exit 1;"
|
|
28
|
-
}
|
|
29
|
-
}
|