Skip to content

Commit 42fa1e8

Browse files
committed
feat: init project
1 parent 9e657b1 commit 42fa1e8

7 files changed

+1249
-0
lines changed

.env

Whitespace-only changes.

.env.devenv

Whitespace-only changes.

Makefile

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.DEFAULT_GOAL := help
2+
SHELL := /bin/bash
3+
UNAME_S := $(shell uname -s)
4+
SEMVER3 := $(shell cat .version)
5+
6+
7+
ifndef ENV_FILE
8+
ENV_FILE := .env
9+
export ENV_FILE
10+
endif
11+
12+
ifndef DEVENV_FILE
13+
DEVENV_FILE := .env.devenv
14+
export DEVENV_FILE
15+
endif
16+
17+
18+
db: ## start postgresql and mongodb local
19+
docker compose up -d
20+
21+
db-down: ## stop postgresql and mongodb local
22+
docker compose down
23+
24+
db-destroy: ## destroy and delete the local `.data` folder
25+
rm -rf .data/
26+
27+
db-gen: ## generate db schema
28+
pnpm run db:gen
29+
install:
30+
pnpm install && make build
31+
32+
build:
33+
pnpm build:dst:pre && pnpm build:sr
34+
35+
web:
36+
cd packages/datasheet && pnpm run dev
37+
38+
server:
39+
cd packages/server && pnpm run start:dev
40+
41+
server2:
42+
source scripts/export-env.sh $$ENV_FILE;\
43+
source scripts/export-env.sh $$DEVENV_FILE;\
44+
pnpm run start:room-server
45+

common-tsconfig.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"moduleResolution": "node",
5+
"esModuleInterop": true,
6+
"allowSyntheticDefaultImports": true,
7+
"target": "es6",
8+
"declaration": true,
9+
"declarationMap": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"strictNullChecks": true,
12+
"noImplicitReturns": true,
13+
"noImplicitThis": true,
14+
"noImplicitAny": false,
15+
"suppressImplicitAnyIndexErrors": true,
16+
"noUnusedLocals": true,
17+
"downlevelIteration": true,
18+
"experimentalDecorators": true,
19+
"emitDecoratorMetadata": true,
20+
"resolveJsonModule": true,
21+
"skipLibCheck": true
22+
}
23+
}

package.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Collagrid",
3+
"version": "1.0.0",
4+
"description": "The best Database Grid component in the world, supporting React, Vue, and Angular. It also provides backend services.",
5+
"scripts": {
6+
"test": "echo \"Error: no test specified\" && exit 0"
7+
},
8+
"engines": {
9+
"node": "16.15.0",
10+
"pnpm": "^8"
11+
},
12+
"devDependencies": {
13+
"nx": "16.10.0",
14+
"rimraf": "^5.0.7",
15+
"ts-node": "^10.9.1",
16+
"cross-env": "^7.0.3"
17+
},
18+
"keywords": [],
19+
"author": "",
20+
"license": "ISC"
21+
}

0 commit comments

Comments
 (0)