Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@kitql/all-in
Advanced tools
[KitQL](https://github.com/jycouet/kitql#kitql), _A set of tools, helping **you** building efficient apps in a fast way._
KitQL, A set of tools, helping you building efficient apps in a fast way.
(step 0, if it's not done, create a sveltekit project with everything true
🙃)
yarn add @kitql/all-in graphql
.graphqlrc.yaml
at the root of your projectpackage.json
dev port
to 3777
to fit the previous config filegen
script to launch the codegen"scripts": {
"prepare": "yarn gen", // will run the codegen after yarn install
"dev": "svelte-kit dev --port 3777", // adapt the port to your needs
"gen": "graphql-codegen --config ./.graphqlrc.yaml", // run codegen with the right config file
}
In your svelte.config.js
add a watchAndRun with the following configuration:
import watchAndRun from './vite-plugin-watch-and-run.js';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
vite: {
plugins: [
watchAndRun([
{
watch: '**/*.(gql|graphql)',
run: 'yarn gen'
}
])
]
}
}
};
export default config;
Like this file for example: demo1/src/lib/graphql/GetAllContinents.gql
If you were not running your app, run yarn gen
manually
<!-- For SSR -->
<script context="module" lang="ts">
export async function load({ fetch }) {
await GetAllContinentsQuery({ fetch }); // Filling GetAllContinentsQueryStore
return {};
}
</script>
<!-- Or in a svelte component -->
<script lang="ts">
await GetAllContinentsQuery(); // Filling GetAllContinentsQueryStore
</script>
<!-- Using the store where you want in the app -->
<ul>
{#each $GetAllContinentsQueryStore.data?.continents as continent}
<li>
<p>{continent?.name}</p>
</li>
{/each}
</ul>
7️⃣8️⃣9️⃣
yarn dev
🥳🥳🥳🥳🥳 (ok not yet, you need a bit more steps to create your server, client, etc, I will add it later to the README, even steps orders will change!).
FAQs
[KitQL](https://github.com/jycouet/kitql#kitql), _A set of tools, helping **you** building efficient apps in a fast way._
The npm package @kitql/all-in receives a total of 46 weekly downloads. As such, @kitql/all-in popularity was classified as not popular.
We found that @kitql/all-in demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.