@roots/bud-cache 5.0.0-next.5 → 5.0.0-next.6

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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readFileSync = exports.createHash = exports.globby = exports.bind = exports.Bud = void 0;
4
+ const tslib_1 = require("tslib");
5
+ exports.Bud = (0, tslib_1.__importStar)(require("@roots/bud-framework"));
6
+ var bud_support_1 = require("@roots/bud-support");
7
+ Object.defineProperty(exports, "bind", { enumerable: true, get: function () { return bud_support_1.bind; } });
8
+ Object.defineProperty(exports, "globby", { enumerable: true, get: function () { return bud_support_1.globby; } });
9
+ var crypto_1 = require("crypto");
10
+ Object.defineProperty(exports, "createHash", { enumerable: true, get: function () { return crypto_1.createHash; } });
11
+ const bud_support_2 = require("@roots/bud-support");
12
+ exports.readFileSync = bud_support_2.fs.readFileSync;
13
+ //# sourceMappingURL=cache.dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.dependencies.js","sourceRoot":"","sources":["../../../src/Cache/cache.dependencies.ts"],"names":[],"mappings":";;;;AAAA,yEAA2C;AAC3C,kDAA+C;AAAvC,mGAAA,IAAI,OAAA;AAAE,qGAAA,MAAM,OAAA;AACpB,iCAAiC;AAAzB,oGAAA,UAAU,OAAA;AAElB,oDAAqC;AACvB,oBAAY,GAAI,gBAAE,cAAA"}
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Cache = void 0;
3
4
  const tslib_1 = require("tslib");
4
- const bud_framework_1 = require("@roots/bud-framework");
5
- const bud_support_1 = require("@roots/bud-support");
6
- const crypto_1 = require("crypto");
7
- const { readFileSync } = bud_support_1.fs;
5
+ const cache_dependencies_1 = require("./cache.dependencies");
8
6
  /**
9
- * Service class handling cache concerns
7
+ * Cache service class
10
8
  *
11
9
  * @remarks
12
10
  * Interfaces with:
11
+ *
13
12
  * - {@link @roots/bud-framework#Project} to determine project dependencies for snapshotting/validation.
13
+ *
14
14
  * - {@link @roots/bud-framework#Build} via {@link @roots/bud-framework#Hooks} to update config.
15
15
  *
16
16
  * Facades:
17
+ *
17
18
  * - {@link @roots/bud-framework#Api} can toggle cache settings with {@link Bud.Persist}
18
19
  *
19
20
  * @public
20
21
  */
21
- class default_1 extends bud_framework_1.Cache.Abstract {
22
- constructor() {
23
- super(...arguments);
24
- /**
25
- * {@inheritDoc}
26
- */
27
- this.name = 'cache';
28
- }
22
+ class Cache extends cache_dependencies_1.Bud.Cache.Abstract {
29
23
  /**
30
- * {@inheritDoc}
24
+ * Service register event
31
25
  *
32
26
  * @decorator `@bind`
33
27
  */
@@ -44,7 +38,7 @@ class default_1 extends bud_framework_1.Cache.Abstract {
44
38
  * @decorator `@bind`
45
39
  */
46
40
  version() {
47
- return (0, crypto_1.createHash)('sha1')
41
+ return (0, cache_dependencies_1.createHash)('sha1')
48
42
  .update(this.hash())
49
43
  .digest('base64')
50
44
  .replace(/[^a-z0-9]/gi, '_')
@@ -67,17 +61,25 @@ class default_1 extends bud_framework_1.Cache.Abstract {
67
61
  * @decorator `@bind`
68
62
  */
69
63
  buildDependencies() {
70
- var _a, _b, _c, _d, _e, _f, _g;
71
64
  return [
72
- ...new Set(bud_support_1.globby.globbySync([
73
- this.app.path('project', `${this.app.name}.{js,ts,yml,json}`),
65
+ ...new Set(cache_dependencies_1.globby.globbySync([
74
66
  this.app.path('project', `${this.app.name}.config.{js,ts,yml,json}`),
75
- this.app.path('project', `${this.app.name}.${this.app.mode}.{js,ts.yml,json}`),
76
- ...((_g = (_c = (_b = (_a = this.app.project) === null || _a === void 0 ? void 0 : _a.resolveFrom) === null || _b === void 0 ? void 0 : _b.map(dep => `${dep}/lib/cjs/index.js`)) !== null && _c !== void 0 ? _c : (_f = (_e = (_d = this.app.parent) === null || _d === void 0 ? void 0 : _d.project) === null || _e === void 0 ? void 0 : _e.resolveFrom) === null || _f === void 0 ? void 0 : _f.map(dep => `${dep}/lib/cjs/index.js`)) !== null && _g !== void 0 ? _g : []),
77
- this.app.path('storage', 'cache/*'),
67
+ this.app.path('project', `${this.app.name}.${this.app.mode}.config.{js,ts.yml,json}`),
68
+ ...this.getFrameworkEntrypoints(),
69
+ this.app.path('storage', 'cache', '**', '*'),
78
70
  ])),
79
71
  ];
80
72
  }
73
+ /**
74
+ * Cache location: framework entrypoints
75
+ *
76
+ * @see https://webpack.js.org/configuration/resolve
77
+ */
78
+ getFrameworkEntrypoints() {
79
+ var _a, _b, _c;
80
+ const project = (_a = this.app.project) !== null && _a !== void 0 ? _a : this.app.parent.project;
81
+ return ((_c = (_b = project.resolveFrom) === null || _b === void 0 ? void 0 : _b.map(dep => `${dep}/lib/cjs/index.js`)) !== null && _c !== void 0 ? _c : []);
82
+ }
81
83
  /**
82
84
  * Returns hash of all build dependencies and parsed CLI arguments
83
85
  *
@@ -85,23 +87,23 @@ class default_1 extends bud_framework_1.Cache.Abstract {
85
87
  */
86
88
  hash() {
87
89
  var _a;
88
- return JSON.stringify((_a = this.buildDependencies().reduce((all, file) => all.concat(readFileSync(file, 'utf8')), process.argv.slice(3).join(''))) !== null && _a !== void 0 ? _a : '{}');
90
+ return JSON.stringify((_a = this.buildDependencies().reduce((all, file) => all.concat((0, cache_dependencies_1.readFileSync)(file, 'utf8')), process.argv.slice(3).join(''))) !== null && _a !== void 0 ? _a : '{}');
89
91
  }
90
92
  }
91
93
  (0, tslib_1.__decorate)([
92
- bud_support_1.bind
93
- ], default_1.prototype, "register", null);
94
+ cache_dependencies_1.bind
95
+ ], Cache.prototype, "register", null);
94
96
  (0, tslib_1.__decorate)([
95
- bud_support_1.bind
96
- ], default_1.prototype, "version", null);
97
+ cache_dependencies_1.bind
98
+ ], Cache.prototype, "version", null);
97
99
  (0, tslib_1.__decorate)([
98
- bud_support_1.bind
99
- ], default_1.prototype, "directory", null);
100
+ cache_dependencies_1.bind
101
+ ], Cache.prototype, "directory", null);
100
102
  (0, tslib_1.__decorate)([
101
- bud_support_1.bind
102
- ], default_1.prototype, "buildDependencies", null);
103
+ cache_dependencies_1.bind
104
+ ], Cache.prototype, "buildDependencies", null);
103
105
  (0, tslib_1.__decorate)([
104
- bud_support_1.bind
105
- ], default_1.prototype, "hash", null);
106
- exports.default = default_1;
106
+ cache_dependencies_1.bind
107
+ ], Cache.prototype, "hash", null);
108
+ exports.Cache = Cache;
107
109
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Cache/index.ts"],"names":[],"mappings":";;;AAAA,wDAAqD;AACrD,oDAAmD;AACnD,mCAAiC;AAEjC,MAAM,EAAC,YAAY,EAAC,GAAG,gBAAE,CAAA;AAEzB;;;;;;;;;;;;GAYG;AACH,eACE,SAAQ,qBAAK,CAAC,QAAQ;IADxB;;QAIE;;WAEG;QACI,SAAI,GAAG,OAAO,CAAA;IA+FvB,CAAC;IA7FC;;;;OAIG;IAEI,QAAQ,CAAC,GAAc;QAC5B,GAAG,CAAC,KAAK;aACN,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC;YACxB,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC;SAC3C,CAAC,CAAC;aACF,KAAK,CAAC,EAAE,CAAC,kBAAkB,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAA;IACjD,CAAC;IAED;;;;OAIG;IAEI,OAAO;QACZ,OAAO,IAAA,mBAAU,EAAC,MAAM,CAAC;aACtB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;aACnB,MAAM,CAAC,QAAQ,CAAC;aAChB,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;aAC3B,WAAW,EAAE,CAAA;IAClB,CAAC;IAED;;;;OAIG;IAEI,SAAS;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,C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AAS,EACT,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,0BAA0B,CAC5D;gBAED,GAAG,IAAI,CAAC,uBAAuB,EAAE;gBAEjC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC;aAC7C,CAAC,CACH;SACU,CAAA;IACf,CAAC;IAED;;;;OAIG;IACI,uBAAuB;;QAC5B,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,mCAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAE3D,OAAO,CACL,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,GAAG,CACtB,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,mBAAmB,CACjC,mCAAI,EAAE,CACR,CAAA;IACH,CAAC;IAED;;;;OAIG;IAEI,IAAI;;QACT,OAAO,IAAI,CAAC,SAAS,CACnB,MAAA,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAC7B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAA,iCAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EACrD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAC/B,mCAAI,IAAI,CACV,CAAA;IACH,CAAC;CACF;AA5FC;IADC,yBAAI;qCAOJ;AAQD;IADC,yBAAI;oCAOJ;AAQD;IADC,yBAAI;sCAGJ;AAWD;IADC,yBAAI;8CAqBJ;AAuBD;IADC,yBAAI;iCAQJ;AArGH,sBAsGC"}
package/lib/cjs/index.js CHANGED
@@ -3,15 +3,14 @@
3
3
  // Licensed under the MIT license.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Cache = void 0;
6
- const tslib_1 = require("tslib");
7
6
  /**
8
7
  * The {@link @roots/bud-cache#} package implements the {@link @roots/bud-framework#Cache | Cache interface}
9
8
  *
10
9
  * @see https://roots.io/bud
11
10
  * @see https://github.com/roots/bud
12
11
  *
13
- * @core @packageDocumentation @betaDocumentation
12
+ * @packageDocumentation @betaDocumentation
14
13
  */
15
- const Cache_1 = (0, tslib_1.__importDefault)(require("./Cache"));
16
- exports.Cache = Cache_1.default;
14
+ var Cache_1 = require("./Cache");
15
+ Object.defineProperty(exports, "Cache", { enumerable: true, get: function () { return Cache_1.Cache; } });
17
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;;AAElC;;;;;;;GAOG;AAEH,iEAA2B;AAEnB,gBAFD,eAAK,CAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AAElC;;;;;;;GAOG;AAEH,iCAA6B;AAArB,8FAAA,KAAK,OAAA"}
@@ -0,0 +1,6 @@
1
+ export * as Bud from '@roots/bud-framework';
2
+ export { bind, globby } from '@roots/bud-support';
3
+ export { createHash } from 'crypto';
4
+ import { fs } from '@roots/bud-support';
5
+ export const { readFileSync } = fs;
6
+ //# sourceMappingURL=cache.dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.dependencies.js","sourceRoot":"","sources":["../../../src/Cache/cache.dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAA;AAEjC,OAAO,EAAC,EAAE,EAAC,MAAM,oBAAoB,CAAA;AACrC,MAAM,CAAC,MAAM,EAAC,YAAY,EAAC,GAAG,EAAE,CAAA"}
@@ -1,31 +1,24 @@
1
1
  import { __decorate } from "tslib";
2
- import { Cache } from '@roots/bud-framework';
3
- import { bind, fs, globby } from '@roots/bud-support';
4
- import { createHash } from 'crypto';
5
- const { readFileSync } = fs;
2
+ import { bind, Bud, createHash, globby, readFileSync, } from './cache.dependencies';
6
3
  /**
7
- * Service class handling cache concerns
4
+ * Cache service class
8
5
  *
9
6
  * @remarks
10
7
  * Interfaces with:
8
+ *
11
9
  * - {@link @roots/bud-framework#Project} to determine project dependencies for snapshotting/validation.
10
+ *
12
11
  * - {@link @roots/bud-framework#Build} via {@link @roots/bud-framework#Hooks} to update config.
13
12
  *
14
13
  * Facades:
14
+ *
15
15
  * - {@link @roots/bud-framework#Api} can toggle cache settings with {@link Bud.Persist}
16
16
  *
17
17
  * @public
18
18
  */
19
- export default class default_1 extends Cache.Abstract {
20
- constructor() {
21
- super(...arguments);
22
- /**
23
- * {@inheritDoc}
24
- */
25
- this.name = 'cache';
26
- }
19
+ export class Cache extends Bud.Cache.Abstract {
27
20
  /**
28
- * {@inheritDoc}
21
+ * Service register event
29
22
  *
30
23
  * @decorator `@bind`
31
24
  */
@@ -65,17 +58,25 @@ export default class default_1 extends Cache.Abstract {
65
58
  * @decorator `@bind`
66
59
  */
67
60
  buildDependencies() {
68
- var _a, _b, _c, _d, _e, _f, _g;
69
61
  return [
70
62
  ...new Set(globby.globbySync([
71
- this.app.path('project', `${this.app.name}.{js,ts,yml,json}`),
72
63
  this.app.path('project', `${this.app.name}.config.{js,ts,yml,json}`),
73
- this.app.path('project', `${this.app.name}.${this.app.mode}.{js,ts.yml,json}`),
74
- ...((_g = (_c = (_b = (_a = this.app.project) === null || _a === void 0 ? void 0 : _a.resolveFrom) === null || _b === void 0 ? void 0 : _b.map(dep => `${dep}/lib/cjs/index.js`)) !== null && _c !== void 0 ? _c : (_f = (_e = (_d = this.app.parent) === null || _d === void 0 ? void 0 : _d.project) === null || _e === void 0 ? void 0 : _e.resolveFrom) === null || _f === void 0 ? void 0 : _f.map(dep => `${dep}/lib/cjs/index.js`)) !== null && _g !== void 0 ? _g : []),
75
- this.app.path('storage', 'cache/*'),
64
+ this.app.path('project', `${this.app.name}.${this.app.mode}.config.{js,ts.yml,json}`),
65
+ ...this.getFrameworkEntrypoints(),
66
+ this.app.path('storage', 'cache', '**', '*'),
76
67
  ])),
77
68
  ];
78
69
  }
70
+ /**
71
+ * Cache location: framework entrypoints
72
+ *
73
+ * @see https://webpack.js.org/configuration/resolve
74
+ */
75
+ getFrameworkEntrypoints() {
76
+ var _a, _b, _c;
77
+ const project = (_a = this.app.project) !== null && _a !== void 0 ? _a : this.app.parent.project;
78
+ return ((_c = (_b = project.resolveFrom) === null || _b === void 0 ? void 0 : _b.map(dep => `${dep}/lib/cjs/index.js`)) !== null && _c !== void 0 ? _c : []);
79
+ }
79
80
  /**
80
81
  * Returns hash of all build dependencies and parsed CLI arguments
81
82
  *
@@ -88,17 +89,17 @@ export default class default_1 extends Cache.Abstract {
88
89
  }
89
90
  __decorate([
90
91
  bind
91
- ], default_1.prototype, "register", null);
92
+ ], Cache.prototype, "register", null);
92
93
  __decorate([
93
94
  bind
94
- ], default_1.prototype, "version", null);
95
+ ], Cache.prototype, "version", null);
95
96
  __decorate([
96
97
  bind
97
- ], default_1.prototype, "directory", null);
98
+ ], Cache.prototype, "directory", null);
98
99
  __decorate([
99
100
  bind
100
- ], default_1.prototype, "buildDependencies", null);
101
+ ], Cache.prototype, "buildDependencies", null);
101
102
  __decorate([
102
103
  bind
103
- ], default_1.prototype, "hash", null);
104
+ ], Cache.prototype, "hash", null);
104
105
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Cache/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAY,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAC,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAC,UA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AG,CAAC,OAAO,mCAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAA;QAE3D,OAAO,CACL,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,GAAG,CACtB,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,mBAAmB,CACjC,mCAAI,EAAE,CACR,CAAA;IACH,CAAC;IAED;;;;OAIG;IAEI,IAAI;;QACT,OAAO,IAAI,CAAC,SAAS,CACnB,MAAA,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAC7B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EACrD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAC/B,mCAAI,IAAI,CACV,CAAA;IACH,CAAC;CACF;AA5FC;IADC,IAAI;qCAOJ;AAQD;IADC,IAAI;oCAOJ;AAQD;IADC,IAAI;sCAGJ;AAWD;IADC,IAAI;8CAqBJ;AAuBD;IADC,IAAI;iCAQJ"}
package/lib/esm/index.js CHANGED
@@ -6,8 +6,7 @@
6
6
  * @see https://roots.io/bud
7
7
  * @see https://github.com/roots/bud
8
8
  *
9
- * @core @packageDocumentation @betaDocumentation
9
+ * @packageDocumentation @betaDocumentation
10
10
  */
11
- import Cache from './Cache';
12
- export { Cache };
11
+ export { Cache } from './Cache';
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,kCAAkC;AAElC;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,SAAS,CAAA;AAE3B,OAAO,EAAC,KAAK,EAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,kCAAkC;AAElC;;;;;;;GAOG;AAEH,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAA"}