Skip to content

Commit

Permalink
revert: revert migration to CSP v2 (#55)
Browse files Browse the repository at this point in the history
* Revert "fix: revert guard removal made in 9cb2744 (#54)"

This reverts commit a6a4c08.

* Revert "refactor: clean up project setup (#51)"

This reverts commit 34d03a2.

* Revert "feat: migration to SDK v2 (#40)"

This reverts commit 9cb2744.
  • Loading branch information
ndhoule authored Oct 24, 2024
1 parent a6a4c08 commit b74d771
Show file tree
Hide file tree
Showing 26 changed files with 3,334 additions and 16,883 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/main.yml

This file was deleted.

13 changes: 4 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
*.tsbuildinfo
.DS_Store
.cache/
.eslintcache
.netlify/
.ntli/
.vscode/
dev-model.gql
node_modules/
# Local Netlify folder
.netlify
node_modules
.ntli
76 changes: 0 additions & 76 deletions details.md

This file was deleted.

75 changes: 0 additions & 75 deletions eslint.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions extension.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config:
slug: dynamic-csp
18 changes: 10 additions & 8 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[build]
command = "netlify-extension build"
publish = ".ntli/site/static"
command="ntli build -a"
functions=".ntli/site/netlify/functions"
publish=".ntli/site/static"

[dev]
command = "netlify-extension dev"
[[headers]]
for="/ui/*"
[headers.values]
Access-Control-Allow-Origin="*"
Access-Control-Allow-Headers="*"
Access-Control-Allow-Methods="*"

[functions]
directory = "src/endpoints"

[[plugins]]
package = "@netlify/netlify-plugin-netlify-extension"
node_bundler = "esbuild"
52 changes: 6 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,14 @@
"version": "0.0.1",
"main": "src/index.ts",
"type": "module",
"packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4",
"scripts": {
"build": "netlify-extension build",
"clean": "rm -rf .netlify/ .ntli/ node_modules/.vite *.tsbuildinfo",
"dev": "netlify-extension dev",
"lint": "eslint --cache",
"lint:fix": "eslint --cache --fix",
"test": "echo 'No tests, exiting.'",
"typecheck": "tsc --build",
"typecheck:watch": "tsc --build --watch"
"build": "ntli build -a",
"dev": "ntli dev -a",
"preview": "ntli preview"
},
"dependencies": {
"@netlify/build": "^29.54.2",
"@netlify/functions": "^2.8.1",
"@netlify/plugin-csp-nonce": "^1.2.9",
"@netlify/sdk": "^2.4.4",
"@tanstack/react-query": "^5.55.4",
"@trpc/client": "11.0.0-rc.477",
"@trpc/react-query": "11.0.0-rc.477",
"@trpc/server": "11.0.0-rc.477",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@netlify/netlify-plugin-netlify-extension": "^1.0.3",
"@tsconfig/node18": "^18.2.4",
"@tsconfig/recommended": "^1.0.7",
"@tsconfig/strictest": "^2.0.5",
"@tsconfig/vite-react": "^3.0.2",
"@types/eslint-plugin-tailwindcss": "^3.17.0",
"@types/eslint__js": "^8.42.3",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/eslint-plugin": "^1.1.7",
"autoprefixer": "^10.4.20",
"eslint": "^9.11.0",
"eslint-config-flat-gitignore": "^0.3.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-tailwindcss": "^3.17.4",
"globals": "^15.11.0",
"netlify-cli": "^17.36.2",
"prettier": "3.3.3",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4",
"typescript-eslint": "^8.7.0",
"vite": "^5.4.3"
"@netlify/sdk": "^1.5.0",
"typescript": "^5.1.6"
}
}
}
Loading

0 comments on commit b74d771

Please sign in to comment.