@storm-software/workspace-tools 1.38.0 → 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,10 @@
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
+
1
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)
2
9
 
3
10
 
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
@@ -117193,7 +117193,6 @@ ${externalDependencies.map((dep) => {
117193
117193
  packageJson.dependencies[packageName] = "latest";
117194
117194
  }
117195
117195
  });
117196
- console.log(JSON.stringify(options.getConfig));
117197
117196
  const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
117198
117197
  packageJson.type = "module";
117199
117198
  if (distPaths.length > 0) {
@@ -117499,7 +117498,7 @@ var _isFunction = (value) => {
117499
117498
 
117500
117499
  // packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
117501
117500
  var import_devkit4 = __toESM(require_devkit());
117502
- function modernNeutralConfig({
117501
+ function neutralConfig({
117503
117502
  entry,
117504
117503
  outDir,
117505
117504
  projectRoot,
@@ -117520,9 +117519,9 @@ function modernNeutralConfig({
117520
117519
  generatePackageJson,
117521
117520
  dtsTsConfig
117522
117521
  }) {
117523
- let outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist", "modern");
117522
+ let outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist");
117524
117523
  const options = {
117525
- name: "modern",
117524
+ name: "neutral",
117526
117525
  entry,
117527
117526
  format: ["cjs", "esm", "iife"],
117528
117527
  target: ["esnext"],
@@ -117574,84 +117573,6 @@ function modernNeutralConfig({
117574
117573
  }
117575
117574
  return options;
117576
117575
  }
117577
- function legacyNeutralConfig({
117578
- entry,
117579
- outDir,
117580
- projectRoot,
117581
- workspaceRoot,
117582
- tsconfig = "tsconfig.json",
117583
- splitting,
117584
- treeshake,
117585
- apiReport = true,
117586
- docModel = true,
117587
- tsdocMetadata = true,
117588
- debug = false,
117589
- external,
117590
- banner = {},
117591
- platform = "neutral",
117592
- verbose = false,
117593
- shims = true,
117594
- metafile = false,
117595
- define: define2,
117596
- env: env2,
117597
- plugins,
117598
- generatePackageJson,
117599
- dtsTsConfig
117600
- }) {
117601
- let outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist", "legacy");
117602
- const options = {
117603
- name: "legacy",
117604
- entry,
117605
- format: ["cjs", "esm", "iife"],
117606
- target: ["es2022"],
117607
- tsconfig,
117608
- splitting,
117609
- generatePackageJson,
117610
- treeshake: treeshake ? {
117611
- preset: "recommended"
117612
- } : false,
117613
- projectRoot,
117614
- workspaceRoot,
117615
- outDir: outputPath,
117616
- silent: !verbose,
117617
- metafile,
117618
- shims,
117619
- external,
117620
- platform,
117621
- banner,
117622
- define: define2,
117623
- env: env2,
117624
- dts: false,
117625
- experimentalDts: {
117626
- entry,
117627
- compilerOptions: {
117628
- ...dtsTsConfig,
117629
- options: {
117630
- ...dtsTsConfig.options,
117631
- outDir: outputPath
117632
- }
117633
- }
117634
- },
117635
- apiReport,
117636
- docModel,
117637
- tsdocMetadata,
117638
- sourcemap: debug,
117639
- clean: false,
117640
- tsconfigDecoratorMetadata: true,
117641
- plugins,
117642
- outExtension
117643
- };
117644
- if (!debug) {
117645
- options.minify = "terser";
117646
- options.terserOptions = {
117647
- compress: true,
117648
- ecma: 2020,
117649
- keep_classnames: true,
117650
- keep_fnames: true
117651
- };
117652
- }
117653
- return options;
117654
- }
117655
117576
 
117656
117577
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts
117657
117578
  var tsupNeutralBuildExecutorFn = (options, context, config) => {
@@ -117659,8 +117580,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
117659
117580
  {
117660
117581
  ...options,
117661
117582
  getConfig: {
117662
- "dist/modern": modernNeutralConfig,
117663
- "dist/legacy": legacyNeutralConfig
117583
+ "dist": neutralConfig
117664
117584
  },
117665
117585
  platform: "neutral",
117666
117586
  banner: getFileBanner(