@storm-software/workspace-tools 1.37.1 → 1.38.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.38.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.37.1...workspace-tools-v1.38.0) (2024-01-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * **workspace-tools:** Added `metafile` option to tsup build ([f3c982c](https://github.com/storm-software/storm-ops/commit/f3c982c16a29d2034b9087bc86cf61a776e1445b))
7
+
8
+ ## [1.37.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.37.0...workspace-tools-v1.37.1) (2024-01-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Updated debug to disable minification ([d4d69fa](https://github.com/storm-software/storm-ops/commit/d4d69fa138bd9a4528ef362d112afc8bf11d6172))
14
+
1
15
  # [1.37.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.36.7...workspace-tools-v1.37.0) (2024-01-06)
2
16
 
3
17
 
package/README.md CHANGED
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
16
 
17
17
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
18
18
 
19
- [![Version](https://img.shields.io/badge/version-1.32.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.37.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
21
21
 
22
22
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
@@ -103,10 +103,12 @@ The following executor options are available:
103
103
  | assets | `array` | List of static assets. | `[]` |
104
104
  | clean | `boolean` | Remove previous output before build. | `true` |
105
105
  | includeSrc | `boolean` | Should the source files be added to the distribution folder in an \`src\` directory. | |
106
+ | metafile | `boolean` | Should a meta file be created for the build package | |
106
107
  | emitOnAll | `boolean` | Should each file contained in the package be emitted individually. | |
107
108
  | generatePackageJson | `boolean` | Should a package.json file be generated in the output folder or should the existing one be copied in. | `true` |
108
109
  | splitting | `boolean` | Should the build process preform \*code-splitting\*? | `true` |
109
110
  | treeshake | `boolean` | Should the build process \*tree-shake\* to remove unused code? | `true` |
111
+ | format | `string[]` | The output format for the generated JavaScript files. There are currently three possible values that can be configured: iife, cjs, and esm. | `[]` |
110
112
  | debug | `boolean` | Should output be unminified with source mappings. | |
111
113
  | **platform \*** | "browser" \| "neutral" \| "node" \| "worker" | Platform target for outputs. | "neutral" |
112
114
  | **banner \*** | `string` | A short heading added to the top of each typescript file added in the output folder's \`src\` directory. | "This code was developed by Storm Software (<https://stormsoftware.org>) and is licensed under the Apache License 2.0." |
@@ -139,15 +141,6 @@ nx run my-project:tsup-neutral
139
141
 
140
142
  **Please note:** _The tsup-neutral executor should be included in the desired projects's `project.json` file._
141
143
 
142
- ### Options
143
-
144
- The following executor options are available:
145
-
146
- | Option | Type | Description | Default |
147
- | --------- | ------ | ------------- | --------- |
148
- | transports | `string[]` | | `[]` |
149
-
150
-
151
144
 
152
145
 
153
146
  ## Node TypeScript Builder
@@ -164,6 +157,15 @@ nx run my-project:tsup-node
164
157
 
165
158
  **Please note:** _The tsup-node executor should be included in the desired projects's `project.json` file._
166
159
 
160
+ ### Options
161
+
162
+ The following executor options are available:
163
+
164
+ | Option | Type | Description | Default |
165
+ | --------- | ------ | ------------- | --------- |
166
+ | transports | `string[]` | | `[]` |
167
+
168
+
167
169
 
168
170
 
169
171
  ## Browser TypeScript Builder
@@ -411,6 +413,35 @@ The following executor options are available:
411
413
 
412
414
 
413
415
 
416
+ ## Design Tokens Code Generator
417
+
418
+ Create styling source code from design tokens json file(s) exported from Figma Tokens Studio
419
+
420
+ ### Options
421
+
422
+ The following executor options are available:
423
+
424
+ | Option | Type | Description | Default |
425
+ | --------- | ------ | ------------- | --------- |
426
+ | **inputPath \*** | `string` | The path to the tokens json file(s) exported from Figma Tokens Studio. | |
427
+ | **type \*** | "tailwindcss" \| "tamagui" \| "all" | The type of code to generate based on the supplied tokens (TailWind CSS, Tamagui, etc.). | "tailwindcss" |
428
+ | **tsConfig \*** | `string` | Path to the typescript config file. | |
429
+ | customActions | `string` | Path to the ts file exporting the custom actions to register. | |
430
+ | customFileHeaders | `string` | Path to the ts file exporting the custom file headers to register. | |
431
+ | customFilters | `string` | Path to the ts file exporting the custom filters to register. | |
432
+ | customFormats | `string` | Path to the ts file exporting the custom formats to register. | |
433
+ | customParsers | `string` | Path to the ts file exporting the custom parsers to register. | |
434
+ | customTransformGroups | `string` | Path to the ts file exporting the custom transform groups to register. | |
435
+ | customTransforms | `string` | Path to the ts file exporting the custom transform to register. | |
436
+ | outputPath | `string` | The output path of the generated files. | |
437
+ | deleteOutputPath | `boolean` | Delete the output path before building. | `true` |
438
+ | platform | `string` | Build only the passed platform defined in the configuration. | |
439
+
440
+
441
+ **Please note:** _Option names followed by \* above are required, and must be provided to run the executor._
442
+
443
+
444
+
414
445
  <!-- markdownlint-restore -->
415
446
  <!-- prettier-ignore-end -->
416
447
 
package/index.js CHANGED
@@ -46335,9 +46335,9 @@ var require_brace_expansion2 = __commonJS({
46335
46335
  }
46336
46336
  });
46337
46337
 
46338
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-EPAEWGCP.js
46338
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-EPAEWGCP.js
46339
46339
  var require_chunk_EPAEWGCP = __commonJS({
46340
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
46340
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
46341
46341
  "use strict";
46342
46342
  Object.defineProperty(exports, "__esModule", { value: true });
46343
46343
  var version = "8.0.0";
@@ -47984,9 +47984,9 @@ var require_resolve_from2 = __commonJS({
47984
47984
  }
47985
47985
  });
47986
47986
 
47987
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-GQ77QZBO.js
47987
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-GQ77QZBO.js
47988
47988
  var require_chunk_GQ77QZBO = __commonJS({
47989
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
47989
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
47990
47990
  "use strict";
47991
47991
  Object.defineProperty(exports, "__esModule", { value: true });
47992
47992
  function _interopRequireDefault(obj) {
@@ -48264,9 +48264,9 @@ var require_chunk_GQ77QZBO = __commonJS({
48264
48264
  }
48265
48265
  });
48266
48266
 
48267
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-UIX4URMV.js
48267
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-UIX4URMV.js
48268
48268
  var require_chunk_UIX4URMV = __commonJS({
48269
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
48269
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
48270
48270
  "use strict";
48271
48271
  Object.defineProperty(exports, "__esModule", { value: true });
48272
48272
  function _interopRequireWildcard(obj) {
@@ -49200,9 +49200,9 @@ var require_dist3 = __commonJS({
49200
49200
  }
49201
49201
  });
49202
49202
 
49203
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-7G76EW2R.js
49203
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-7G76EW2R.js
49204
49204
  var require_chunk_7G76EW2R = __commonJS({
49205
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
49205
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
49206
49206
  "use strict";
49207
49207
  Object.defineProperty(exports, "__esModule", { value: true });
49208
49208
  function _interopRequireDefault(obj) {
@@ -102939,9 +102939,9 @@ var require_chokidar = __commonJS({
102939
102939
  }
102940
102940
  });
102941
102941
 
102942
- // node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/index.js
102942
+ // node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/index.js
102943
102943
  var require_dist6 = __commonJS({
102944
- "node_modules/.pnpm/tsup@8.0.0_patch_hash=l546d6cui6fcsevduni2rjw6xe_@microsoft+api-extractor@7.38.3_@swc+core@1._p53kge4fngrdf2lsfbbriyvhmy/node_modules/tsup/dist/index.js"(exports) {
102944
+ "node_modules/.pnpm/tsup@8.0.0_patch_hash=fji2wtrptyijdpodz25pba5kma_@microsoft+api-extractor@7.38.3_@swc+core@1._gccq64hy4wt26ioomik5cghq3q/node_modules/tsup/dist/index.js"(exports) {
102945
102945
  "use strict";
102946
102946
  Object.defineProperty(exports, "__esModule", { value: true });
102947
102947
  function _interopRequireDefault(obj) {
@@ -105342,16 +105342,6 @@ var require_dist6 = __commonJS({
105342
105342
  "<projectFolder>",
105343
105343
  options.outDir,
105344
105344
  `index${dtsExtension}`
105345
- ).replaceAll("\\", "/"),
105346
- betaTrimmedFilePath: _path2.default.join(
105347
- "<projectFolder>",
105348
- options.outDir,
105349
- "index-beta.d.ts"
105350
- ).replaceAll("\\", "/"),
105351
- publicTrimmedFilePath: _path2.default.join(
105352
- "<projectFolder>",
105353
- options.outDir,
105354
- "index-public.d.ts"
105355
105345
  ).replaceAll("\\", "/")
105356
105346
  },
105357
105347
  tsdocMetadata: {
@@ -110197,6 +110187,7 @@ function defaultConfig({
110197
110187
  apiReport = true,
110198
110188
  docModel = true,
110199
110189
  tsdocMetadata = true,
110190
+ metafile = false,
110200
110191
  define: define2,
110201
110192
  env: env2,
110202
110193
  plugins,
@@ -110226,7 +110217,7 @@ function defaultConfig({
110226
110217
  workspaceRoot,
110227
110218
  outDir: (0, import_devkit.joinPathFragments)(outDir, "dist"),
110228
110219
  silent: !verbose,
110229
- metafile: true,
110220
+ metafile,
110230
110221
  shims,
110231
110222
  external,
110232
110223
  platform,
@@ -117202,7 +117193,6 @@ ${externalDependencies.map((dep) => {
117202
117193
  packageJson.dependencies[packageName] = "latest";
117203
117194
  }
117204
117195
  });
117205
- console.log(JSON.stringify(options.getConfig));
117206
117196
  const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
117207
117197
  packageJson.type = "module";
117208
117198
  if (distPaths.length > 0) {
@@ -117474,6 +117464,7 @@ var applyDefaultOptions = (options) => {
117474
117464
  options.docModel ??= true;
117475
117465
  options.tsdocMetadata ??= true;
117476
117466
  options.emitOnAll ??= false;
117467
+ options.metafile ??= false;
117477
117468
  options.define ??= {};
117478
117469
  options.env ??= {};
117479
117470
  options.verbose ??= !!process.env.CI;
@@ -117507,7 +117498,7 @@ var _isFunction = (value) => {
117507
117498
 
117508
117499
  // packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
117509
117500
  var import_devkit4 = __toESM(require_devkit());
117510
- function modernNeutralConfig({
117501
+ function neutralConfig({
117511
117502
  entry,
117512
117503
  outDir,
117513
117504
  projectRoot,
@@ -117521,15 +117512,16 @@ function modernNeutralConfig({
117521
117512
  banner = {},
117522
117513
  platform = "neutral",
117523
117514
  verbose = false,
117515
+ metafile = false,
117524
117516
  define: define2,
117525
117517
  env: env2,
117526
117518
  plugins,
117527
117519
  generatePackageJson,
117528
117520
  dtsTsConfig
117529
117521
  }) {
117530
- let outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist", "modern");
117522
+ let outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist");
117531
117523
  const options = {
117532
- name: "modern",
117524
+ name: "neutral",
117533
117525
  entry,
117534
117526
  format: ["cjs", "esm", "iife"],
117535
117527
  target: ["esnext"],
@@ -117543,7 +117535,7 @@ function modernNeutralConfig({
117543
117535
  workspaceRoot,
117544
117536
  outDir: outputPath,
117545
117537
  silent: !verbose,
117546
- metafile: true,
117538
+ metafile,
117547
117539
  shims,
117548
117540
  external,
117549
117541
  platform,
@@ -117581,83 +117573,6 @@ function modernNeutralConfig({
117581
117573
  }
117582
117574
  return options;
117583
117575
  }
117584
- function legacyNeutralConfig({
117585
- entry,
117586
- outDir,
117587
- projectRoot,
117588
- workspaceRoot,
117589
- tsconfig = "tsconfig.json",
117590
- splitting,
117591
- treeshake,
117592
- apiReport = true,
117593
- docModel = true,
117594
- tsdocMetadata = true,
117595
- debug = false,
117596
- external,
117597
- banner = {},
117598
- platform = "neutral",
117599
- verbose = false,
117600
- shims = true,
117601
- define: define2,
117602
- env: env2,
117603
- plugins,
117604
- generatePackageJson,
117605
- dtsTsConfig
117606
- }) {
117607
- let outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist", "legacy");
117608
- const options = {
117609
- name: "legacy",
117610
- entry,
117611
- format: ["cjs", "esm", "iife"],
117612
- target: ["es2022"],
117613
- tsconfig,
117614
- splitting,
117615
- generatePackageJson,
117616
- treeshake: treeshake ? {
117617
- preset: "recommended"
117618
- } : false,
117619
- projectRoot,
117620
- workspaceRoot,
117621
- outDir: outputPath,
117622
- silent: !verbose,
117623
- metafile: true,
117624
- shims,
117625
- external,
117626
- platform,
117627
- banner,
117628
- define: define2,
117629
- env: env2,
117630
- dts: false,
117631
- experimentalDts: {
117632
- entry,
117633
- compilerOptions: {
117634
- ...dtsTsConfig,
117635
- options: {
117636
- ...dtsTsConfig.options,
117637
- outDir: outputPath
117638
- }
117639
- }
117640
- },
117641
- apiReport,
117642
- docModel,
117643
- tsdocMetadata,
117644
- sourcemap: debug,
117645
- clean: false,
117646
- tsconfigDecoratorMetadata: true,
117647
- plugins,
117648
- outExtension
117649
- };
117650
- if (!debug) {
117651
- options.minify = "terser";
117652
- options.terserOptions = {
117653
- compress: true,
117654
- ecma: 2020,
117655
- keep_classnames: true,
117656
- keep_fnames: true
117657
- };
117658
- }
117659
- return options;
117660
- }
117661
117576
 
117662
117577
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts
117663
117578
  var tsupNeutralBuildExecutorFn = (options, context, config) => {
@@ -117665,8 +117580,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
117665
117580
  {
117666
117581
  ...options,
117667
117582
  getConfig: {
117668
- "dist/modern": modernNeutralConfig,
117669
- "dist/legacy": legacyNeutralConfig
117583
+ "dist": neutralConfig
117670
117584
  },
117671
117585
  platform: "neutral",
117672
117586
  banner: getFileBanner(
@@ -117723,6 +117637,7 @@ function nodeConfig({
117723
117637
  apiReport = true,
117724
117638
  docModel = true,
117725
117639
  tsdocMetadata = true,
117640
+ metafile = false,
117726
117641
  define: define2,
117727
117642
  env: env2,
117728
117643
  plugins,