@goldstack/utils-template 0.3.13 → 0.3.17
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/dist/{generated → src/generated}/goldstackTemplateConfigurationSchema.d.ts +0 -0
- package/dist/src/generated/goldstackTemplateConfigurationSchema.d.ts.map +1 -0
- package/dist/{generated → src/generated}/goldstackTemplateConfigurationSchema.js +0 -0
- package/dist/src/generated/goldstackTemplateConfigurationSchema.js.map +1 -0
- package/dist/{schemas → src/schemas}/goldstackTemplateConfigurationSchema.json +0 -0
- package/dist/{utilsTemplate.d.ts → src/utilsTemplate.d.ts} +0 -0
- package/dist/src/utilsTemplate.d.ts.map +1 -0
- package/dist/{utilsTemplate.js → src/utilsTemplate.js} +3 -3
- package/dist/src/utilsTemplate.js.map +1 -0
- package/package.json +17 -14
- package/dist/generated/goldstackTemplateConfigurationSchema.d.ts.map +0 -1
- package/dist/generated/goldstackTemplateConfigurationSchema.js.map +0 -1
- package/dist/utilsTemplate.d.ts.map +0 -1
- package/dist/utilsTemplate.js.map +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goldstackTemplateConfigurationSchema.d.ts","sourceRoot":"","sources":["../../../src/generated/goldstackTemplateConfigurationSchema.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH;;GAEG;AACH,oBAAY,QAAQ,GAAG,MAAM,CAAC;AAC9B;;GAEG;AACH,oBAAY,eAAe,GAAG,MAAM,CAAC;AACrC;;GAEG;AACH,oBAAY,uBAAuB,GAAG,MAAM,CAAC;AAC7C;;GAEG;AACH,oBAAY,WAAW,GAAG,MAAM,CAAC;AACjC;;GAEG;AACH,oBAAY,aAAa,GAAG,MAAM,CAAC;AACnC;;GAEG;AACH,oBAAY,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,QAAQ,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,mBAAmB,EAAE,WAAW,CAAC;IACjC,qBAAqB,EAAE,aAAa,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goldstackTemplateConfigurationSchema.js","sourceRoot":"","sources":["../../../src/generated/goldstackTemplateConfigurationSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;;;GAIG"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilsTemplate.d.ts","sourceRoot":"","sources":["../../src/utilsTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAElG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAElG,eAAO,MAAM,4BAA4B,SACjC,MAAM,KACX,8BAKF,CAAC;AAEF,eAAO,MAAM,0BAA0B,qBAEpC,8BASF,CAAC"}
|
|
@@ -8,7 +8,7 @@ const utils_config_1 = require("@goldstack/utils-config");
|
|
|
8
8
|
const goldstackTemplateConfigurationSchema_json_1 = __importDefault(require("./schemas/goldstackTemplateConfigurationSchema.json"));
|
|
9
9
|
const utils_sh_1 = require("@goldstack/utils-sh");
|
|
10
10
|
const readTemplateConfigFromString = (data) => {
|
|
11
|
-
const config = utils_config_1.parseConfig(data, goldstackTemplateConfigurationSchema_json_1.default, {
|
|
11
|
+
const config = (0, utils_config_1.parseConfig)(data, goldstackTemplateConfigurationSchema_json_1.default, {
|
|
12
12
|
errorMessage: 'Cannot load template config.',
|
|
13
13
|
});
|
|
14
14
|
return config;
|
|
@@ -16,8 +16,8 @@ const readTemplateConfigFromString = (data) => {
|
|
|
16
16
|
exports.readTemplateConfigFromString = readTemplateConfigFromString;
|
|
17
17
|
const readTemplateConfigFromFile = (path = 'template.json') => {
|
|
18
18
|
try {
|
|
19
|
-
const data = utils_sh_1.read(path);
|
|
20
|
-
return exports.readTemplateConfigFromString(data);
|
|
19
|
+
const data = (0, utils_sh_1.read)(path);
|
|
20
|
+
return (0, exports.readTemplateConfigFromString)(data);
|
|
21
21
|
}
|
|
22
22
|
catch (e) {
|
|
23
23
|
throw new Error(`Cannot load template config from ${path}. Error: ${e.message}`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilsTemplate.js","sourceRoot":"","sources":["../../src/utilsTemplate.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAsD;AACtD,oIAA+E;AAC/E,kDAA2C;AAKpC,MAAM,4BAA4B,GAAG,CAC1C,IAAY,EACoB,EAAE;IAClC,MAAM,MAAM,GAAG,IAAA,0BAAW,EAAC,IAAI,EAAE,mDAAY,EAAE;QAC7C,YAAY,EAAE,8BAA8B;KAC7C,CAAmC,CAAC;IACrC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,4BAA4B,gCAOvC;AAEK,MAAM,0BAA0B,GAAG,CACxC,IAAI,GAAG,eAAe,EACU,EAAE;IAClC,IAAI;QACF,MAAM,IAAI,GAAG,IAAA,eAAI,EAAC,IAAI,CAAC,CAAC;QACxB,OAAO,IAAA,oCAA4B,EAAC,IAAI,CAAC,CAAC;KAC3C;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CACb,oCAAoC,IAAI,YAAY,CAAC,CAAC,OAAO,EAAE,CAChE,CAAC;KACH;AACH,CAAC,CAAC;AAXW,QAAA,0BAA0B,8BAWrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/utils-template",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "Utilities to work with Goldstack templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -13,38 +13,41 @@
|
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/goldstack/goldstack
|
|
16
|
+
"url": "https://github.com/goldstack/goldstack.git"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "Max Rohde",
|
|
20
20
|
"sideEffects": false,
|
|
21
|
-
"main": "dist/utilsTemplate.js",
|
|
21
|
+
"main": "dist/src/utilsTemplate.js",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "yarn clean && yarn compile",
|
|
24
|
-
"build:watch": "yarn clean && yarn compile
|
|
24
|
+
"build:watch": "yarn clean && yarn compile-watch",
|
|
25
25
|
"clean": "rm -rf ./dist",
|
|
26
26
|
"compile": "tsc -p tsconfig.json",
|
|
27
|
-
"compile
|
|
28
|
-
"compile
|
|
27
|
+
"compile-watch": "tsc -p tsconfig.json --watch",
|
|
28
|
+
"compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
|
|
29
29
|
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js",
|
|
30
30
|
"generate:ts": "rm -rf ./src/generated && utils-json-to-ts --declareExternallyReferenced",
|
|
31
31
|
"prepublishOnly": "yarn run build",
|
|
32
32
|
"publish": "utils-git changed --exec \"yarn npm publish $@\"",
|
|
33
|
-
"test
|
|
33
|
+
"test-ci": "jest --passWithNoTests --config=./jest.config.js",
|
|
34
34
|
"version:apply": "utils-git changed --exec \"yarn version $@ && yarn version apply\"",
|
|
35
35
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@goldstack/utils-config": "0.3.
|
|
39
|
-
"@goldstack/utils-sh": "0.4.
|
|
38
|
+
"@goldstack/utils-config": "0.3.17",
|
|
39
|
+
"@goldstack/utils-sh": "0.4.16"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@goldstack/utils-git": "0.1.
|
|
43
|
-
"@goldstack/utils-json-to-ts": "0.3.
|
|
44
|
-
"@types/jest": "^
|
|
45
|
-
"@types/node": "^
|
|
42
|
+
"@goldstack/utils-git": "0.1.28",
|
|
43
|
+
"@goldstack/utils-json-to-ts": "0.3.16",
|
|
44
|
+
"@types/jest": "^27.0.2",
|
|
45
|
+
"@types/node": "^16.11.0",
|
|
46
46
|
"jest": "^26.6.3",
|
|
47
47
|
"ts-jest": "^26.5.4",
|
|
48
|
-
"typescript": "^4.3
|
|
48
|
+
"typescript": "^4.4.3"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"main": "dist/src/utilsTemplate.js"
|
|
49
52
|
}
|
|
50
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"goldstackTemplateConfigurationSchema.d.ts","sourceRoot":"","sources":["../../src/generated/goldstackTemplateConfigurationSchema.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH;;GAEG;AACH,oBAAY,QAAQ,GAAG,MAAM,CAAC;AAC9B;;GAEG;AACH,oBAAY,eAAe,GAAG,MAAM,CAAC;AACrC;;GAEG;AACH,oBAAY,uBAAuB,GAAG,MAAM,CAAC;AAC7C;;GAEG;AACH,oBAAY,WAAW,GAAG,MAAM,CAAC;AACjC;;GAEG;AACH,oBAAY,aAAa,GAAG,MAAM,CAAC;AACnC;;GAEG;AACH,oBAAY,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,QAAQ,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,mBAAmB,EAAE,WAAW,CAAC;IACjC,qBAAqB,EAAE,aAAa,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"goldstackTemplateConfigurationSchema.js","sourceRoot":"","sources":["../../src/generated/goldstackTemplateConfigurationSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;;;GAIG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilsTemplate.d.ts","sourceRoot":"","sources":["../src/utilsTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAElG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAElG,eAAO,MAAM,4BAA4B,SACjC,MAAM,KACX,8BAKF,CAAC;AAEF,eAAO,MAAM,0BAA0B,qBAEpC,8BASF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilsTemplate.js","sourceRoot":"","sources":["../src/utilsTemplate.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAsD;AACtD,oIAA+E;AAC/E,kDAA2C;AAKpC,MAAM,4BAA4B,GAAG,CAC1C,IAAY,EACoB,EAAE;IAClC,MAAM,MAAM,GAAG,0BAAW,CAAC,IAAI,EAAE,mDAAY,EAAE;QAC7C,YAAY,EAAE,8BAA8B;KAC7C,CAAmC,CAAC;IACrC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,4BAA4B,gCAOvC;AAEK,MAAM,0BAA0B,GAAG,CACxC,IAAI,GAAG,eAAe,EACU,EAAE;IAClC,IAAI;QACF,MAAM,IAAI,GAAG,eAAI,CAAC,IAAI,CAAC,CAAC;QACxB,OAAO,oCAA4B,CAAC,IAAI,CAAC,CAAC;KAC3C;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CACb,oCAAoC,IAAI,YAAY,CAAC,CAAC,OAAO,EAAE,CAChE,CAAC;KACH;AACH,CAAC,CAAC;AAXW,QAAA,0BAA0B,8BAWrC"}
|