create-kitql
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -126,3 +126,3 @@ #!/usr/bin/env node | ||
{ '.meta.gitignore': '.gitignore' }, | ||
['.meta.json'], | ||
['.meta.json', 'node_modules'], | ||
) | ||
@@ -129,0 +129,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "type": "module", | ||
"@types/node": "^20.9.2", | ||
"eslint-config-kitql": "0.0.2" | ||
"@kitql/eslint-config": "0.0.3" | ||
}, | ||
@@ -41,4 +41,4 @@ "dependencies": { | ||
"lint": "kitql-lint", | ||
"format": "kitql-lint --fix" | ||
"format": "kitql-lint --format" | ||
} | ||
} |
{ | ||
"name": "create-kitql-kit-routes", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:w": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "prettier --write .", | ||
"lint": "prettier --check . && eslint .", | ||
"test": "vitest", | ||
"test:e2e": "playwright test", | ||
"test:ci": "npm run test:e2e && npm run test" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.28.1", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.27.4", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-svelte": "^2.30.0", | ||
"prettier": "^3.0.0", | ||
"prettier-plugin-svelte": "^3.0.0", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"tslib": "^2.4.1", | ||
"typescript": "^5.0.0", | ||
"vite": "^4.5.0", | ||
"vite-plugin-kit-routes": "0.2.8", | ||
"vitest": "^0.34.0" | ||
} | ||
} | ||
"name": "create-kitql-kit-routes", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:w": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "prettier --write .", | ||
"lint": "prettier --check . && eslint .", | ||
"test": "vitest", | ||
"test:e2e": "playwright test", | ||
"test:ci": "npm run test:e2e && npm run test" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.28.1", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.27.4", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-svelte": "^2.30.0", | ||
"prettier": "^3.0.0", | ||
"prettier-plugin-svelte": "^3.0.0", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"tslib": "^2.4.1", | ||
"typescript": "^5.0.0", | ||
"vite": "^4.5.0", | ||
"vite-plugin-kit-routes": "0.2.10", | ||
"vitest": "^0.34.0" | ||
} | ||
} |
@@ -14,9 +14,8 @@ # create-kitql - Kit Routes | ||
## 📖 Read the doc | ||
## 📖 Read the doc | ||
[![](https://img.shields.io/badge/Documentation%20of-vite%20plugin%20kit%20routes-FF3E00.svg?style=flat&logo=stackblitz&logoColor=FF3E00)](https://kitql.dev/docs/tools/06_vite-plugin-kit-routes) | ||
## ⭐️ Join us | ||
## ⭐️ Join us | ||
[![GitHub Repo stars](https://img.shields.io/github/stars/jycouet/kitql?logo=github&label=KitQL&color=#4ACC31)](https://github.com/jycouet/kitql) | ||
[![GitHub Repo stars](https://img.shields.io/github/stars/jycouet/kitql?logo=github&label=KitQL&color=#4ACC31)](https://github.com/jycouet/kitql) |
{ | ||
"name": "create-kitql-sveltekit-remult", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:w": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "prettier --write .", | ||
"lint": "prettier --check . && eslint .", | ||
"test": "vitest", | ||
"test:e2e": "playwright test", | ||
"test:ci": "npm run test:e2e && npm run test" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.28.1", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.27.4", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-svelte": "^2.30.0", | ||
"pg": "^8.11.3", | ||
"prettier": "^3.0.0", | ||
"prettier-plugin-svelte": "^3.0.0", | ||
"remult": "^0.23.0", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"tslib": "^2.4.1", | ||
"typescript": "^5.0.0", | ||
"vite": "^4.5.0", | ||
"vite-plugin-kit-routes": "0.2.8", | ||
"vite-plugin-striper": "0.1.0", | ||
"vitest": "^0.34.0" | ||
} | ||
} | ||
"name": "create-kitql-sveltekit-remult", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:w": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "prettier --write .", | ||
"lint": "prettier --check . && eslint .", | ||
"test": "vitest", | ||
"test:e2e": "playwright test", | ||
"test:ci": "npm run test:e2e && npm run test" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.28.1", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.27.4", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-svelte": "^2.30.0", | ||
"pg": "^8.11.3", | ||
"prettier": "^3.0.0", | ||
"prettier-plugin-svelte": "^3.0.0", | ||
"remult": "^0.23.0", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"tslib": "^2.4.1", | ||
"typescript": "^5.0.0", | ||
"vite": "^4.5.0", | ||
"vite-plugin-kit-routes": "0.2.10", | ||
"vite-plugin-striper": "0.1.2", | ||
"vitest": "^0.34.0" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # create-kitql - Kit Routes | ||
## 📖 Read the doc | ||
## 📖 Read the doc | ||
@@ -21,8 +21,8 @@ TODO... | ||
## ⭐️ Join us | ||
## ⭐️ Join us | ||
[![GitHub Repo stars](https://img.shields.io/github/stars/jycouet/kitql?logo=github&label=KitQL&color=#4ACC31)](https://github.com/jycouet/kitql) | ||
## | ||
- [ ] Add a link to the doc | ||
@@ -33,3 +33,4 @@ - [ ] Add github CI | ||
## Info | ||
xxx.spec.ts for unit test | ||
xxx.e2e.ts for e2e test | ||
xxx.e2e.ts for e2e test |
import { remultSveltekit } from 'remult/remult-sveltekit'; | ||
// import { createPostgresDataProvider } from 'remult/postgres'; | ||
// import { DATABASE_URL } from '$env/static/private'; | ||
import { entities } from '../shared'; | ||
import { entities, controllers } from '../shared'; | ||
import { remult } from 'remult'; | ||
@@ -11,2 +11,3 @@ import { Task } from '../shared'; | ||
entities, | ||
controllers, | ||
initApi: async () => { | ||
@@ -20,4 +21,6 @@ try { | ||
} | ||
} catch (error) {} | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
} | ||
}); |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable */ | ||
/** | ||
@@ -2,0 +3,0 @@ * This file was generated by 'vite-plugin-kit-routes' |
@@ -1,5 +0,6 @@ | ||
import { Task } from './Task'; | ||
import { Task, TasksController } from './Task'; | ||
export { Task }; | ||
export { Task, TasksController }; | ||
export const entities = [Task]; | ||
export const controllers = [TasksController]; |
@@ -1,2 +0,2 @@ | ||
import { Entity, Fields } from 'remult'; | ||
import { BackendMethod, Entity, Fields, remult } from 'remult'; | ||
@@ -23,1 +23,12 @@ @Entity('tasks', { | ||
} | ||
export class TasksController { | ||
@BackendMethod({ allowed: true }) | ||
static async setAllCompleted(completed: boolean) { | ||
const taskRepo = remult.repo(Task); | ||
for (const task of await taskRepo.find()) { | ||
await taskRepo.update(task.id, { completed }); | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
674161
170
11796
3
13