create-kitql
Advanced tools
Comparing version 0.0.7 to 0.1.0
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.0.7", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "type": "module", | ||
"@clack/prompts": "^0.7.0", | ||
"@kitql/helpers": "0.8.5", | ||
"@kitql/helpers": "*", | ||
"commander": "^11.1.0" | ||
@@ -29,0 +29,0 @@ }, |
# ➕ create kitql | ||
_Part of [KitQL](https://github.com/jycouet/kitql#kitql), A set of tools to speedrun WebApps!_ | ||
[![](https://img.shields.io/npm/v/create-kitql?color=&logo=npm)](https://www.npmjs.com/package/create-kitql) | ||
[![](https://img.shields.io/npm/dm/create-kitql?&logo=npm)](https://www.npmjs.com/package/create-kitql) | ||
@@ -22,1 +23,3 @@ ## 📖 Read the doc | ||
💡 _[KitQL](https://www.kitql.dev/docs) itself is not a library, it's "nothing" but a collection of standalone libraries._ | ||
{ | ||
"name": "create-kitql-kit-routes", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"test": "npm run test:integration && npm run test:unit", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"lint": "prettier --check . && eslint .", | ||
"format": "prettier --write .", | ||
"test:integration": "playwright test", | ||
"test:unit": "vitest" | ||
}, | ||
"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.1", | ||
"vitest": "^0.34.0" | ||
}, | ||
"type": "module" | ||
} | ||
"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" | ||
} | ||
} |
@@ -8,6 +8,5 @@ import type { PlaywrightTestConfig } from '@playwright/test'; | ||
}, | ||
testDir: 'tests', | ||
testMatch: /(.+\.)?(test|spec)\.[jt]s/ | ||
testMatch: /(.+\.)?(e2e)\.[jt]s/ | ||
}; | ||
export default config; |
@@ -29,4 +29,4 @@ import { sveltekit } from '@sveltejs/kit/vite'; | ||
test: { | ||
include: ['src/**/*.{test,spec}.{js,ts}'] | ||
include: ['src/**/*.spec.{js,ts}'] | ||
} | ||
}); |
{ | ||
"name": "create-kitql-sveltekit-remult", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"test": "vitest", | ||
"test:e2e": "playwright test", | ||
"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 ." | ||
}, | ||
"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.22.11", | ||
"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.1", | ||
"vitest": "^0.34.0" | ||
}, | ||
"type": "module" | ||
} | ||
"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" | ||
} | ||
} |
@@ -28,5 +28,5 @@ /** | ||
const LINKS = { | ||
twitter_jycouet: `https:/twitter.com/jycouet`, | ||
github_kitql: `https:/github.com/jycouet/kitql`, | ||
github_remult: `https:/github.com/jycouet/kitql` | ||
twitter_jycouet: `https://twitter.com/jycouet`, | ||
github_kitql: `https://github.com/jycouet/kitql`, | ||
github_remult: `https://github.com/jycouet/kitql` | ||
}; | ||
@@ -50,2 +50,19 @@ | ||
/** | ||
* get the current search params | ||
* | ||
* Could be use like this: | ||
* ``` | ||
* route("/cities", { page: 2 }, { ...currentSP() }) | ||
* ``` | ||
*/ | ||
export const currentSp = () => { | ||
const params = new URLSearchParams(window.location.search); | ||
const record: Record<string, string> = {}; | ||
for (const [key, value] of params.entries()) { | ||
record[key] = value; | ||
} | ||
return record; | ||
}; | ||
// route function helpers | ||
@@ -52,0 +69,0 @@ type NonFunctionKeys<T> = { [K in keyof T]: T[K] extends Function ? never : K }[keyof T]; |
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { defineConfig } from 'vitest/config'; | ||
import { kitRoutes } from 'vite-plugin-kit-routes'; | ||
import { striper } from 'vite-plugin-striper'; | ||
@@ -8,2 +9,3 @@ export default defineConfig({ | ||
sveltekit(), | ||
striper({ decorators: ['BackendMethod'] }), | ||
kitRoutes({ | ||
@@ -19,4 +21,4 @@ post_update_run: 'npm exec prettier ./src/lib/ROUTES.ts -- -w', | ||
test: { | ||
include: ['src/**/*.{spec}.{js,ts}'] | ||
include: ['src/**/*.spec.{js,ts}'] | ||
} | ||
}); |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
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
69962
714
25
2
+ Added@kitql/helpers@0.8.10(transitive)
+ Addedesm-env@1.2.1(transitive)
- Removed@kitql/helpers@0.8.5(transitive)
Updated@kitql/helpers@*