UNPKG

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