Skip to content

Commit 9e23d62

Browse files
authored
Merge pull request #49 from hyperweb-io/add-pnpm-workspace
pnpm
2 parents 9719e90 + d1f13fe commit 9e23d62

File tree

20 files changed

+11379
-0
lines changed

20 files changed

+11379
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: run tests
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
container-job:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- uses: pnpm/action-setup@v4
15+
name: Install pnpm
16+
with:
17+
version: 10
18+
run_install: false
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: 'pnpm'
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Build packages
30+
run: pnpm build
31+
32+
- name: Run tests for jsonld
33+
run: cd ./packages/jsonld && pnpm test
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Dependencies
2+
node_modules/
3+
**/node_modules/
4+
5+
# Build outputs
6+
dist/
7+
build/
8+
packages/**/dist/
9+
packages/**/build/
10+
*.tsbuildinfo
11+
12+
# Logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
pnpm-debug.log*
18+
lerna-debug.log*
19+
20+
# Runtime data
21+
pids
22+
*.pid
23+
*.seed
24+
*.pid.lock
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage/
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Dependency directories
34+
jspm_packages/
35+
36+
# Optional npm cache directory
37+
.npm
38+
39+
# Optional eslint cache
40+
.eslintcache
41+
42+
# Optional REPL history
43+
.node_repl_history
44+
45+
# Output of 'npm pack'
46+
*.tgz
47+
48+
# Yarn Integrity file
49+
.yarn-integrity
50+
51+
# dotenv environment variables file
52+
.env
53+
.env.local
54+
.env.development.local
55+
.env.test.local
56+
.env.production.local
57+
58+
# parcel-bundler cache (https://parceljs.org/)
59+
.cache
60+
.parcel-cache
61+
62+
# Next.js build output
63+
.next
64+
out
65+
66+
# Nuxt.js build / generate output
67+
.nuxt
68+
dist
69+
70+
# Gatsby files
71+
.cache/
72+
public
73+
74+
# Storybook build outputs
75+
.out
76+
.storybook-out
77+
78+
# Temporary folders
79+
tmp/
80+
temp/
81+
82+
# Editor directories and files
83+
.vscode/
84+
.idea/
85+
*.swp
86+
*.swo
87+
*~
88+
89+
# OS generated files
90+
.DS_Store
91+
.DS_Store?
92+
._*
93+
.Spotlight-V100
94+
.Trashes
95+
ehthumbs.db
96+
Thumbs.db
97+
98+
# TypeScript
99+
*.tsbuildinfo
100+
101+
# Testing
102+
coverage/
103+
.nyc_output/
104+
105+
# Misc
106+
*.tgz
107+
*.tar.gz
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[
2+
{
3+
"name": "__USERFULLNAME__",
4+
"message": "Enter author full name",
5+
"required": true
6+
},
7+
{
8+
"name": "__USEREMAIL__",
9+
"message": "Enter author email",
10+
"required": true
11+
},
12+
{
13+
"name": "__MODULENAME__",
14+
"message": "Enter the workspace name",
15+
"required": true
16+
},
17+
{
18+
"name": "__MODULEDESC__",
19+
"message": "Enter the workspace description",
20+
"required": true
21+
},
22+
{
23+
"name": "__USERNAME__",
24+
"message": "Enter your github username",
25+
"required": true
26+
},
27+
{
28+
"name": "__ACCESS__",
29+
"message": "Module access?",
30+
"choices": [
31+
"public",
32+
"restricted"
33+
],
34+
"type": "list",
35+
"required": true
36+
}
37+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"[javascriptreact]": {
4+
"editor.formatOnSave": false
5+
},
6+
"[javascript]": {
7+
"editor.formatOnSave": false
8+
},
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": "explicit"
11+
},
12+
"eslint.validate": [
13+
"javascript",
14+
"javascriptreact"
15+
]
16+
}

boilerplates/pnpm-workspace/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2025 Dan Lynch <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## publishing
2+
3+
```sh
4+
pnpm dlx lerna version patch
5+
pnpm build
6+
pnpm -r publish
7+
```

boilerplates/pnpm-workspace/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# __MODULENAME__
2+
3+
__MODULEDESC__
4+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: "ts-jest",
4+
testEnvironment: "node",
5+
transform: {
6+
"^.+\\.tsx?$": [
7+
"ts-jest",
8+
{
9+
babelConfig: false,
10+
tsconfig: "tsconfig.json",
11+
},
12+
],
13+
},
14+
transformIgnorePatterns: [`/node_modules/*`],
15+
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
16+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
17+
modulePathIgnorePatterns: ["dist/*"]
18+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3+
"version": "independent",
4+
"npmClient": "pnpm"
5+
}

0 commit comments

Comments
 (0)