UNPKG

5.29 kBJSONView Raw
1{
2 "name": "@cotype/core",
3 "version": "1.33.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 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 "@types/url-join": "^4.0.0",
96 "@xiphe/cypress-parcel-preprocessor": "1.0.1-RC.1",
97 "codecov": "3.6.1",
98 "concurrently": "^5.0.0",
99 "cypress": "^3.4.1",
100 "cypress-file-upload": "^3.3.4",
101 "faker": "^4.1.0",
102 "get-port-cli": "^2.0.0",
103 "install": "^0.13.0",
104 "jest": "^24.9.0",
105 "mysql": "^2.17.1",
106 "pg": "^7.12.1",
107 "prettier": "^1.18.2",
108 "qs": "^6.9.0",
109 "semantic-release": "15.13.24",
110 "semantish-prerelease": "0.2.0",
111 "sharp": "0.23.1",
112 "source-map-support": "^0.5.13",
113 "sqlite3": "^4.1.0",
114 "supertest": "^4.0.2",
115 "tough-cookie": "^3.0.1",
116 "ts-jest": "^24.1.0",
117 "tslint": "^5.20.0",
118 "tslint-config-prettier": "^1.18.0",
119 "tslint-react": "^4.1.0",
120 "typescript": "^3.6.3",
121 "typescript-json-schema": "^0.40.0",
122 "wait-for-expect": "^3.0.0",
123 "with-server": "^1.0.1"
124 },
125 "jest": {
126 "preset": "ts-jest",
127 "setupFilesAfterEnv": [
128 "<rootDir>/jest.setup.ts"
129 ],
130 "globals": {
131 "ts-jest": {
132 "tsConfig": "<rootDir>/tsconfig.test.json"
133 }
134 },
135 "clearMocks": true,
136 "testMatch": [
137 "**/__tests__/**/*.test.ts",
138 "**/__tests__/**/*.test.tsx"
139 ],
140 "collectCoverageFrom": [
141 "**/*.{ts,tsx}",
142 "!**/.cache/**",
143 "!**/coverage/**",
144 "!**/cypress/**",
145 "!**/dist/**",
146 "!**/lib/**",
147 "!**/node_modules/**",
148 "!**/demo/**"
149 ],
150 "watchPathIgnorePatterns": [
151 "node_modules"
152 ],
153 "moduleNameMapper": {
154 "\\.(css)$": "<rootDir>/__mocks__/styleMock.js"
155 }
156 }
157}