Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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
.graphqlrc.yaml
at the root of your project# Typical File for extension: vscode-graphql & CodeGen!
projects:
default:
schema:
- ./src/lib/modules/**/typedefs/*.graphql
documents:
- ./src/lib/modules/**/graphql/*.gql
extensions:
endpoints:
default:
url: 'http://localhost:3777/api/graphql'
codegen:
generates:
./src/lib/modules/:
preset: graphql-modules
presetConfig:
baseTypesPath: ../graphql/_kitql/graphqlTypes.ts
importBaseTypesFrom: $lib/graphql/_kitql/graphqlTypes
filename: _kitql/moduleTypes.ts
plugins:
- typescript
- typescript-resolvers
- typescript-operations
- typed-document-node
config:
contextType: $lib/graphql/yogaApp#IYogaContext
./src/lib/graphql/_kitql/graphqlStores.ts:
plugins:
- '@kitql/graphql-codegen'
config:
importBaseTypesFrom: $lib/graphql/_kitql/graphqlTypes
config:
useTypeImports: true
package.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 3178", // 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;
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 21 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.