set up ast-grep and dbmate and postgres
This commit is contained in:
0
.ast-grep/rule-tests/.gitkeep
Normal file
0
.ast-grep/rule-tests/.gitkeep
Normal file
0
.ast-grep/rules/.gitkeep
Normal file
0
.ast-grep/rules/.gitkeep
Normal file
0
.ast-grep/utils/.gitkeep
Normal file
0
.ast-grep/utils/.gitkeep
Normal 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": {
|
||||||
|
|||||||
11
devenv.nix
11
devenv.nix
@@ -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
6
sgconfig.yml
Normal 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/
|
||||||
Reference in New Issue
Block a user