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.
@@ -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
+ ]
@@ -0,0 +1,12 @@
1
+ /**
2
+ * ES6, CJS
3
+ */
4
+ const { Automation } = require('../../../src/automation');
5
+
6
+ class Auto extends Automation {
7
+ constructor() {
8
+ super(__dirname);
9
+ }
10
+ }
11
+
12
+ module.exports = Auto;
Binary file
Binary file
@@ -0,0 +1,6 @@
1
+ @import url("../dep/M2-1/style.css");
2
+ @import url("../out/bar.css");
3
+
4
+ h2 {
5
+ background-color: rgb(166, 64, 235);
6
+ }
@@ -0,0 +1,6 @@
1
+ @import url("../dep/M2-1/style.css");
2
+ @import url("../out/bar.css");
3
+
4
+ h2 {
5
+ background-color: rgb(166, 64, 235);
6
+ }
@@ -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>
@@ -0,0 +1,7 @@
1
+ /* bar */
2
+ @import url("../dep/M2-1/style.css");
3
+ p {
4
+ background-color: rgb(176, 230, 173);
5
+ }
6
+
7
+ /* bar.css */
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "mod1",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "auto.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
Binary file
Binary file
@@ -0,0 +1,6 @@
1
+ @import url("../dep/M2-1/style.css");
2
+ @import url("../out/bar.css");
3
+
4
+ h2 {
5
+ background-color: rgb(166, 64, 235);
6
+ }
@@ -0,0 +1,6 @@
1
+ @import url("../dep/M2-1/style.css");
2
+ @import url("../out/bar.css");
3
+
4
+ h2 {
5
+ background-color: rgb(166, 64, 235);
6
+ }
@@ -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
+ });