Skip to content

Commit

Permalink
chore: move vike-solid into /packages directory
Browse files Browse the repository at this point in the history
- Moved the `vike-solid` project from the root directory to `packages/vike-solid`.
- Updated scripts and dependencies to align with `vike-react` and ensure proper functionality.
- Verified build and test processes to confirm successful migration.
- Updated `README.md` in the root directory and `packages/vike-solid` directory to reflect the new project location.
  • Loading branch information
phonzammi committed Aug 25, 2024
1 parent 98fe78f commit f2596ed
Show file tree
Hide file tree
Showing 47 changed files with 46 additions and 135 deletions.
108 changes: 2 additions & 106 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,106 +1,2 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.idea/
/node_modules/
.pnpm-debug.log
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
### `vike-solid/ClientOnly` replaced by `vike-solid/clientOnly`

In order to have a coherent experience between all `vike-*` packages,
and to reflect Solid recommended approach, the `ClientOnly` component as been replaced
and to reflect Solid recommended approach, the `ClientOnly` component has been replaced
by a `clientOnly` helper.

```diff
Expand Down
1 change: 0 additions & 1 deletion README.md

This file was deleted.

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Vike extensions](https://vike.dev/extensions) for [SolidJs](https://www.solidjs.com).

- `vike-solid` (SolidJs integration)
- Docs: [vike.dev/vike-solid](https://vike.dev/vike-solid)
- Version history: [CHANGELOG.md](packages/vike-solid/CHANGELOG.md)
- Source code: [packages/vike-solid/](packages/vike-solid)

> [!NOTE]
> The source code is [small, simple, and highly polished](https://vike.dev/vike-solid#under-the-hood). Contributing is easy and welcome, see [CONTRIBUTING.md](CONTRIBUTING.md) to get started.
2 changes: 2 additions & 0 deletions examples/full/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/dist/
2 changes: 1 addition & 1 deletion examples/full/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"node-fetch": "^3.3.2",
"solid-js": "^1.8.21",
"vike": "^0.4.191",
"vike-solid": "link:vike-solid"
"vike-solid": "workspace:*"
},
"devDependencies": {
"typescript": "^5.5.4",
Expand Down
2 changes: 2 additions & 0 deletions examples/minimal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/dist/
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"solid-js": "^1.8.21",
"vike": "^0.4.191",
"vike-solid": "link:vike-solid"
"vike-solid": "workspace:*"
},
"devDependencies": {
"vite": "^5.4.1"
Expand Down
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"type": "module",
"scripts": {
"dev": "cd vike-solid/ && pnpm run dev",
"build": "cd vike-solid/ && pnpm run build",
"release": "cd vike-solid/ && pnpm run release",
"========= Build": "",
"build": "pnpm --recursive --filter {packages/*} run build",
"========= Dev": "",
"dev": "cd ./packages/vike-solid/ && pnpm run dev",
"========= Test": "",
"test": "pnpm run test:e2e && pnpm run test:types",
"test:e2e": "test-e2e",
Expand All @@ -13,23 +14,26 @@
"format:prettier": "git ls-files | egrep '\\.(json|js|jsx|css|ts|tsx|vue|mjs|cjs)$' | grep --invert-match package.json | xargs pnpm exec prettier --write",
"format:biome": "biome format --write .",
"format:check": "biome format . || (echo 'Fix formatting by running `$ pnpm run -w format`.' && exit 1)",
"========= Release": "",
"release": "cd ./packages/vike-solid/ && pnpm run release",
"release:minor": "cd ./packages/vike-solid/ && pnpm run release:minor",
"release:commit": "cd ./packages/vike-solid/ && pnpm run release:commit",
"========= Clean": "",
"clean": "git clean -Xdf",
"reset": "pnpm run clean && pnpm install && pnpm run build",
"reset": "git clean -Xdf && pnpm install && pnpm run build",
"========= Only allow pnpm; forbid yarn & npm": "",
"preinstall": "npx only-allow pnpm"
},
"pnpm": {
"overrides": {
"vike-solid": "link:./vike-solid/"
"vike-solid": "link:./packages/vike-solid/"
}
},
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@brillout/test-e2e": "^0.5.34",
"@brillout/test-types": "^0.1.15",
"playwright": "^1.46.1",
"prettier": "^3.3.3"
}
},
"packageManager": "[email protected]"
}
File renamed without changes.
2 changes: 2 additions & 0 deletions packages/vike-solid/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/dist/
File renamed without changes.
2 changes: 2 additions & 0 deletions packages/vike-solid/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Docs: [vike.dev/vike-solid](https://vike.dev/vike-solid)
Source code: [GitHub > vikejs/vike-solid](https://github.com/vikejs/vike-solid)
1 change: 1 addition & 0 deletions packages/vike-solid/biome.json
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-typescript": "^7.24.7",
"@biomejs/biome": "^1.8.3",
"@brillout/release-me": "^0.4.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 9 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- "vike-solid"
- "packages/*"
- "examples/*"
10 changes: 0 additions & 10 deletions vike-solid/README.md

This file was deleted.

0 comments on commit f2596ed

Please sign in to comment.