1 | {
|
2 | "name": "@cotype/core",
|
3 | "version": "1.32.1",
|
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 bundle",
|
23 | "build:test-client": "export NODE_ENV=test; export REACT_APP_TEST_ENV=test; npm run build:client",
|
24 | "watch:client": "npm --prefix client run watch",
|
25 | "dev": "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": "npm run build:test-client && with-server --run=testserver:ci 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 | "@cypress/webpack-preprocessor": "^4.1.0",
|
43 | "@slite/quill-delta-markdown": "0.0.8",
|
44 | "@testing-library/jest-dom": "^4.1.1",
|
45 | "bcryptjs": "2.4.3",
|
46 | "chalk": "2.4.2",
|
47 | "change-case": "^3.1.0",
|
48 | "cookie-session": "^1.3.3",
|
49 | "crypto-random-string": "^3.0.1",
|
50 | "express": "^4.17.1",
|
51 | "express-promise-router": "^3.0.3",
|
52 | "file-type": "^12.3.0",
|
53 | "fs-extra": "^8.1.0",
|
54 | "glob-promise": "^3.4.0",
|
55 | "got": "^9.6.0",
|
56 | "graphql": "^14.5.8",
|
57 | "hasha": "^5.1.0",
|
58 | "http-proxy-middleware": "latest",
|
59 | "image-size": "^0.8.3",
|
60 | "knex": "^0.19.5",
|
61 | "lodash": "^4.17.15",
|
62 | "mdi-json": "^1.0.0",
|
63 | "mudder": "^1.0.9",
|
64 | "multer": "^1.4.2",
|
65 | "openapi3-ts": "^1.3.0",
|
66 | "pg-monitor": "^1.3.1",
|
67 | "pluralize": "^8.0.0",
|
68 | "probe-image-size": "^5.0.0",
|
69 | "quill": "^1.3.7",
|
70 | "quill-delta-to-html": "^0.10.13",
|
71 | "swagger-ui-dist": "^3.23.11",
|
72 | "temp-write": "^4.0.0",
|
73 | "tempy": "^0.3.0",
|
74 | "ts-loader": "^6.2.0",
|
75 | "webpack": "^4.41.0"
|
76 | },
|
77 | "devDependencies": {
|
78 | "@cotype/local-thumbnail-provider": "0.0.2",
|
79 | "@types/bcryptjs": "2.4.2",
|
80 | "@types/cookie": "^0.3.3",
|
81 | "@types/cookie-session": "^2.0.37",
|
82 | "@types/faker": "^4.1.6",
|
83 | "@types/fs-extra": "^8.0.0",
|
84 | "@types/got": "^9.6.7",
|
85 | "@types/graphql": "^14.5.0",
|
86 | "@types/http-proxy-middleware": "^0.19.3",
|
87 | "@types/jest": "^24.0.19",
|
88 | "@types/lodash": "^4.14.142",
|
89 | "@types/multer": "^1.3.10",
|
90 | "@types/pluralize": "0.0.29",
|
91 | "@types/qs": "^6.5.3",
|
92 | "@types/supertest": "^2.0.8",
|
93 | "@types/swagger-ui-dist": "^3.0.3",
|
94 | "@types/tough-cookie": "^2.3.5",
|
95 | "@xiphe/cypress-parcel-preprocessor": "1.0.1-RC.1",
|
96 | "codecov": "3.6.1",
|
97 | "concurrently": "^5.0.0",
|
98 | "cypress": "^3.4.1",
|
99 | "cypress-file-upload": "^3.3.4",
|
100 | "faker": "^4.1.0",
|
101 | "get-port-cli": "^2.0.0",
|
102 | "install": "^0.13.0",
|
103 | "jest": "^24.9.0",
|
104 | "mysql": "^2.17.1",
|
105 | "pg": "^7.12.1",
|
106 | "prettier": "^1.18.2",
|
107 | "qs": "^6.9.0",
|
108 | "semantic-release": "15.13.24",
|
109 | "semantish-prerelease": "0.2.0",
|
110 | "sharp": "0.23.1",
|
111 | "source-map-support": "^0.5.13",
|
112 | "sqlite3": "^4.1.0",
|
113 | "supertest": "^4.0.2",
|
114 | "tough-cookie": "^3.0.1",
|
115 | "ts-jest": "^24.1.0",
|
116 | "tslint": "^5.20.0",
|
117 | "tslint-config-prettier": "^1.18.0",
|
118 | "tslint-react": "^4.1.0",
|
119 | "typescript": "^3.6.3",
|
120 | "typescript-json-schema": "^0.40.0",
|
121 | "wait-for-expect": "^3.0.0",
|
122 | "with-server": "^1.0.1"
|
123 | },
|
124 | "jest": {
|
125 | "preset": "ts-jest",
|
126 | "setupFilesAfterEnv": [
|
127 | "<rootDir>/jest.setup.ts"
|
128 | ],
|
129 | "globals": {
|
130 | "ts-jest": {
|
131 | "tsConfig": "<rootDir>/tsconfig.test.json"
|
132 | }
|
133 | },
|
134 | "clearMocks": true,
|
135 | "testMatch": [
|
136 | "**/__tests__/**/*.test.ts",
|
137 | "**/__tests__/**/*.test.tsx"
|
138 | ],
|
139 | "collectCoverageFrom": [
|
140 | "**/*.{ts,tsx}",
|
141 | "!**/.cache/**",
|
142 | "!**/coverage/**",
|
143 | "!**/cypress/**",
|
144 | "!**/dist/**",
|
145 | "!**/lib/**",
|
146 | "!**/node_modules/**",
|
147 | "!**/demo/**"
|
148 | ],
|
149 | "watchPathIgnorePatterns": [
|
150 | "node_modules"
|
151 | ],
|
152 | "moduleNameMapper": {
|
153 | "\\.(css)$": "<rootDir>/__mocks__/styleMock.js"
|
154 | }
|
155 | }
|
156 | }
|