static-file-mapper-build 0.3.0 → 0.3.3
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/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Static File Mapper
|
|
1
|
+
# Static File Mapper
|
|
2
2
|
|
|
3
|
-
Helps with managing static files for frontend deployments during deployments.
|
|
3
|
+
Helps with managing static files for frontend deployments during deployments.
|
|
@@ -1,50 +1,46 @@
|
|
|
1
|
-
import { StaticFileMapper } from 'static-file-mapper';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
name: string;
|
|
18
|
-
}): Promise<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
private
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
dir: string;
|
|
47
|
-
storePath: string;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
1
|
+
import { StaticFileMapper, StaticFileMapping } from 'static-file-mapper';
|
|
2
|
+
export declare type MappingStore = StaticFileMapping[];
|
|
3
|
+
/**
|
|
4
|
+
* Allows defining static file mappings during build.
|
|
5
|
+
*/
|
|
6
|
+
export interface StaticFileMapperManager extends StaticFileMapper {
|
|
7
|
+
put({ name, generatedName, content, }: {
|
|
8
|
+
name: string;
|
|
9
|
+
generatedName: string;
|
|
10
|
+
content: string;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
remove({ name }: {
|
|
13
|
+
name: string;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
reset(): Promise<void>;
|
|
16
|
+
resolve({ name }: {
|
|
17
|
+
name: string;
|
|
18
|
+
}): Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
export declare class StaticFileMapperBuild implements StaticFileMapperManager {
|
|
21
|
+
private dir;
|
|
22
|
+
private storePath;
|
|
23
|
+
private createContentHash;
|
|
24
|
+
private readStore;
|
|
25
|
+
private writeStore;
|
|
26
|
+
put({ name, generatedName, content, }: {
|
|
27
|
+
name: string;
|
|
28
|
+
generatedName: string;
|
|
29
|
+
content: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
remove({ name }: {
|
|
32
|
+
name: string;
|
|
33
|
+
}): Promise<void>;
|
|
34
|
+
resolve({ name }: {
|
|
35
|
+
name: string;
|
|
36
|
+
}): Promise<string>;
|
|
37
|
+
has({ name }: {
|
|
38
|
+
name: string;
|
|
39
|
+
}): Promise<boolean>;
|
|
40
|
+
reset(): Promise<void>;
|
|
41
|
+
constructor({ dir, storePath }: {
|
|
42
|
+
dir: string;
|
|
43
|
+
storePath: string;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
50
46
|
//# sourceMappingURL=staticFileMapperBuild.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staticFileMapperBuild.d.ts","sourceRoot":"","sources":["../../src/staticFileMapperBuild.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"staticFileMapperBuild.d.ts","sourceRoot":"","sources":["../../src/staticFileMapperBuild.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIzE,oBAAY,YAAY,GAAG,iBAAiB,EAAE,CAAC;AAE/C;;GAEG;AACH,MAAM,W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,CAAC;gBAKvB,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;CAInE"}
|
|
@@ -1,92 +1,102 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StaticFileMapperBuild = void 0;
|
|
4
|
-
const utils_sh_1 = require("@goldstack/utils-sh");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const crypto_1 = require("crypto");
|
|
7
|
-
class StaticFileMapperBuild {
|
|
8
|
-
constructor({ dir, storePath }) {
|
|
9
|
-
this.dir = dir;
|
|
10
|
-
this.storePath = storePath;
|
|
11
|
-
}
|
|
12
|
-
createContentHash(content) {
|
|
13
|
-
const hash = (0, crypto_1.createHash)('md5').update(content).digest('hex');
|
|
14
|
-
return hash;
|
|
15
|
-
}
|
|
16
|
-
readStore() {
|
|
17
|
-
if (this.storePath) {
|
|
18
|
-
return JSON.parse((0, utils_sh_1.read)(this.storePath));
|
|
19
|
-
}
|
|
20
|
-
throw new Error('Cannot read static file mapper store');
|
|
21
|
-
}
|
|
22
|
-
writeStore(store) {
|
|
23
|
-
if (!this.storePath) {
|
|
24
|
-
throw new Error('Cannot write static file mapper store');
|
|
25
|
-
}
|
|
26
|
-
(0, utils_sh_1.write)(JSON.stringify(store, null, 2), this.storePath);
|
|
27
|
-
}
|
|
28
|
-
async put({ name, generatedName, content, }) {
|
|
29
|
-
let hashedName = generatedName;
|
|
30
|
-
if (hashedName.indexOf('[hash]') !== -1) {
|
|
31
|
-
const hash = this.createContentHash(content);
|
|
32
|
-
hashedName = hashedName.replace('[hash]', hash);
|
|
33
|
-
}
|
|
34
|
-
const path = `${this.dir}/${hashedName}`;
|
|
35
|
-
(0, utils_sh_1.mkdir)('-p', (0, path_1.dirname)(path));
|
|
36
|
-
(0, utils_sh_1.write)(content, path);
|
|
37
|
-
const store = this.readStore();
|
|
38
|
-
let
|
|
39
|
-
store.map((mapping) => {
|
|
40
|
-
if (mapping.
|
|
41
|
-
// clear out replaced file locally
|
|
42
|
-
// should still continue to exist in S3
|
|
43
|
-
// bucket
|
|
44
|
-
if (mapping.generatedName !== hashedName) {
|
|
45
|
-
(0, utils_sh_1.rm)('-f', `${this.dir}/${mapping.generatedName}`);
|
|
46
|
-
mapping.generatedName = hashedName;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
if (!
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StaticFileMapperBuild = void 0;
|
|
4
|
+
const utils_sh_1 = require("@goldstack/utils-sh");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const crypto_1 = require("crypto");
|
|
7
|
+
class StaticFileMapperBuild {
|
|
8
|
+
constructor({ dir, storePath }) {
|
|
9
|
+
this.dir = dir;
|
|
10
|
+
this.storePath = storePath;
|
|
11
|
+
}
|
|
12
|
+
createContentHash(content) {
|
|
13
|
+
const hash = (0, crypto_1.createHash)('md5').update(content).digest('hex');
|
|
14
|
+
return hash;
|
|
15
|
+
}
|
|
16
|
+
readStore() {
|
|
17
|
+
if (this.storePath) {
|
|
18
|
+
return JSON.parse((0, utils_sh_1.read)(this.storePath));
|
|
19
|
+
}
|
|
20
|
+
throw new Error('Cannot read static file mapper store');
|
|
21
|
+
}
|
|
22
|
+
writeStore(store) {
|
|
23
|
+
if (!this.storePath) {
|
|
24
|
+
throw new Error('Cannot write static file mapper store');
|
|
25
|
+
}
|
|
26
|
+
(0, utils_sh_1.write)(JSON.stringify(store, null, 2), this.storePath);
|
|
27
|
+
}
|
|
28
|
+
async put({ name, generatedName, content, }) {
|
|
29
|
+
let hashedName = generatedName;
|
|
30
|
+
if (hashedName.indexOf('[hash]') !== -1) {
|
|
31
|
+
const hash = this.createContentHash(content);
|
|
32
|
+
hashedName = hashedName.replace('[hash]', hash);
|
|
33
|
+
}
|
|
34
|
+
const path = `${this.dir}/${hashedName}`;
|
|
35
|
+
(0, utils_sh_1.mkdir)('-p', (0, path_1.dirname)(path));
|
|
36
|
+
(0, utils_sh_1.write)(content, path);
|
|
37
|
+
const store = this.readStore();
|
|
38
|
+
let mappingExists = false;
|
|
39
|
+
store.map((mapping) => {
|
|
40
|
+
if (mapping.names.find((el) => el === name)) {
|
|
41
|
+
// clear out replaced file locally
|
|
42
|
+
// should still continue to exist in S3
|
|
43
|
+
// bucket
|
|
44
|
+
if (mapping.generatedName !== hashedName) {
|
|
45
|
+
(0, utils_sh_1.rm)('-f', `${this.dir}/${mapping.generatedName}`);
|
|
46
|
+
mapping.generatedName = hashedName;
|
|
47
|
+
}
|
|
48
|
+
mappingExists = true;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
if (!mappingExists) {
|
|
52
|
+
// check if there is an entry for the generated name
|
|
53
|
+
const existingElement = store.find((el) => el.generatedName === hashedName);
|
|
54
|
+
if (existingElement) {
|
|
55
|
+
existingElement.names.push(name);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
store.push({
|
|
59
|
+
names: [name],
|
|
60
|
+
generatedName: hashedName,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
this.writeStore(store);
|
|
65
|
+
}
|
|
66
|
+
async remove({ name }) {
|
|
67
|
+
let store = this.readStore();
|
|
68
|
+
const element = store.find((el) => el.names.find((el) => el === name));
|
|
69
|
+
if (element) {
|
|
70
|
+
element.names = element.names.filter((el) => el !== name);
|
|
71
|
+
if (element.names.length === 0) {
|
|
72
|
+
store = store.filter((el) => {
|
|
73
|
+
return el.generatedName !== element.generatedName;
|
|
74
|
+
});
|
|
75
|
+
// clear out removed file locally
|
|
76
|
+
// should still continue to exist in S3
|
|
77
|
+
// bucket
|
|
78
|
+
(0, utils_sh_1.rm)('-f', `${this.dir}/${element.generatedName}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
this.writeStore(store);
|
|
82
|
+
}
|
|
83
|
+
async resolve({ name }) {
|
|
84
|
+
const store = this.readStore();
|
|
85
|
+
const mapping = store.find((mapping) => mapping.names.find((el) => el === name));
|
|
86
|
+
if (!mapping) {
|
|
87
|
+
throw new Error(`Cannot find static file mapping for ${name}`);
|
|
88
|
+
}
|
|
89
|
+
return mapping.generatedName;
|
|
90
|
+
}
|
|
91
|
+
async has({ name }) {
|
|
92
|
+
const store = this.readStore();
|
|
93
|
+
const mapping = store.find((mapping) => mapping.names.find((el) => el === name));
|
|
94
|
+
return !!mapping;
|
|
95
|
+
}
|
|
96
|
+
async reset() {
|
|
97
|
+
this.writeStore([]);
|
|
98
|
+
await (0, utils_sh_1.rmSafe)(this.dir);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.StaticFileMapperBuild = StaticFileMapperBuild;
|
|
92
102
|
//# sourceMappingURL=staticFileMapperBuild.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staticFileMapperBuild.js","sourceRoot":"","sources":["../../src/staticFileMapperBuild.ts"],"names":[],"mappings":";;;AAAA,kDAAqE;AACrE,+BAA+B;
|
|
1
|
+
{"version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uC,IAAI,EAAE,CAAC,CAAC;SAChE;QACD,OAAO,OAAO,CAAC,aAAa,CAAC;IAC/B,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAoB;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAE/B,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CACrC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,CACxC,CAAC;QAEF,OAAO,CAAC,CAAC,OAAO,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,KAAK;QAChB,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACpB,MAAM,IAAA,iBAAM,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;CAMF;AA/HD,sDA+HC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "static-file-mapper-build",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Helps tracking path to generated static files for deployment bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"version:apply": "utils-git changed --exec \"yarn version $@ && yarn version apply\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@goldstack/utils-sh": "0.5.
|
|
35
|
-
"static-file-mapper": "0.3.
|
|
34
|
+
"@goldstack/utils-sh": "0.5.2",
|
|
35
|
+
"static-file-mapper": "0.3.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@goldstack/utils-git": "0.2.
|
|
38
|
+
"@goldstack/utils-git": "0.2.2",
|
|
39
39
|
"@types/aws-lambda": "^8.10.88",
|
|
40
|
-
"@types/jest": "^
|
|
40
|
+
"@types/jest": "^29.0.1",
|
|
41
41
|
"@types/node": "^18.7.13",
|
|
42
42
|
"jest": "^28.1.0",
|
|
43
43
|
"rimraf": "^3.0.2",
|