mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-06-25 12:31:45 +02:00
125 lines
2.7 KiB
TypeScript
125 lines
2.7 KiB
TypeScript
export const FrameworkDetectors = [
|
|
{
|
|
framework: {
|
|
name: 'astro',
|
|
dist: 'dist',
|
|
static: ['public', 'src/assets'],
|
|
build: 'npm run build',
|
|
server: 'http://localhost:4321'
|
|
},
|
|
requiredFiles: ['astro.config.mjs'],
|
|
requiredDependencies: ['astro'],
|
|
commands: {
|
|
start: 'npm run dev'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'gatsby',
|
|
dist: 'public',
|
|
static: 'static',
|
|
build: 'gatsby build',
|
|
server: 'http://localhost:8000'
|
|
},
|
|
requiredFiles: ['gatsby-config.js'],
|
|
requiredDependencies: ['gatsby'],
|
|
commands: {
|
|
start: 'npx gatsby develop'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'hugo',
|
|
dist: 'public',
|
|
static: 'static',
|
|
build: 'hugo',
|
|
server: 'http://localhost:1313'
|
|
},
|
|
requiredFiles: ['hugo.toml', 'hugo.yaml', 'hugo.yml', 'hugo.json', 'config.toml', 'config.yaml', 'config.yml'],
|
|
commands: {
|
|
start: 'hugo server -D'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'next',
|
|
dist: '.next',
|
|
static: 'public',
|
|
build: 'next build',
|
|
server: 'http://localhost:3000'
|
|
},
|
|
requiredFiles: ['next.config.js'],
|
|
requiredDependencies: ['next'],
|
|
commands: {
|
|
start: 'npx next dev'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'nuxt',
|
|
dist: 'dist',
|
|
static: 'static',
|
|
build: 'nuxt',
|
|
server: 'http://localhost:3000'
|
|
},
|
|
requiredFiles: ['nuxt.config.js'],
|
|
requiredDependencies: ['nuxt'],
|
|
commands: {
|
|
start: 'npx nuxt dev'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'jekyll',
|
|
dist: '_site',
|
|
static: 'assets',
|
|
build: 'bundle exec jekyll build',
|
|
server: 'http://localhost:4000'
|
|
},
|
|
requiredFiles: ['Gemfile'],
|
|
requiredDependencies: ['jekyll'],
|
|
commands: {
|
|
start: 'bundle exec jekyll serve --livereload'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'docusaurus',
|
|
dist: 'build',
|
|
static: 'static',
|
|
build: 'npx docusaurus build',
|
|
server: 'http://localhost:3000'
|
|
},
|
|
requiredFiles: ['docusaurus.config.js'],
|
|
requiredDependencies: ['@docusaurus/core'],
|
|
commands: {
|
|
start: 'npx docusaurus start'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: '11ty',
|
|
dist: '_site',
|
|
build: 'npx @11ty/eleventy',
|
|
server: 'http://localhost:8080'
|
|
},
|
|
requiredDependencies: ['@11ty/eleventy'],
|
|
commands: {
|
|
start: 'npx @11ty/eleventy --serve'
|
|
}
|
|
},
|
|
{
|
|
framework: {
|
|
name: 'hexo',
|
|
dist: 'public',
|
|
build: 'npx hexo-cli generate',
|
|
server: 'http://localhost:4000'
|
|
},
|
|
requiredFiles: ['_config.js'],
|
|
requiredDependencies: ['hexo'],
|
|
commands: {
|
|
start: 'npx hexo-cli server'
|
|
}
|
|
}
|
|
];
|