Skip to content

Commit a0250c9

Browse files
authored
chore: scaffold (#1)
1 parent 84339e1 commit a0250c9

File tree

12 files changed

+2045
-0
lines changed

12 files changed

+2045
-0
lines changed

.envrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
use flake
2+
dotenv_if_exists
3+
PATH_add ./node_modules/.bin

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,8 @@ dist
134134
.yarn/build-state.yml
135135
.yarn/install-state.gz
136136
.pnp.*
137+
138+
# Nix
139+
.direnv/
140+
result
141+
result-*

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"quoteProps": "as-needed",
3+
"trailingComma": "all",
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": true,
7+
"bracketSpacing": true,
8+
"useTabs": false,
9+
"arrowParens": "always"
10+
}

eslint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.strict,
7+
...tseslint.configs.stylistic,
8+
{
9+
languageOptions: {
10+
parserOptions: {
11+
project: "./tsconfig.json",
12+
},
13+
},
14+
},
15+
{
16+
ignores: ["dist/**/*"],
17+
files: ["**/*.ts"],
18+
},
19+
);

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, flake-utils }:
8+
let
9+
mkDevShell = system:
10+
let
11+
pkgs = nixpkgs.legacyPackages.${system};
12+
in
13+
pkgs.mkShell {
14+
buildInputs = with pkgs; [
15+
nodejs_20
16+
nodePackages.typescript
17+
nodePackages.typescript-language-server
18+
nodePackages.prettier
19+
nodePackages.pnpm
20+
];
21+
22+
shellHook = ''
23+
echo "Node.js: $(node --version)"
24+
echo "pnpm: $(pnpm --version)"
25+
'';
26+
};
27+
in
28+
(flake-utils.lib.eachDefaultSystem (system: {
29+
devShells.default = mkDevShell system;
30+
})) // {
31+
devShells.aarch64-darwin.default = mkDevShell "aarch64-darwin";
32+
devShells.x86_64-darwin.default = mkDevShell "x86_64-darwin";
33+
devShells.aarch64-linux.default = mkDevShell "aarch64-linux";
34+
devShells.x86_64-linux.default = mkDevShell "x86_64-linux";
35+
};
36+
}

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "@replit/graphql-codegen-persisted-queries",
3+
"version": "0.0.1",
4+
"description": "GraphQL codegen plugin to generate persisted query list manifests",
5+
"main": "index.ts",
6+
"scripts": {
7+
"build": "tsup"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/replit/graphql-codegen-persisted-queries.git"
12+
},
13+
"keywords": [
14+
"GraphQL",
15+
"Codegen",
16+
"PQL",
17+
"Persisted",
18+
"Query"
19+
],
20+
"author": "darsh.patel@repl.it",
21+
"license": "MIT",
22+
"bugs": {
23+
"url": "https://github.com/replit/graphql-codegen-persisted-queries/issues"
24+
},
25+
"homepage": "https://github.com/replit/graphql-codegen-persisted-queries#readme",
26+
"packageManager": "pnpm@8.15.5",
27+
"devDependencies": {
28+
"@stylistic/eslint-plugin-js": "^4.2.0",
29+
"@stylistic/eslint-plugin-ts": "^4.2.0",
30+
"@typescript-eslint/eslint-plugin": "^8.26.1",
31+
"@typescript-eslint/parser": "^8.26.1",
32+
"eslint": "^9.22.0",
33+
"eslint-config-prettier": "^10.1.1",
34+
"eslint-plugin-prettier": "^5.2.3",
35+
"prettier": "^3.5.3",
36+
"tsup": "^8.4.0"
37+
}
38+
}

0 commit comments

Comments
 (0)