Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
feat: add specific vite-powered frameworks (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jun 14, 2022
1 parent df60796 commit fa305fe
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/frameworks/hydrogen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "hydrogen",
"name": "Hydrogen",
"category": "static_site_generator",
"detect": {
"npmDependencies": ["@shopify/hydrogen"],
"excludedNpmDependencies": [],
"configFiles": []
},
"dev": {
"command": "vite",
"port": 3000,
"pollingStrategies": [{ "name": "TCP" }]
},
"build": {
"command": "npm run build",
"directory": "dist/client"
},
"env": {},
"plugins": []
}
3 changes: 3 additions & 0 deletions src/frameworks/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const FRAMEWORK_NAMES = [
'gridsome',
'hexo',
'hugo',
'hydrogen',
'jekyll',
'middleman',
'next-nx',
Expand All @@ -19,9 +20,11 @@ export const FRAMEWORK_NAMES = [
'nuxt',
'nuxt3',
'phenomic',
'qwik',
'react-static',
'redwoodjs',
'remix',
'solid-start',
'stencil',
'vuepress',
'assemble',
Expand Down
21 changes: 21 additions & 0 deletions src/frameworks/qwik.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "qwik",
"name": "Qwik",
"category": "static_site_generator",
"detect": {
"npmDependencies": ["@builder.io/qwik"],
"excludedNpmDependencies": [],
"configFiles": []
},
"dev": {
"command": "vite",
"port": 3000,
"pollingStrategies": [{ "name": "TCP" }]
},
"build": {
"command": "npm run build",
"directory": "dist"
},
"env": {},
"plugins": []
}
21 changes: 21 additions & 0 deletions src/frameworks/solid-start.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "solid-start",
"name": "Solid Start",
"category": "static_site_generator",
"detect": {
"npmDependencies": ["solid-start"],
"excludedNpmDependencies": [],
"configFiles": []
},
"dev": {
"command": "solid-start dev",
"port": 3000,
"pollingStrategies": [{ "name": "TCP" }]
},
"build": {
"command": "solid-start build",
"directory": "netlify"
},
"env": {},
"plugins": []
}
2 changes: 1 addition & 1 deletion src/frameworks/vite.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"category": "build_tool",
"detect": {
"npmDependencies": ["vite"],
"excludedNpmDependencies": [],
"excludedNpmDependencies": ["@shopify/hydrogen", "@builderio/qwik", "solid-start"],
"configFiles": []
},
"dev": {
Expand Down

0 comments on commit fa305fe

Please sign in to comment.