UNPKG

5.37 kBJSONView Raw
1{
2 "name": "@cotype/core",
3 "version": "1.37.0",
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 i",
14 "install:demo": "npm --prefix demo i",
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": "^5.7.0",
45 "bcryptjs": "2.4.3",
46 "chalk": "4.0.0",
47 "change-case": "^4.1.1",
48 "cookie-session": "^1.4.0",
49 "crypto-random-string": "^3.2.0",
50 "express": "^4.17.1",
51 "express-promise-router": "^3.0.3",
52 "file-type": "^14.3.0",
53 "fs-extra": "^9.0.0",
54 "glob-promise": "^3.4.0",
55 "got": "^11.1.1",
56 "graphql": "^15.0.0",
57 "hasha": "^5.2.0",
58 "http-proxy-middleware": "1.0.3",
59 "image-size": "^0.8.3",
60 "knex": "^0.21.1",
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.4.0",
67 "pluralize": "^8.0.0",
68 "probe-image-size": "^5.0.0",
69 "quill": "^1.3.7",
70 "quill-delta-to-html": "^0.11.0",
71 "swagger-ui-dist": "^3.25.2",
72 "temp-write": "^4.0.0",
73 "tempy": "^0.5.0",
74 "title-case": "^3.0.2",
75 "ts-loader": "^7.0.3",
76 "url-join": "^4.0.1",
77 "webpack": "^4.43.0"
78 },
79 "devDependencies": {
80 "@cotype/local-thumbnail-provider": "0.0.2",
81 "@types/bcryptjs": "2.4.2",
82 "@types/cookie": "^0.3.3",
83 "@types/cookie-session": "^2.0.39",
84 "@types/faker": "^4.1.11",
85 "@types/fs-extra": "^8.1.0",
86 "@types/got": "^9.6.10",
87 "@types/graphql": "^14.5.0",
88 "@types/http-proxy-middleware": "^0.19.3",
89 "@types/jest": "^25.2.1",
90 "@types/lodash": "^4.14.150",
91 "@types/multer": "^1.4.3",
92 "@types/pluralize": "0.0.29",
93 "@types/qs": "^6.9.2",
94 "@types/supertest": "^2.0.9",
95 "@types/swagger-ui-dist": "^3.0.5",
96 "@types/tough-cookie": "^4.0.0",
97 "@types/url-join": "^4.0.0",
98 "@xiphe/cypress-parcel-preprocessor": "1.0.1-RC.1",
99 "codecov": "3.6.5",
100 "concurrently": "^5.2.0",
101 "cypress": "^3.8.3",
102 "cypress-file-upload": "^3.3.4",
103 "decorate-gh-pr": "1.2.3",
104 "faker": "^4.1.0",
105 "get-port-cli": "^2.0.0",
106 "install": "^0.13.0",
107 "jest": "^26.0.1",
108 "mysql": "^2.18.1",
109 "pg": "^8.0.3",
110 "prettier": "^2.0.5",
111 "qs": "^6.9.4",
112 "semantic-release": "17.0.7",
113 "semantish-prerelease": "3.1.1",
114 "sharp": "0.23.1",
115 "source-map-support": "^0.5.19",
116 "sqlite3": "^4.2.0",
117 "supertest": "^4.0.2",
118 "tough-cookie": "^4.0.0",
119 "ts-jest": "^25.5.0",
120 "tslint": "^6.1.2",
121 "tslint-config-prettier": "^1.18.0",
122 "tslint-react": "^5.0.0",
123 "typescript": "^3.8.3",
124 "typescript-json-schema": "^0.42.0",
125 "wait-for-expect": "^3.0.2",
126 "with-server": "^1.1.0"
127 },
128 "jest": {
129 "preset": "ts-jest",
130 "setupFilesAfterEnv": [
131 "<rootDir>/jest.setup.ts"
132 ],
133 "globals": {
134 "ts-jest": {
135 "tsConfig": "<rootDir>/tsconfig.test.json"
136 }
137 },
138 "clearMocks": true,
139 "testMatch": [
140 "**/__tests__/**/*.test.ts",
141 "**/__tests__/**/*.test.tsx"
142 ],
143 "collectCoverageFrom": [
144 "**/*.{ts,tsx}",
145 "!**/.cache/**",
146 "!**/coverage/**",
147 "!**/cypress/**",
148 "!**/dist/**",
149 "!**/lib/**",
150 "!**/node_modules/**",
151 "!**/demo/**"
152 ],
153 "watchPathIgnorePatterns": [
154 "node_modules"
155 ],
156 "moduleNameMapper": {
157 "\\.(css)$": "<rootDir>/__mocks__/styleMock.js"
158 }
159 }
160}