@storm-software/workspace-tools 1.28.0 → 1.29.0

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,22 @@
1
+ import { LibraryGeneratorSchema } from "@nx/js/src/utils/schema";
2
+
3
+ export type BrowserLibraryGeneratorSchema = Omit<
4
+ LibraryGeneratorSchema,
5
+ | "js"
6
+ | "pascalCaseFiles"
7
+ | "skipFormat"
8
+ | "skipTsConfig"
9
+ | "skipPackageJson"
10
+ | "includeBabelRc"
11
+ | "unitTestRunner"
12
+ | "linter"
13
+ | "testEnvironment"
14
+ | "config"
15
+ | "compiler"
16
+ | "bundler"
17
+ | "skipTypeCheck"
18
+ | "minimal"
19
+ > & {
20
+ name: string;
21
+ description: string;
22
+ };
@@ -0,0 +1,82 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "browser-library",
4
+ "title": "Add browser Library",
5
+ "description": "Create a new browser TypeScript library package in the Storm workspace",
6
+ "type": "object",
7
+ "properties": {
8
+ "name": {
9
+ "type": "string",
10
+ "description": "A name for the library.",
11
+ "$default": {
12
+ "$source": "argv",
13
+ "index": 0
14
+ },
15
+ "x-prompt": "What name would you like to use for the library?",
16
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$"
17
+ },
18
+ "description": {
19
+ "type": "string",
20
+ "description": "The library used by Storm Software for building TypeScript applications.",
21
+ "$default": {
22
+ "$source": "argv",
23
+ "index": 2
24
+ },
25
+ "x-prompt": "Provide description to use as a summary of the library?"
26
+ },
27
+ "directory": {
28
+ "type": "string",
29
+ "description": "A directory where the lib is placed.",
30
+ "x-priority": "important"
31
+ },
32
+ "projectNameAndRootFormat": {
33
+ "description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
34
+ "type": "string",
35
+ "enum": ["as-provided", "derived"]
36
+ },
37
+ "tags": {
38
+ "type": "string",
39
+ "description": "Add tags to the library (used for linting)."
40
+ },
41
+ "strict": {
42
+ "type": "boolean",
43
+ "description": "Whether to enable tsconfig strict mode or not.",
44
+ "default": true
45
+ },
46
+ "publishable": {
47
+ "type": "boolean",
48
+ "default": false,
49
+ "description": "Generate a publishable library.",
50
+ "x-priority": "important"
51
+ },
52
+ "importPath": {
53
+ "type": "string",
54
+ "description": "The library name used to import it, like @storm-software/my-awesome-lib. Required for publishable library.",
55
+ "x-priority": "important"
56
+ },
57
+ "buildable": {
58
+ "type": "boolean",
59
+ "default": true,
60
+ "description": "Generate a buildable library.",
61
+ "x-deprecated": "Use the `bundler` option for greater control (swc, tsc, rollup, vite, esbuild, none)."
62
+ },
63
+ "setParserOptionsProject": {
64
+ "type": "boolean",
65
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
66
+ "default": false
67
+ },
68
+ "rootProject": {
69
+ "type": "boolean",
70
+ "default": false,
71
+ "description": "Is the current project the root project in the workspace."
72
+ }
73
+ },
74
+ "required": [
75
+ "name",
76
+ "directory",
77
+ "projectNameAndRootFormat",
78
+ "publishable",
79
+ "importPath",
80
+ "buildable"
81
+ ]
82
+ }