This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
108 lines (108 loc) · 3.57 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "@donew/mentoring-ui",
"version": "0.0.0",
"description": "The frontend for the DoNew Mentoring API",
"author": {
"name": "Vedant K",
"url": "https://github.com/gamemaker1"
},
"type": "module",
"scripts": {
"clean:app": "del $(find source/ -type f -name *.js) source/styles/main.css",
"clean:test": "del coverage/ tests/assets/ .nyc_output/ *.log",
"clean": "run-p clean:*",
"start": "cd tests/mocks/api && pnpm firebase emulators:exec --ui --project donew-mentoring-api-sandbox \"cd ../../.. && serve source/\"",
"develop": "run-p watch start",
"format:code": "xo --fix source/**/*.ts",
"format:rest": "prettier --write --ignore-path config/prettier/ignore .",
"format": "run-s format:*",
"lint:code": "xo source/**/*.ts",
"lint:rest": "prettier --check --ignore-path config/prettier/ignore .",
"lint": "run-s lint:*",
"build:app": "esbuild $(esbuild-config) source/hooks/index.ts $(find source/app/ -type f -name *.ts)",
"build:css": "tailwindcss --input source/styles/tailwind.css --output source/styles/main.css --config config/tailwind/config.cjs",
"compile": "run-s clean build:*",
"watch:build": "run-p 'build:* --watch'",
"watch:tests": "start-test :3000 cypress:open",
"watch": "run-p watch:*",
"test:tsc": "tsc --project config/tsconfig.json",
"test:app": "start-test :3000 cypress:run",
"test": "run-s compile lint test:*",
"cypress:run": "cypress run --config-file config/cypress/config.json",
"cypress:open": "cypress open --config-file config/cypress/config.json",
"deploy:prd": "firebase deploy --only hosting --project donew-mentoring-api",
"deploy:dev": "firebase deploy --only hosting --project donew-mentoring-api-sandbox",
"deploy": "run-s deploy:*",
"hooks:husky": "husky install config/husky",
"hooks:api": "git submodule update --init tests/mocks/api && cd tests/mocks/api && git fetch && git checkout trunk && git rebase && pnpm install --ignore-scripts && pnpm compile && cd ../../..",
"hooks": "run-s hooks:*",
"prepare": "bash -c \"[[ -z \\\"$FIREBASE_DEPLOY\\\" ]] && pnpm run-s compile hooks || true\""
},
"engines": {
"node": "16",
"pnpm": "7"
},
"dependencies": {
"ky": "0.30.0",
"nanoid": "3.3.4",
"select-dom": "7.1.1",
"umbrellajs": "3.3.1"
},
"devDependencies": {
"@faker-js/faker": "6.1.2",
"commitizen": "4.2.4",
"cypress": "9.6.0",
"cz-conventional-changelog": "3.3.0",
"del-cli": "4.0.1",
"esbuild": "0.14.38",
"esbuild-config": "0.2.0",
"firebase-tools": "10.7.2",
"husky": "7.0.4",
"lint-staged": "12.4.1",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"prettier": "2.6.2",
"serve": "13.0.2",
"start-server-and-test": "1.14.0",
"tailwindcss": "3.0.24",
"typescript": "4.6.4",
"xo": "0.48.0"
},
"esbuild": {
"bundle": true,
"target": "esnext",
"format": "esm",
"tsconfig": "config/tsconfig.json",
"outdir": "source/"
},
"xo": {
"prettier": true,
"rules": {
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-confusing-void-expression": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"import/no-unassigned-import": 0,
"no-await-in-loop": 0,
"capitalized-comments": 0
},
"parserOptions": {
"project": "config/tsconfig.json"
}
},
"prettier": {
"semi": false,
"useTabs": true,
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "es5",
"proseWrap": "always",
"endOfLine": "lf",
"printWidth": 90
},
"lint-staged": {
"source/**/*.ts": "xo --fix",
"**/*.{md,json,yaml,html}": "prettier --write"
}
}