logic-auto 1.0.0
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/.gitconfig +2 -0
- package/.vscode/launch.json +155 -0
- package/README.md +13 -0
- package/index.js +9 -0
- package/jest.config.js +15 -0
- package/package.json +20 -0
- package/src/auto-task.js +357 -0
- package/src/automation.js +762 -0
- package/src/depend-resolver.js +471 -0
- package/src/original-path.js +337 -0
- package/src/source-batch.js +1027 -0
- package/test/base/mod1/__SaveFile.json +8 -0
- package/test/base/mod1/auto.js +12 -0
- package/test/base/mod1/dist/100.webp +0 -0
- package/test/base/mod1/dist/102-3.webp +0 -0
- package/test/base/mod1/dist/board.css +6 -0
- package/test/base/mod1/dist/board_m.css +6 -0
- package/test/base/mod1/dist/m3.html +16 -0
- package/test/base/mod1/out/bar.css +7 -0
- package/test/base/mod1/package.json +11 -0
- package/test/base/mod1/src/100.webp +0 -0
- package/test/base/mod1/src/102-3.webp +0 -0
- package/test/base/mod1/src/board.css +6 -0
- package/test/base/mod1/src/board_m.css +6 -0
- package/test/base/mod1/src/m3.html +16 -0
- package/test/base.test.js +19 -0
- package/test/index.test.js +33 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[
|
|
2
|
+
"/Users/kimneo/PJ-Git/white-base#automation/test/base/mod1/dist/.DS_Store",
|
|
3
|
+
"/Users/kimneo/PJ-Git/white-base#automation/test/base/mod1/dist/100.webp",
|
|
4
|
+
"/Users/kimneo/PJ-Git/white-base#automation/test/base/mod1/dist/102-3.webp",
|
|
5
|
+
"/Users/kimneo/PJ-Git/white-base#automation/test/base/mod1/dist/board.css",
|
|
6
|
+
"/Users/kimneo/PJ-Git/white-base#automation/test/base/mod1/dist/board_m.css",
|
|
7
|
+
"/Users/kimneo/PJ-Git/white-base#automation/test/base/mod1/dist/m3.html"
|
|
8
|
+
]
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<link rel="stylesheet" type="text/css" href="board.css">
|
|
4
|
+
</head>
|
|
5
|
+
<body>
|
|
6
|
+
<div>m3.html (O) </div>
|
|
7
|
+
<div>m3.html (O) </div>
|
|
8
|
+
<div>배경 </div>
|
|
9
|
+
<p> p 태그 mod1 입니다.. </p>
|
|
10
|
+
<h1> H1 태그 입니다.</h1>
|
|
11
|
+
<h2> h2 태그 /dep/M1-1/m1.html (X) </h2>
|
|
12
|
+
<h2> h2 태그 ../dep/M2-2/m1.html (X) </h2>
|
|
13
|
+
<h2> h2 태그 /dep/M2-1/m2.html (O) 절대</h2>
|
|
14
|
+
<h2> h2 태그 ../dep/M2-2/m1.html (X) </h2>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<link rel="stylesheet" type="text/css" href="board.css">
|
|
4
|
+
</head>
|
|
5
|
+
<body>
|
|
6
|
+
<div>m3.html (O) </div>
|
|
7
|
+
<div>/src/m3.html (O) </div>
|
|
8
|
+
<div>배경 </div>
|
|
9
|
+
<p> p 태그 mod1 입니다.. </p>
|
|
10
|
+
<h1> H1 태그 입니다.</h1>
|
|
11
|
+
<h2> h2 태그 /dep/M1-1/m1.html (X) </h2>
|
|
12
|
+
<h2> h2 태그 ../dep/M2-2/m1.html (X) </h2>
|
|
13
|
+
<h2> h2 태그 /dep/M2-1/m2.html (O) 절대</h2>
|
|
14
|
+
<h2> h2 태그 ../dep/M2-2/m1.html (X) </h2>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const AutoTask = require("../src/auto-task").AutoTask;
|
|
4
|
+
const dirname = path.join(__dirname, "/base/mod1");
|
|
5
|
+
let autoTask = null;
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
describe("task :: clear", () => {
|
|
9
|
+
it("[ new >> do_clear(1) ]", () => {
|
|
10
|
+
autoTask = AutoTask.create(dirname);
|
|
11
|
+
autoTask.isLog = false;
|
|
12
|
+
autoTask.do_dist();
|
|
13
|
+
});
|
|
14
|
+
// it("- 파일 유무 : src/one.html(X)", () => {
|
|
15
|
+
// const fullPath = dirname + "/src/one.html";
|
|
16
|
+
// expect(fs.existsSync(fullPath)).toBeFalsy();
|
|
17
|
+
|
|
18
|
+
// });
|
|
19
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ES6 + CJS
|
|
3
|
+
*/
|
|
4
|
+
//==============================================================
|
|
5
|
+
// gobal defined
|
|
6
|
+
// const index = require('../');
|
|
7
|
+
|
|
8
|
+
//==============================================================
|
|
9
|
+
// test
|
|
10
|
+
describe('index 타입 검사', () => {
|
|
11
|
+
beforeAll(() => {
|
|
12
|
+
});
|
|
13
|
+
it('- named export check ', () => {
|
|
14
|
+
// expect(typeof index.BaseCollection).toBe('function');
|
|
15
|
+
// expect(typeof index.ArrayCollection).toBe('function');
|
|
16
|
+
// expect(typeof index.PropertyCollection).toBe('function');
|
|
17
|
+
// expect(typeof index.MetaObject).toBe('function');
|
|
18
|
+
// expect(typeof index.MetaElement).toBe('function');
|
|
19
|
+
// expect(typeof index.Observer).toBe('function');
|
|
20
|
+
// expect(typeof index.Entity).toBe('function');
|
|
21
|
+
// expect(typeof index.EntityView).toBe('function');
|
|
22
|
+
// expect(typeof index.EntityViewCollection).toBe('function');
|
|
23
|
+
// expect(typeof index.EntityTable).toBe('function');
|
|
24
|
+
// expect(typeof index.Item).toBe('function');
|
|
25
|
+
// expect(typeof index.ItemCollection).toBe('function');
|
|
26
|
+
// expect(typeof index.ItemViewCollection).toBe('function');
|
|
27
|
+
// expect(typeof index.ItemTableCollection).toBe('function');
|
|
28
|
+
// expect(typeof index.CustomError).toBe('function');
|
|
29
|
+
// expect(typeof index.Util.inherits).toBe('function');
|
|
30
|
+
// expect(typeof index.Util.getArrayLevel).toBe('function');
|
|
31
|
+
// expect(typeof index.Util.createGUID).toBe('function');
|
|
32
|
+
});
|
|
33
|
+
});
|