Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-kitql

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-kitql - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

templates/kit-routes/.svelte-kit/ambient.d.ts

2

bin.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc