@knapsack/ks-file-utils 4.65.7--canary.772e1da.0 → 4.65.7--canary.3291.c011027.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,31 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.readKsNavConfig = readKsNavConfig;
27
- exports.writeKsNavConfig = writeKsNavConfig;
28
- exports.addKsNavItems = addKsNavItems;
29
- exports.readKsPatternConfig = readKsPatternConfig;
30
- exports.readKsPatternConfigs = readKsPatternConfigs;
31
- exports.writeKsPatternConfigs = writeKsPatternConfigs;
32
- exports.writeKsPatternConfig = writeKsPatternConfig;
33
- exports.readKsPageConfig = readKsPageConfig;
34
- exports.readKsPagesConfig = readKsPagesConfig;
35
- exports.writeKsPagesConfig = writeKsPagesConfig;
36
- exports.writeKsPageConfig = writeKsPageConfig;
37
- exports.readKsPatternsConfig = readKsPatternsConfig;
38
- exports.writeKsPatternsConfig = writeKsPatternsConfig;
39
- exports.readKsAssetSetsConfig = readKsAssetSetsConfig;
40
- exports.writeKsAssetSetsConfig = writeKsAssetSetsConfig;
41
- exports.writeKsFilesConfig = writeKsFilesConfig;
42
- exports.readKsFilesConfig = readKsFilesConfig;
43
- exports.writeKsDesignTokensConfig = writeKsDesignTokensConfig;
44
- exports.readKsDesignTokensConfig = readKsDesignTokensConfig;
45
- exports.readDb = readDb;
46
- exports.writeDb = writeDb;
47
- exports.writeBlock = writeBlock;
48
- exports.readBlock = readBlock;
49
- exports.writeDemo = writeDemo;
50
- exports.readDemo = readDemo;
26
+ exports.readDemo = exports.writeDemo = exports.readBlock = exports.writeBlock = exports.writeDb = exports.readDb = exports.readKsDesignTokensConfig = exports.writeKsDesignTokensConfig = exports.readKsFilesConfig = exports.writeKsFilesConfig = exports.writeKsAssetSetsConfig = exports.readKsAssetSetsConfig = exports.writeKsPatternsConfig = exports.readKsPatternsConfig = exports.writeKsPageConfig = exports.writeKsPagesConfig = exports.readKsPagesConfig = exports.readKsPageConfig = exports.writeKsPatternConfig = exports.writeKsPatternConfigs = exports.readKsPatternConfigs = exports.readKsPatternConfig = exports.addKsNavItems = exports.writeKsNavConfig = exports.readKsNavConfig = void 0;
51
27
  const fs = __importStar(require("fs-extra"));
52
28
  const path_1 = require("path");
53
29
  const file_utils_1 = require("@knapsack/file-utils");
@@ -58,12 +34,14 @@ async function readKsNavConfig({ dataDir, }) {
58
34
  await (0, file_utils_1.ensureDirCached)(dataDir);
59
35
  return (0, file_utils_1.readYaml)((0, path_1.join)(dataDir, 'knapsack.navs.yml'));
60
36
  }
37
+ exports.readKsNavConfig = readKsNavConfig;
61
38
  async function writeKsNavConfig({ dataDir, data, }) {
62
39
  return (0, file_utils_1.writeYamlFormatted)({
63
40
  contents: data,
64
41
  path: (0, path_1.join)(dataDir, 'knapsack.navs.yml'),
65
42
  });
66
43
  }
44
+ exports.writeKsNavConfig = writeKsNavConfig;
67
45
  async function addKsNavItems({ dataDir, navItems, }) {
68
46
  const navs = await readKsNavConfig({ dataDir });
69
47
  // Loop over new nav items, insert into navs.byId object
@@ -77,21 +55,25 @@ async function addKsNavItems({ dataDir, navItems, }) {
77
55
  });
78
56
  await writeKsNavConfig({ dataDir, data: navs });
79
57
  }
58
+ exports.addKsNavItems = addKsNavItems;
80
59
  async function readKsPatternConfig({ dataDir, patternId, }) {
81
60
  await (0, file_utils_1.ensureDirCached)(dataDir);
82
61
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, patternFileName(patternId)));
83
62
  }
63
+ exports.readKsPatternConfig = readKsPatternConfig;
84
64
  async function readKsPatternConfigs({ dataDir, }) {
85
65
  const files = await fs.readdir(dataDir);
86
66
  const patternFiles = files.filter((fileName) => fileName.startsWith('knapsack.pattern.'));
87
67
  return Promise.all(patternFiles.map((patternFile) => (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, patternFile))));
88
68
  }
69
+ exports.readKsPatternConfigs = readKsPatternConfigs;
89
70
  async function writeKsPatternConfigs({ dataDir, patterns, }) {
90
71
  await Promise.all(patterns.map((pattern) => (0, file_utils_1.writeFormattedFile)({
91
72
  path: (0, path_1.join)(dataDir, `knapsack.pattern.${pattern.id}.json`),
92
73
  contents: pattern,
93
74
  })));
94
75
  }
76
+ exports.writeKsPatternConfigs = writeKsPatternConfigs;
95
77
  async function writeKsPatternConfig({ patternId, dataDir, data, addToNav, navParentId = 'root', }) {
96
78
  await Promise.all([
97
79
  (0, file_utils_1.writeFormattedFile)({
@@ -111,15 +93,18 @@ async function writeKsPatternConfig({ patternId, dataDir, data, addToNav, navPar
111
93
  }),
112
94
  ].filter(Boolean));
113
95
  }
96
+ exports.writeKsPatternConfig = writeKsPatternConfig;
114
97
  async function readKsPageConfig({ dataDir, pageId, }) {
115
98
  await (0, file_utils_1.ensureDirCached)(dataDir);
116
99
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, pageFileName(pageId)));
117
100
  }
101
+ exports.readKsPageConfig = readKsPageConfig;
118
102
  async function readKsPagesConfig({ dataDir, }) {
119
103
  const files = await fs.readdir(dataDir);
120
104
  const pageFiles = files.filter((fileName) => fileName.startsWith('knapsack.custom-page.'));
121
105
  return Promise.all(pageFiles.map((pageFile) => (0, file_utils_1.readYaml)((0, path_1.join)(dataDir, pageFile))));
122
106
  }
107
+ exports.readKsPagesConfig = readKsPagesConfig;
123
108
  async function writeKsPagesConfig({ dataDir, pages, }) {
124
109
  await Promise.all(pages.map(async (page) => {
125
110
  (0, file_utils_1.writeYamlFormatted)({
@@ -128,6 +113,7 @@ async function writeKsPagesConfig({ dataDir, pages, }) {
128
113
  });
129
114
  }));
130
115
  }
116
+ exports.writeKsPagesConfig = writeKsPagesConfig;
131
117
  async function writeKsPageConfig({ data, pageId, dataDir, addToNav, navParentId = 'root', }) {
132
118
  await Promise.all([
133
119
  (0, file_utils_1.writeFormattedFile)({
@@ -147,46 +133,55 @@ async function writeKsPageConfig({ data, pageId, dataDir, addToNav, navParentId
147
133
  }),
148
134
  ].filter(Boolean));
149
135
  }
136
+ exports.writeKsPageConfig = writeKsPageConfig;
150
137
  async function readKsPatternsConfig({ dataDir, }) {
151
138
  await (0, file_utils_1.ensureDirCached)(dataDir);
152
139
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, 'knapsack.patterns.json'));
153
140
  }
141
+ exports.readKsPatternsConfig = readKsPatternsConfig;
154
142
  async function writeKsPatternsConfig({ dataDir, data, }) {
155
143
  return (0, file_utils_1.writeFormattedFile)({
156
144
  contents: data,
157
145
  path: (0, path_1.join)(dataDir, 'knapsack.patterns.json'),
158
146
  });
159
147
  }
148
+ exports.writeKsPatternsConfig = writeKsPatternsConfig;
160
149
  async function readKsAssetSetsConfig({ dataDir, }) {
161
150
  await (0, file_utils_1.ensureDirCached)(dataDir);
162
151
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, 'knapsack.asset-sets.json'));
163
152
  }
153
+ exports.readKsAssetSetsConfig = readKsAssetSetsConfig;
164
154
  async function writeKsAssetSetsConfig({ dataDir, data, }) {
165
155
  return (0, file_utils_1.writeFormattedFile)({
166
156
  contents: data,
167
157
  path: (0, path_1.join)(dataDir, 'knapsack.asset-sets.json'),
168
158
  });
169
159
  }
160
+ exports.writeKsAssetSetsConfig = writeKsAssetSetsConfig;
170
161
  async function writeKsFilesConfig({ dataDir, data, }) {
171
162
  return (0, file_utils_1.writeFormattedFile)({
172
163
  contents: data,
173
164
  path: (0, path_1.join)(dataDir, 'knapsack.files.json'),
174
165
  });
175
166
  }
167
+ exports.writeKsFilesConfig = writeKsFilesConfig;
176
168
  async function readKsFilesConfig({ dataDir, }) {
177
169
  await (0, file_utils_1.ensureDirCached)(dataDir);
178
170
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, 'knapsack.files.json'));
179
171
  }
172
+ exports.readKsFilesConfig = readKsFilesConfig;
180
173
  async function writeKsDesignTokensConfig({ dataDir, data, }) {
181
174
  return (0, file_utils_1.writeFormattedFile)({
182
175
  contents: data,
183
176
  path: (0, path_1.join)(dataDir, 'knapsack.design-tokens.json'),
184
177
  });
185
178
  }
179
+ exports.writeKsDesignTokensConfig = writeKsDesignTokensConfig;
186
180
  async function readKsDesignTokensConfig({ dataDir, }) {
187
181
  await (0, file_utils_1.ensureDirCached)(dataDir);
188
182
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, 'knapsack.design-tokens.json'));
189
183
  }
184
+ exports.readKsDesignTokensConfig = readKsDesignTokensConfig;
190
185
  async function globAndReadJson(glob) {
191
186
  const record = {};
192
187
  const filePaths = await (0, file_utils_1.globby)(glob);
@@ -235,6 +230,7 @@ async function readDb({ dataDir, blocksSubDir = './blocks', demosSubDir = './dem
235
230
  },
236
231
  };
237
232
  }
233
+ exports.readDb = readDb;
238
234
  async function writeDb({ dataDir, db, blocksSubDir = './blocks', demosSubDir = './demos', }) {
239
235
  const blocksDir = (0, path_1.isAbsolute)(blocksSubDir)
240
236
  ? blocksSubDir
@@ -277,6 +273,7 @@ async function writeDb({ dataDir, db, blocksSubDir = './blocks', demosSubDir = '
277
273
  }),
278
274
  ]);
279
275
  }
276
+ exports.writeDb = writeDb;
280
277
  async function writeBlock({ dataDir, block, addTo, }) {
281
278
  var _a, _b, _c;
282
279
  const blocksDir = (0, path_1.join)(dataDir, `blocks`);
@@ -315,9 +312,11 @@ async function writeBlock({ dataDir, block, addTo, }) {
315
312
  }
316
313
  }
317
314
  }
315
+ exports.writeBlock = writeBlock;
318
316
  async function readBlock({ dataDir, blockId, }) {
319
317
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, `blocks/block.${blockId}.json`));
320
318
  }
319
+ exports.readBlock = readBlock;
321
320
  async function writeDemo({ dataDir, demo, addTo, }) {
322
321
  var _a, _b;
323
322
  const demoDir = (0, path_1.join)(dataDir, `demos`);
@@ -340,7 +339,9 @@ async function writeDemo({ dataDir, demo, addTo, }) {
340
339
  data: pattern,
341
340
  });
342
341
  }
342
+ exports.writeDemo = writeDemo;
343
343
  async function readDemo({ dataDir, demoId, }) {
344
344
  return (0, file_utils_1.readJSON)((0, path_1.join)(dataDir, `demos/demo.${demoId}.json`));
345
345
  }
346
+ exports.readDemo = readDemo;
346
347
  //# sourceMappingURL=ks-app-client-data-file-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ks-app-client-data-file-utils.js","sourceRoot":"","sources":["../src/ks-app-client-data-file-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,0CAOC;AAED,4CAWC;AAED,sCAwBC;AAED,kDASC;AAED,oDAcC;AAED,sDAeC;AAED,oDAiCC;AAED,4CASC;AAED,8CAcC;AAED,gDAeC;AAED,8CAiCC;AAED,oDASC;AAED,sDAWC;AAED,sDASC;AAED,wDAWC;AAED,gDAWC;AAED,8CAOC;AAED,8DAWC;AAED,4DASC;AAiCD,wBA0CC;AAED,0BAyDC;AAED,gCAsDC;AAED,8BAQC;AAED,8BA+BC;AAED,4BAQC;AA3jBD,6CAA+B;AAa/B,+BAAwC;AACxC,qDAS8B;AAC9B,2CAA4D;AAE5D,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE,CAC5C,oBAAoB,SAAS,OAAO,CAAC;AACvC,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,wBAAwB,MAAM,MAAM,CAAC;AAEvE,KAAK,UAAU,eAAe,CAAC,EACpC,OAAO,GAGR;IACC,MAAM,IAAA,4BAAe,EAAC,OAAO,CAAC,CAAC;IAC/B,OAAO,IAAA,qBAAQ,EAAqB,IAAA,WAAI,EAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAC1E,CAAC;AAEM,KAAK,UAAU,gBAAgB,CAAC,EACrC,OAAO,EACP,IAAI,GAIL;IACC,OAAO,IAAA,+BAAkB,EAAC;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,IAAA,WAAI,EAAC,OAAO,EAAE,mBAAmB,CAAC;KACzC,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,U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CAAC,EAAE,KAAK,KAAK,CAAC,UAAU,CAAC,0CACnD,OAAO,0CAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3B,MAAM,oBAAoB,CAAC;QACzB,OAAO;QACP,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,IAAI,EAAE,OAAO;KACd,CAAC,CAAC;AACL,CAAC;AA/BD,8BA+BC;AAEM,KAAK,UAAU,QAAQ,CAAC,EAC7B,OAAO,EACP,MAAM,GAIP;IACC,OAAO,IAAA,qBAAQ,EAAO,IAAA,WAAI,EAAC,OAAO,EAAE,cAAc,MAAM,OAAO,CAAC,CAAC,CAAC;AACpE,CAAC;AARD,4BAQC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/ks-file-utils",
3
3
  "description": "Utilities for working with Knapsack data files",
4
- "version": "4.65.7--canary.772e1da.0",
4
+ "version": "4.65.7--canary.3291.c011027.0",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -19,18 +19,18 @@
19
19
  "start": "tsc --watch"
20
20
  },
21
21
  "dependencies": {
22
- "@knapsack/file-utils": "4.65.7--canary.772e1da.0",
23
- "@knapsack/utils": "4.65.7--canary.772e1da.0",
22
+ "@knapsack/file-utils": "4.65.7--canary.3291.c011027.0",
23
+ "@knapsack/utils": "4.65.7--canary.3291.c011027.0",
24
24
  "fs-extra": "^11.2.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@knapsack/eslint-config-starter": "4.65.7--canary.772e1da.0",
28
- "@knapsack/types": "4.65.7--canary.772e1da.0",
29
- "@knapsack/typescript-config-starter": "4.65.7--canary.772e1da.0",
27
+ "@knapsack/eslint-config-starter": "4.65.7--canary.3291.c011027.0",
28
+ "@knapsack/types": "4.65.7--canary.3291.c011027.0",
29
+ "@knapsack/typescript-config-starter": "4.65.7--canary.3291.c011027.0",
30
30
  "@types/fs-extra": "^11.0.4",
31
31
  "@types/node": "^20.12.12",
32
32
  "eslint": "^8.57.0",
33
- "typescript": "^5.5.3"
33
+ "typescript": "^5.4.5"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -40,5 +40,5 @@
40
40
  "directory": "libs/ks-file-utils",
41
41
  "type": "git"
42
42
  },
43
- "gitHead": "772e1daf9d924ad7687349ec9fff86426b01b7eb"
43
+ "gitHead": "c0110271601d2b661710606d3780b0c5db92ebbc"
44
44
  }