set up ast-grep and dbmate and postgres

This commit is contained in:
RevIQ
2026-01-08 21:51:47 -05:00
parent 82f39e0335
commit 322155b4a1
6 changed files with 19 additions and 2 deletions

View File

0
.ast-grep/rules/.gitkeep Normal file
View File

0
.ast-grep/utils/.gitkeep Normal file
View File

View File

@@ -3,10 +3,10 @@
"devenv": { "devenv": {
"locked": { "locked": {
"dir": "src/modules", "dir": "src/modules",
"lastModified": 1767628994, "lastModified": 1767897709,
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "5a0a51a2c1b02b78d93ae33952a7ab8fc5120deb", "rev": "3d10e576f12d762e617d20a51aa1e56ade1cbfcd",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -5,6 +5,8 @@
nixfmt-rfc-style nixfmt-rfc-style
biome biome
git git
dbmate
ast-grep
]; ];
dotenv.enable = true; dotenv.enable = true;
@@ -14,6 +16,15 @@
bun.enable = true; bun.enable = true;
}; };
services.postgres = {
enable = true;
initialDatabases = [{ name = "reviq-dashboard"; }];
initialScript = ''
CREATE USER reviq WITH PASSWORD 'reviq' SUPERUSER;
GRANT ALL PRIVILEGES ON DATABASE "reviq-dashboard" TO reviq;
'';
};
processes = { processes = {
"dev-publisher-dashboard".exec = "bun run --cwd apps/publisher-dashboard dev"; "dev-publisher-dashboard".exec = "bun run --cwd apps/publisher-dashboard dev";
"build-watch".exec = "bun run build:watch:packages"; "build-watch".exec = "bun run build:watch:packages";

6
sgconfig.yml Normal file
View File

@@ -0,0 +1,6 @@
ruleDirs:
- /Users/igm/proj/reviq/publisher-dashboard/.ast-grep/rules/
testConfigs:
- testDir: /Users/igm/proj/reviq/publisher-dashboard/.ast-grep/rule-tests/
utilDirs:
- /Users/igm/proj/reviq/publisher-dashboard/.ast-grep/utils/