🚧 Switch to monorepo with Turbo
This commit is contained in:
20
.gitignore
vendored
20
.gitignore
vendored
@@ -1,8 +1,20 @@
|
|||||||
.DS_Store
|
|
||||||
node_modules
|
node_modules
|
||||||
/build
|
|
||||||
/.svelte-kit
|
build
|
||||||
|
.svelte-kit
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
.turbo
|
||||||
|
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
.vercel
|
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
.pnpm-debug.log*
|
||||||
|
|
||||||
|
/apps/api/uploads
|
||||||
|
|||||||
3
apps/api/extensions/hooks/robots-txt/.gitignore
vendored
Normal file
3
apps/api/extensions/hooks/robots-txt/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
1
apps/api/extensions/hooks/robots-txt/index.js
Normal file
1
apps/api/extensions/hooks/robots-txt/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"use strict";const t="\nUser-agent: Twitterbot\nAllow: /\n\nUser-agent: *\nDisallow: /\n".trim();module.exports=({init:e})=>{e("app.before",(({app:e})=>{e.get("/robots.txt",((e,n)=>{n.set("Content-Type","text/plain"),n.status(200),n.send(t)}))}))};
|
||||||
7324
apps/api/extensions/hooks/robots-txt/package-lock.json
generated
Normal file
7324
apps/api/extensions/hooks/robots-txt/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
22
apps/api/extensions/hooks/robots-txt/package.json
Normal file
22
apps/api/extensions/hooks/robots-txt/package.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "directus-extension-robots-txt",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"keywords": [
|
||||||
|
"directus",
|
||||||
|
"directus-extension",
|
||||||
|
"directus-custom-hook"
|
||||||
|
],
|
||||||
|
"directus:extension": {
|
||||||
|
"type": "hook",
|
||||||
|
"path": "dist/index.js",
|
||||||
|
"source": "src/index.js",
|
||||||
|
"host": "^9.20.4"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "directus-extension build",
|
||||||
|
"dev": "directus-extension build -w --no-minify"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@directus/extensions-sdk": "9.20.4"
|
||||||
|
}
|
||||||
|
}
|
||||||
17
apps/api/extensions/hooks/robots-txt/src/index.js
Normal file
17
apps/api/extensions/hooks/robots-txt/src/index.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
const customRobotsTxt = `
|
||||||
|
User-agent: Twitterbot
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
|
`.trim()
|
||||||
|
|
||||||
|
export default ({ init }) => {
|
||||||
|
init('app.before', ({ app }) => {
|
||||||
|
app.get('/robots.txt', (_, res) => {
|
||||||
|
res.set('Content-Type', 'text/plain')
|
||||||
|
res.status(200)
|
||||||
|
res.send(customRobotsTxt)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
15
apps/api/package.json
Normal file
15
apps/api/package.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "api",
|
||||||
|
"private": true,
|
||||||
|
"version": "2.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "directus start",
|
||||||
|
"start": "directus start"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"directus": "^9.22.1",
|
||||||
|
"pg": "^8.8.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
59
apps/website/package.json
Normal file
59
apps/website/package.json
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"name": "website",
|
||||||
|
"version": "2.0.0",
|
||||||
|
"private": true,
|
||||||
|
"author": "Félix Péault <hello@flayks.com> (https://flayks.com)",
|
||||||
|
"contributors": [
|
||||||
|
"Shelby Kay <bonjour@shelbykay.dev> (https://shelbykay.dev)"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite dev --port 4000",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
|
"lint": "eslint --ignore-path .gitignore ."
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@studio-freight/lenis": "^0.2.28",
|
||||||
|
"dayjs": "^1.11.7",
|
||||||
|
"embla-carousel": "^7.0.5",
|
||||||
|
"focus-visible": "^5.2.0",
|
||||||
|
"motion": "^10.15.3",
|
||||||
|
"ogl": "^0.0.103",
|
||||||
|
"sanitize.css": "^13.0.0",
|
||||||
|
"swell-js": "3.18.3",
|
||||||
|
"tweakpane": "^3.1.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@sveltejs/adapter-auto": "^1.0.0",
|
||||||
|
"@sveltejs/adapter-cloudflare": "^1.0.0",
|
||||||
|
"@sveltejs/adapter-node": "^1.1.0",
|
||||||
|
"@sveltejs/adapter-vercel": "^1.0.1",
|
||||||
|
"@sveltejs/kit": "^1.0.10",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
||||||
|
"@typescript-eslint/parser": "^5.48.1",
|
||||||
|
"base-64": "^1.0.0",
|
||||||
|
"browserslist": "^4.21.4",
|
||||||
|
"cssnano": "^5.1.14",
|
||||||
|
"eslint": "^8.31.0",
|
||||||
|
"eslint-plugin-svelte3": "^4.0.0",
|
||||||
|
"postcss": "^8.4.21",
|
||||||
|
"postcss-focus-visible": "^7.1.0",
|
||||||
|
"postcss-normalize": "^10.0.1",
|
||||||
|
"postcss-preset-env": "^7.8.3",
|
||||||
|
"postcss-sort-media-queries": "^4.3.0",
|
||||||
|
"sass": "^1.57.1",
|
||||||
|
"svelte": "^3.55.0",
|
||||||
|
"svelte-check": "^3.0.2",
|
||||||
|
"svelte-preprocess": "^5.0.0",
|
||||||
|
"tslib": "^2.4.1",
|
||||||
|
"typescript": "^4.9.4",
|
||||||
|
"vite": "^4.0.4"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"browserslist": [
|
||||||
|
"last 3 versions",
|
||||||
|
"> 0.3%"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user