@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,9 @@
1
+ import { TsupNeutralExecutorSchema } from "../tsup-neutral/schema";
2
+ import { Platform } from "../tsup/schema";
3
+
4
+ export type TsupBrowserExecutorSchema = Omit<
5
+ TsupNeutralExecutorSchema,
6
+ "platform"
7
+ > & {
8
+ platform?: Platform;
9
+ };
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "tsup-browser",
4
+ "extends": "../tsup-browser/schema.json",
5
+ "version": 2,
6
+ "title": "Browser TypeScript Builder",
7
+ "description": "Runs a browser platform TypeScript build",
8
+ "type": "object",
9
+ "properties": {},
10
+ "required": []
11
+ }
@@ -0,0 +1,58 @@
1
+ <!-- START header -->
2
+ <!-- END header -->
3
+
4
+ # <%= name %>
5
+
6
+ <%= description %>
7
+
8
+ <!-- START doctoc -->
9
+ <!-- END doctoc -->
10
+
11
+ ## Installing
12
+
13
+ Using [pnpm](http://pnpm.io):
14
+
15
+ ```bash
16
+ pnpm add -D <%= namespace %>/<%= name %>
17
+ ```
18
+
19
+ <details>
20
+ <summary>Using npm</summary>
21
+
22
+ ```bash
23
+ npm install -D <%= namespace %>/<%= name %>
24
+ ```
25
+
26
+ </details>
27
+
28
+ <details>
29
+ <summary>Using yarn</summary>
30
+
31
+ ```bash
32
+ yarn add -D <%= namespace %>/<%= name %>
33
+ ```
34
+
35
+ </details>
36
+
37
+ ## Reduced Package Size
38
+
39
+ This project uses [tsup](https://tsup.egoist.dev/) to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects.
40
+
41
+ ## Development
42
+
43
+ This project is built using [Nx](https://nx.dev). As a result, many of the usual commands are available to assist in development.
44
+
45
+ ### Building
46
+
47
+ Run `nx build <%= name %>` to build the library.
48
+
49
+ ### Running unit tests
50
+
51
+ Run `nx test <%= name %>` to execute the unit tests via [Jest](https://jestjs.io).
52
+
53
+ ### Linting
54
+
55
+ Run `nx lint <%= name %>` to run [ESLint](https://eslint.org/) on the package.
56
+
57
+ <!-- START footer -->
58
+ <!-- END footer -->
@@ -0,0 +1,3 @@
1
+ import { getJestConfig } from "@storm-software/testing-tools";
2
+
3
+ export default getJestConfig("<%= directory %>", true, "<%= name %>");
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The <%= name %> library used by Storm Software for building TypeScript applications.
3
+ *
4
+ * @remarks
5
+ * <%= description %>
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+
10
+ const variable = "<%= name %>";
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
+ "types": ["jest"]
6
+ },
7
+ "include": [
8
+ "jest.config.ts",
9
+ "src/**/*.test.ts",
10
+ "src/**/*.spec.ts",
11
+ "src/**/*.d.ts"
12
+ ]
13
+ }