UNPKG

5.04 kBJSONView Raw
1{
2 "name": "@cotype/core",
3 "version": "1.20.7",
4 "main": "lib/",
5 "typings": "lib/index.d.ts",
6 "bin": {
7 "cotype_create_seeds": "./scripts/createSeeds.js"
8 },
9 "scripts": {
10 "clean": "rm -rf ./dist && rm -rf ./lib",
11 "reinit": "rm -rf node_modules; rm -rf demo/node_modules; rm demo/dev_db; rm -rf client/node-modules; npm i",
12 "prepare": "concurrently npm:install:client npm:install:demo npm:schema",
13 "install:client": "npm --prefix client ci",
14 "install:demo": "npm --prefix demo ci",
15 "lint": "tslint '**/*.{ts,tsx}' --exclude '**/node_modules/**/*' --exclude '**/lib/**'",
16 "test": "jest",
17 "schema": "npm run schema:models & npm run schema:navigation",
18 "schema:models": "typescript-json-schema --aliasRefs --noExtraProps ./tsconfig.json ModelsJson > ./models.schema.json",
19 "schema:navigation": "typescript-json-schema --topRef --aliasRefs ./tsconfig.json NavigationJson > ./navigation.schema.json",
20 "build": "rm -rf dist && NODE_ENV=production concurrently npm:build:client npm:build:server npm:schema",
21 "build:server": "tsc",
22 "build:client": "npm --prefix client run build && npm --prefix client run bundle",
23 "build:test-client": "export NODE_ENV=test; npm run build:client",
24 "watch:client": "npm --prefix client run watch",
25 "dev": "NODE_ENV=development npm --prefix demo run dev",
26 "prod": "NODE_ENV=production npm --prefix demo start",
27 "start": "npm run dev",
28 "testserver": "npm --prefix demo run testserver",
29 "testserver:ci": "npm --prefix demo run testserver:ci",
30 "e2e": "npm run build:test-client && with-server --run=testserver:ci npm run cypress -- -- ",
31 "cypress": "cypress run --config=baseUrl=$SERVER_URL",
32 "e2e:dev": "with-server --run=testserver npm run cypress:dev",
33 "cypress:dev": "cypress open --config=baseUrl=$SERVER_URL",
34 "create-test-seeds": "./scripts/createSeeds.js ./cypress/support/knexfile.js"
35 },
36 "repository": {
37 "type": "git",
38 "url": "https://github.com/cotype/core.git"
39 },
40 "license": "SEE LICENSE IN LICENSE.md",
41 "dependencies": {
42 "@slite/quill-delta-markdown": "0.0.8",
43 "@types/bcryptjs": "2.4.2",
44 "@types/cookie": "^0.3.2",
45 "@types/cookie-session": "^2.0.36",
46 "@types/crypto-random-string": "^2.0.0",
47 "@types/fs-extra": "^8.0.0",
48 "@types/got": "^9.6.2",
49 "@types/graphql": "^14.2.3",
50 "@types/image-size": "^0.7.0",
51 "@types/knex": "^0.16.1",
52 "@types/lodash": "^4.14.132",
53 "@types/multer": "^1.3.7",
54 "@types/pluralize": "0.0.29",
55 "@types/swagger-ui-dist": "^3.0.0",
56 "@types/temp-write": "^4.0.0",
57 "@types/tempy": "^0.3.0",
58 "bcryptjs": "2.4.3",
59 "chalk": "2.4.2",
60 "change-case": "^3.1.0",
61 "cookie-session": "^1.3.3",
62 "crypto-random-string": "^3.0.1",
63 "express": "^4.17.1",
64 "express-promise-router": "^3.0.3",
65 "fs-extra": "^8.1.0",
66 "glob-promise": "^3.4.0",
67 "got": "^9.6.0",
68 "graphql": "^14.1.1",
69 "hasha": "^5.0.0",
70 "image-size": "^0.7.2",
71 "knex": "^0.16.3",
72 "lodash": "^4.17.15",
73 "mdi-json": "^1.0.0",
74 "mudder": "^1.0.4",
75 "multer": "^1.4.2",
76 "openapi3-ts": "^1.3.0",
77 "pg-monitor": "^1.0.0",
78 "pluralize": "^8.0.0",
79 "quill": "^1.3.6",
80 "quill-delta-to-html": "^0.10.12",
81 "swagger-ui-dist": "^3.21.0",
82 "temp-write": "^4.0.0",
83 "tempy": "^0.3.0"
84 },
85 "devDependencies": {
86 "@cotype/local-thumbnail-provider": "0.0.2",
87 "@types/faker": "^4.1.5",
88 "@types/jest": "^24.0.11",
89 "@types/qs": "^6.5.2",
90 "@types/supertest": "^2.0.7",
91 "@types/tough-cookie": "^2.3.5",
92 "@xiphe/cypress-parcel-preprocessor": "1.0.1-RC.1",
93 "codecov": "3.5.0",
94 "concurrently": "^4.0.0",
95 "cypress": "^3.3.2",
96 "cypress-file-upload": "^3.3.2",
97 "faker": "^4.1.0",
98 "get-port-cli": "^2.0.0",
99 "install": "^0.13.0",
100 "jest": "^24.5.0",
101 "mysql": "^2.16.0",
102 "parcel-bundler": "^1.12.2",
103 "pg": "^7.9.0",
104 "prettier": "^1.18.2",
105 "qs": "^6.6.0",
106 "semantic-release": "15.13.17",
107 "semantish-prerelease": "0.2.0",
108 "sharp": "0.22.1",
109 "source-map-support": "^0.5.11",
110 "sqlite3": "^4.0.6",
111 "supertest": "^4.0.2",
112 "tough-cookie": "^3.0.1",
113 "ts-jest": "^24.0.0",
114 "tslint": "^5.14.0",
115 "tslint-config-prettier": "^1.18.0",
116 "tslint-react": "^4.0.0",
117 "typescript": "^3.5.2",
118 "typescript-json-schema": "^0.38.0",
119 "with-server": "^1.0.0"
120 },
121 "jest": {
122 "preset": "ts-jest",
123 "setupFilesAfterEnv": [
124 "<rootDir>/jest.setup.ts"
125 ],
126 "globals": {
127 "ts-jest": {
128 "tsConfig": "<rootDir>/tsconfig.test.json"
129 }
130 },
131 "clearMocks": true,
132 "testMatch": [
133 "**/__tests__/**/*.test.ts",
134 "**/__tests__/**/*.test.tsx"
135 ],
136 "collectCoverageFrom": [
137 "**/*.{ts,tsx}",
138 "!**/.cache/**",
139 "!**/coverage/**",
140 "!**/cypress/**",
141 "!**/dist/**",
142 "!**/lib/**",
143 "!**/node_modules/**",
144 "!**/demo/**"
145 ],
146 "watchPathIgnorePatterns": [
147 "node_modules"
148 ]
149 }
150}