@cubing/dev-config 0.1.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,13 @@
1
+ name: Publish GitHub release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ Publish:
10
+ permissions:
11
+ contents: write
12
+ if: startsWith(github.ref, 'refs/tags/v')
13
+ uses: cubing/actions-workflows/.github/workflows/publish-github-release.yaml@main
package/Makefile ADDED
@@ -0,0 +1,15 @@
1
+ .PHONY: setup
2
+ setup:
3
+ bun install --frozen-lockfile
4
+
5
+ .PHONY: publish
6
+ publish:
7
+ npm publish
8
+
9
+ .PHONY: clean
10
+ clean:
11
+ # no-op
12
+
13
+ .PHONY: reset
14
+ reset: clean
15
+ rm -rf ./node_modules
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # dev-config
2
+
3
+ To install dependencies:
4
+
5
+ ```bash
6
+ bun install
7
+ ```
8
+
9
+ To run:
10
+
11
+ ```bash
12
+ bun run index.ts
13
+ ```
14
+
15
+ This project was created using `bun init` in bun v1.2.11. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ console.log("Hello via Bun!");
package/package.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "@cubing/dev-config",
3
+ "version": "0.1.0"
4
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "lib": ["es2022"],
5
+ }
6
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": ["es2022", "DOM"],
4
+ "target": "es2022",
5
+ "module": "es2022",
6
+ "moduleResolution": "bundler",
7
+
8
+ "outDir": "dist/types",
9
+ "declaration": true,
10
+ "emitDeclarationOnly": true,
11
+
12
+ "verbatimModuleSyntax": true,
13
+ "strict": true,
14
+ "noFallthroughCasesInSwitch": true,
15
+ "noUnusedLocals": true,
16
+ "noUnusedParameters": true,
17
+ "noPropertyAccessFromIndexSignature": true,
18
+ "strictNullChecks": true
19
+ }
20
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ // Environment setup & latest features
4
+ "lib": ["ESNext"],
5
+ "target": "ESNext",
6
+ "module": "ESNext",
7
+ "moduleDetection": "force",
8
+ "jsx": "react-jsx",
9
+ "allowJs": true,
10
+
11
+ // Bundler mode
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "verbatimModuleSyntax": true,
15
+ "noEmit": true,
16
+
17
+ // Best practices
18
+ "strict": true,
19
+ "skipLibCheck": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedIndexedAccess": true,
22
+
23
+ // Some stricter flags (disabled by default)
24
+ "noUnusedLocals": false,
25
+ "noUnusedParameters": false,
26
+ "noPropertyAccessFromIndexSignature": false
27
+ }
28
+ }