@storm-software/workspace-tools 1.62.18 → 1.62.20
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 +24 -0
- package/declarations.d.ts +129 -0
- package/executors.json +35 -0
- package/generators.json +53 -0
- package/index.js +4 -2410
- package/meta.json +1 -1
- package/package.json +16 -2
- package/src/executors/npm-publish/schema.d.ts +8 -0
- package/src/executors/npm-publish/schema.json +26 -0
- package/src/executors/tsup/executor.js +4 -2410
- package/src/executors/tsup/schema.d.ts +48 -0
- package/src/executors/tsup/schema.json +223 -0
- package/src/executors/tsup-browser/executor.js +4 -2410
- package/src/executors/tsup-browser/schema.d.ts +9 -0
- package/src/executors/tsup-browser/schema.json +11 -0
- package/src/executors/tsup-neutral/executor.js +4 -2410
- package/src/executors/tsup-neutral/schema.d.ts +5 -0
- package/src/executors/tsup-neutral/schema.json +11 -0
- package/src/executors/tsup-node/executor.js +4 -2410
- package/src/executors/tsup-node/schema.d.ts +7 -0
- package/src/executors/tsup-node/schema.json +20 -0
- package/src/executors/typia/schema.d.ts +6 -0
- package/src/executors/typia/schema.json +38 -0
- package/src/generators/browser-library/files/README.md +58 -0
- package/src/generators/browser-library/files/jest.config.ts +3 -0
- package/src/generators/browser-library/files/src/index.ts.template +10 -0
- package/src/generators/browser-library/files/tsconfig.spec.json +13 -0
- package/src/generators/browser-library/schema.d.ts +22 -0
- package/src/generators/browser-library/schema.json +82 -0
- package/src/generators/config-schema/schema.d.ts +3 -0
- package/src/generators/config-schema/schema.json +20 -0
- package/src/generators/init/schema.d.ts +3 -0
- package/src/generators/init/schema.json +16 -0
- package/src/generators/neutral-library/files/README.md +58 -0
- package/src/generators/neutral-library/files/jest.config.ts +3 -0
- package/src/generators/neutral-library/files/src/index.ts.template +10 -0
- package/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
- package/src/generators/neutral-library/schema.d.ts +6 -0
- package/src/generators/neutral-library/schema.json +82 -0
- package/src/generators/node-library/files/README.md +58 -0
- package/src/generators/node-library/files/jest.config.ts +3 -0
- package/src/generators/node-library/files/src/index.ts.template +10 -0
- package/src/generators/node-library/files/tsconfig.spec.json +13 -0
- package/src/generators/node-library/schema.d.ts +22 -0
- package/src/generators/node-library/schema.json +82 -0
- package/src/generators/preset/files/.all-contributorsrc.template +48 -0
- package/src/generators/preset/files/.editorconfig +454 -0
- package/src/generators/preset/files/.env.template +43 -0
- package/src/generators/preset/files/.gitattributes +52 -0
- package/src/generators/preset/files/.github/.nvmrc +1 -0
- package/src/generators/preset/files/.github/.whitesource +14 -0
- package/src/generators/preset/files/.github/CODEOWNERS +1 -0
- package/src/generators/preset/files/.github/CODE_OF_CONDUCT.md +125 -0
- package/src/generators/preset/files/.github/CONTRIBUTING.md.template +15 -0
- package/src/generators/preset/files/.github/FUNDING.yml +3 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +102 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +56 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +60 -0
- package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +39 -0
- package/src/generators/preset/files/.github/SECURITY.md +9 -0
- package/src/generators/preset/files/.github/actions/setup-workspace/action.yaml +41 -0
- package/src/generators/preset/files/.github/codecov.yml +29 -0
- package/src/generators/preset/files/.github/labels.yml +78 -0
- package/src/generators/preset/files/.github/renovate.json.template +51 -0
- package/src/generators/preset/files/.github/stale.yml +50 -0
- package/src/generators/preset/files/.github/workflows/build-release.yml.template +94 -0
- package/src/generators/preset/files/.github/workflows/code-review.yml +18 -0
- package/src/generators/preset/files/.github/workflows/codeql.yml +84 -0
- package/src/generators/preset/files/.github/workflows/git-guardian.yml +23 -0
- package/src/generators/preset/files/.github/workflows/greetings.yml +24 -0
- package/src/generators/preset/files/.github/workflows/labels.yml +31 -0
- package/src/generators/preset/files/.github/workflows/lock.yml +26 -0
- package/src/generators/preset/files/.log4brains.yml.template +5 -0
- package/src/generators/preset/files/.markdownlint.json +28 -0
- package/src/generators/preset/files/.verdaccio/config.yml.template +40 -0
- package/src/generators/preset/files/.vscode/README.md +32 -0
- package/src/generators/preset/files/.vscode/cspell.json +3 -0
- package/src/generators/preset/files/.vscode/extensions.json +14 -0
- package/src/generators/preset/files/.vscode/launch.json +37 -0
- package/src/generators/preset/files/.vscode/settings.json +316 -0
- package/src/generators/preset/files/.vscode/tasks.json +19 -0
- package/src/generators/preset/files/LICENSE +201 -0
- package/src/generators/preset/files/README.md.template +273 -0
- package/src/generators/preset/files/assets/diagrams/.gitkeep +0 -0
- package/src/generators/preset/files/assets/icons/dark/.gitkeep +0 -0
- package/src/generators/preset/files/assets/icons/light/.gitkeep +0 -0
- package/src/generators/preset/files/assets/logos/.gitkeep +0 -0
- package/src/generators/preset/files/biome.json +4 -0
- package/src/generators/preset/files/docs/api-reference/.gitkeep +0 -0
- package/src/generators/preset/files/docs/readme-templates/README.footer.md.template +94 -0
- package/src/generators/preset/files/docs/readme-templates/README.header.md.template +17 -0
- package/src/generators/preset/files/lefthook.json +6 -0
- package/src/generators/preset/files/nx.json +3 -0
- package/src/generators/preset/files/pnpm-workspace.yaml +6 -0
- package/src/generators/preset/files/socket.yaml +20 -0
- package/src/generators/preset/files/tsconfig.base.json.template +11 -0
- package/src/generators/preset/schema.d.ts +14 -0
- package/src/generators/preset/schema.json +103 -0
- package/src/generators/release-version/schema.d.ts +3 -0
- package/src/generators/release-version/schema.json +66 -0
- package/src/utils/index.js +4 -2410
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.62.20 (2024-03-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Resolved issue with missing asset files ([7be5832f](https://github.com/storm-software/storm-ops/commit/7be5832f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.62.19 (2024-03-01)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Added back additional entry points ([790e9029](https://github.com/storm-software/storm-ops/commit/790e9029))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.62.18 (2024-03-01)
|
|
2
26
|
|
|
3
27
|
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { StormConfig } from "@storm-software/config";
|
|
2
|
+
import type { TsupExecutorSchema } from "./src/executors/tsup/schema";
|
|
3
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
4
|
+
import type { Tree } from "@nx/devkit";
|
|
5
|
+
import type { Options } from "tsup";
|
|
6
|
+
import type { TsupGetConfigOptions } from "./src/types";
|
|
7
|
+
import type {
|
|
8
|
+
Program,
|
|
9
|
+
Diagnostic,
|
|
10
|
+
TransformerFactory,
|
|
11
|
+
SourceFile,
|
|
12
|
+
ParsedCommandLine
|
|
13
|
+
} from "typescript";
|
|
14
|
+
|
|
15
|
+
export interface TsupContext {
|
|
16
|
+
projectRoot: string;
|
|
17
|
+
sourceRoot: string;
|
|
18
|
+
projectName: string;
|
|
19
|
+
main: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type BuildOptions = Options;
|
|
23
|
+
export type Entry = string | string[] | Record<string, string>;
|
|
24
|
+
export type GetConfigParams = Omit<
|
|
25
|
+
TsupGetConfigOptions,
|
|
26
|
+
"entry" | "assets" | "clean" | "outputPath" | "tsConfig" | "main"
|
|
27
|
+
> & {
|
|
28
|
+
entry: Entry;
|
|
29
|
+
outDir: string;
|
|
30
|
+
projectRoot: string;
|
|
31
|
+
workspaceRoot: string;
|
|
32
|
+
tsconfig: string;
|
|
33
|
+
shims?: boolean;
|
|
34
|
+
apiReport?: boolean;
|
|
35
|
+
docModel?: boolean;
|
|
36
|
+
tsdocMetadata?: boolean;
|
|
37
|
+
dtsTsConfig: ParsedCommandLine;
|
|
38
|
+
getTransform?: (program: Program, diagnostics: Diagnostic[]) => TransformerFactory<SourceFile>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
declare function outExtension({ format }: { format?: string }): { js: string; dts: string };
|
|
42
|
+
export { outExtension };
|
|
43
|
+
|
|
44
|
+
declare function applyDefaultOptions(options: TsupExecutorSchema): TsupExecutorSchema;
|
|
45
|
+
export { applyDefaultOptions };
|
|
46
|
+
|
|
47
|
+
declare function runTsupBuild(
|
|
48
|
+
context: TsupContext,
|
|
49
|
+
config: Partial<StormConfig>,
|
|
50
|
+
options: TsupExecutorSchema
|
|
51
|
+
): Promise<void>;
|
|
52
|
+
export { runTsupBuild };
|
|
53
|
+
|
|
54
|
+
declare function tsupExecutorFn(
|
|
55
|
+
options: TsupExecutorSchema,
|
|
56
|
+
context: ExecutorContext,
|
|
57
|
+
config?: StormConfig
|
|
58
|
+
): Promise<{
|
|
59
|
+
success: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
export { tsupExecutorFn };
|
|
62
|
+
|
|
63
|
+
export interface BaseExecutorSchema extends Record<string, any> {
|
|
64
|
+
main?: string;
|
|
65
|
+
outputPath?: string;
|
|
66
|
+
tsConfig?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface WorkspaceToolHooks<TSchema = any> {
|
|
70
|
+
applyDefaultOptions?: (
|
|
71
|
+
options: Partial<TSchema>,
|
|
72
|
+
config?: StormConfig
|
|
73
|
+
) => Promise<TSchema> | TSchema;
|
|
74
|
+
preProcess?: (options: TSchema, config?: StormConfig) => Promise<void> | void;
|
|
75
|
+
postProcess?: (config?: StormConfig) => Promise<void> | void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface BaseWorkspaceToolOptions<TSchema = any> {
|
|
79
|
+
skipReadingConfig?: boolean;
|
|
80
|
+
hooks?: WorkspaceToolHooks<TSchema>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface BaseExecutorOptions<
|
|
84
|
+
TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema
|
|
85
|
+
> extends BaseWorkspaceToolOptions<TExecutorSchema> {}
|
|
86
|
+
|
|
87
|
+
export interface BaseExecutorResult {
|
|
88
|
+
error?: Error;
|
|
89
|
+
success?: boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare function withRunExecutor<TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(
|
|
93
|
+
name: string,
|
|
94
|
+
executorFn: (
|
|
95
|
+
options: TExecutorSchema,
|
|
96
|
+
context: ExecutorContext,
|
|
97
|
+
config?: StormConfig
|
|
98
|
+
) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined,
|
|
99
|
+
executorOptions: BaseExecutorOptions<TExecutorSchema>
|
|
100
|
+
): (_options: TExecutorSchema, context: ExecutorContext) => Promise<{ success: boolean }>;
|
|
101
|
+
export { withRunExecutor };
|
|
102
|
+
|
|
103
|
+
export interface BaseGeneratorSchema extends Record<string, any> {
|
|
104
|
+
main?: string;
|
|
105
|
+
outputPath?: string;
|
|
106
|
+
tsConfig?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface BaseGeneratorOptions<
|
|
110
|
+
TGeneratorSchema extends BaseGeneratorSchema = BaseGeneratorSchema
|
|
111
|
+
> extends BaseWorkspaceToolOptions<TGeneratorSchema> {}
|
|
112
|
+
|
|
113
|
+
export interface BaseGeneratorResult {
|
|
114
|
+
error?: Error;
|
|
115
|
+
success?: boolean;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare function withRunGenerator<TGeneratorSchema = any>(
|
|
119
|
+
name: string,
|
|
120
|
+
generatorFn: (
|
|
121
|
+
tree: Tree,
|
|
122
|
+
options: TGeneratorSchema,
|
|
123
|
+
config?: StormConfig
|
|
124
|
+
) => Promise<BaseGeneratorResult | null | undefined> | BaseGeneratorResult | null | undefined,
|
|
125
|
+
generatorOptions: BaseGeneratorOptions<TGeneratorSchema> = {
|
|
126
|
+
skipReadingConfig: false
|
|
127
|
+
}
|
|
128
|
+
): (tree: Tree, _options: TGeneratorSchema) => Promise<{ success: boolean }>;
|
|
129
|
+
export { withRunGenerator };
|
package/executors.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"executors": {
|
|
3
|
+
"tsup": {
|
|
4
|
+
"implementation": "./src/executors/tsup/executor",
|
|
5
|
+
"schema": "./src/executors/tsup/schema.json",
|
|
6
|
+
"description": "Run a build on the project using tsup configuration",
|
|
7
|
+
"internal": true
|
|
8
|
+
},
|
|
9
|
+
"tsup-neutral": {
|
|
10
|
+
"implementation": "./src/executors/tsup-neutral/executor",
|
|
11
|
+
"schema": "./src/executors/tsup-neutral/schema.json",
|
|
12
|
+
"description": "Runs a neutral platform TypeScript build"
|
|
13
|
+
},
|
|
14
|
+
"tsup-node": {
|
|
15
|
+
"implementation": "./src/executors/tsup-node/executor",
|
|
16
|
+
"schema": "./src/executors/tsup-node/schema.json",
|
|
17
|
+
"description": "Runs a node platform TypeScript build"
|
|
18
|
+
},
|
|
19
|
+
"tsup-browser": {
|
|
20
|
+
"implementation": "./src/executors/tsup-browser/executor",
|
|
21
|
+
"schema": "./src/executors/tsup-browser/schema.json",
|
|
22
|
+
"description": "Runs a browser platform TypeScript build"
|
|
23
|
+
},
|
|
24
|
+
"typia": {
|
|
25
|
+
"implementation": "./src/executors/typia/executor",
|
|
26
|
+
"schema": "./src/executors/typia/schema.json",
|
|
27
|
+
"description": "Run the Typia generator to create runtime type validators"
|
|
28
|
+
},
|
|
29
|
+
"npm-publish": {
|
|
30
|
+
"implementation": "./src/executors/npm-publish/executor",
|
|
31
|
+
"schema": "./src/executors/npm-publish/schema.json",
|
|
32
|
+
"description": "Publish a package to the NPM registry"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
package/generators.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"init": {
|
|
4
|
+
"factory": "./src/generators/init/init#stormInitGenerator",
|
|
5
|
+
"schema": "./src/generators/init/schema.json",
|
|
6
|
+
"description": "Initialize the `@storm-software/workspace-tools` plugin.",
|
|
7
|
+
"aliases": [
|
|
8
|
+
"ng-add"
|
|
9
|
+
],
|
|
10
|
+
"internal": true
|
|
11
|
+
},
|
|
12
|
+
"preset": {
|
|
13
|
+
"factory": "./src/generators/preset/generator",
|
|
14
|
+
"schema": "./src/generators/preset/schema.json",
|
|
15
|
+
"description": "Storm workspace preset generator",
|
|
16
|
+
"x-use-standalone-layout": true
|
|
17
|
+
},
|
|
18
|
+
"node-library": {
|
|
19
|
+
"factory": "./src/generators/node-library/generator",
|
|
20
|
+
"schema": "./src/generators/node-library/schema.json",
|
|
21
|
+
"aliases": [
|
|
22
|
+
"node-lib"
|
|
23
|
+
],
|
|
24
|
+
"x-type": "library",
|
|
25
|
+
"description": "Create a new NodeJs TypeScript library package in the Storm workspace"
|
|
26
|
+
},
|
|
27
|
+
"config-schema": {
|
|
28
|
+
"factory": "./src/generators/config-schema/generator",
|
|
29
|
+
"schema": "./src/generators/config-schema/schema.json",
|
|
30
|
+
"description": "Create a Storm JSON schema based on the workspaces project configurations"
|
|
31
|
+
},
|
|
32
|
+
"neutral-library": {
|
|
33
|
+
"factory": "./src/generators/neutral-library/generator",
|
|
34
|
+
"schema": "./src/generators/neutral-library/schema.json",
|
|
35
|
+
"description": "Create a new Neutral TypeScript library package in the Storm workspace"
|
|
36
|
+
},
|
|
37
|
+
"browser-library": {
|
|
38
|
+
"factory": "./src/generators/browser-library/generator",
|
|
39
|
+
"schema": "./src/generators/browser-library/schema.json",
|
|
40
|
+
"description": "Create a new browser TypeScript library package in the Storm workspace"
|
|
41
|
+
},
|
|
42
|
+
"design-tokens": {
|
|
43
|
+
"factory": "./src/generators/design-tokens/generator",
|
|
44
|
+
"schema": "./src/generators/design-tokens/schema.json",
|
|
45
|
+
"description": "Generate design tokens code using a Token Studio export"
|
|
46
|
+
},
|
|
47
|
+
"release-version": {
|
|
48
|
+
"factory": "./src/generators/release-version/generator",
|
|
49
|
+
"schema": "./src/generators/release-version/schema.json",
|
|
50
|
+
"description": "The release version generator used in Storm Workspaces"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|