Skip to content

Commit 7eaee3d

Browse files
refactor repo structure and update pnpm (#53)
* refactor repo strucutre * fix: update script filters to use studiocms.dev * feat: add initial README.md for StudioCMS repository
1 parent 61b4559 commit 7eaee3d

File tree

99 files changed

+170
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+170
-93
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.14.0
1+
22.19.0

.prototools

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
biome = "1.9.4"
2-
node = "20.14.0"
3-
pnpm = "9.5.0"
4-
5-
[plugins]
6-
biome = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/biome/plugin.toml"
1+
node = "22.19.0"
2+
pnpm = "10.17.0"

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:22.19 AS runtime
2+
WORKDIR /app
3+
4+
COPY . .
5+
6+
RUN npm install --global corepack@latest
7+
RUN corepack enable pnpm
8+
9+
RUN pnpm ci:install
10+
11+
RUN pnpm build
12+
13+
ENV HOST=0.0.0.0
14+
ENV PORT=4321
15+
EXPOSE 4321
16+
CMD node ./www/dist/server/entry.mjs

README.md

Lines changed: 2 additions & 47 deletions

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

package.json

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,21 @@
11
{
2-
"name": "studiocms.dev",
3-
"private": true,
4-
"type": "module",
5-
"version": "0.0.1",
6-
"scripts": {
7-
"dev": "astro dev --remote",
8-
"build": "astro build --remote",
9-
"preview": "astro preview",
10-
"start": "node ./dist/server/entry.mjs",
11-
"astro": "astro",
12-
"ci:install": "pnpm install --frozen-lockfile",
13-
"lint": "biome check .",
14-
"lint:fix": "biome check --write ."
15-
},
16-
"dependencies": {
17-
"@astrojs/db": "^0.17.2",
18-
"@astrojs/markdown-remark": "^6.3.6",
19-
"@astrojs/node": "^9.4.3",
20-
"@biomejs/biome": "1.9.4",
21-
"@fontsource-variable/onest": "^5.1.1",
22-
"@studiocms/cfetch": "^0.1.6",
23-
"@types/node": "^22.13.5",
24-
"astro": "^5.13.7",
25-
"pathe": "2.0.3",
26-
"sharp": "^0.33.5",
27-
"studiocms": "0.1.0-beta.26",
28-
"tslib": "^2.8.1",
29-
"vite": "^6.3.5",
30-
"@studiocms/md": "^0.1.0-beta.26"
31-
},
32-
"peerDependencies": {
33-
"@studiocms/ui": "^1.0.0-beta.0"
34-
},
35-
"packageManager": "[email protected]"
36-
}
2+
"name": "root",
3+
"private": true,
4+
"version": "0.0.1",
5+
"packageManager": "[email protected]",
6+
"engines": {
7+
"node": "22.19.0"
8+
},
9+
"scripts": {
10+
"ci:install": "pnpm install --frozen-lockfile",
11+
"dev": "pnpm --filter studiocms.dev dev",
12+
"build": "pnpm --filter studiocms.dev build",
13+
"preview": "pnpm --filter studiocms.dev preview",
14+
"start": "pnpm --filter studiocms.dev start",
15+
"lint": "biome check .",
16+
"lint:fix": "biome check --write ."
17+
},
18+
"dependencies": {
19+
"@biomejs/biome": "1.9.4"
20+
}
21+
}

pnpm-lock.yaml

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
packages:
2+
- 'www'
3+
4+
minimumReleaseAge: 4320
5+
6+
minimumReleaseAgeExclude:
7+
- studiocms
8+
- '@studiocms/*'
9+
- '@withstudiocms/*'
10+
11+
onlyBuiltDependencies:
12+
- '@biomejs/biome'
13+
- '@parcel/watcher'
14+
- esbuild
15+
- msgpackr-extract
16+
- sharp

www/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/

www/README.md

Lines changed: 48 additions & 0 deletions

0 commit comments

Comments
 (0)