-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
151 lines (151 loc) · 5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "slate-cloud",
"version": "11.0.0",
"description": "Add hosted images and file attachments for Slate with image resizing for use with Portive",
"keywords": [
"slate",
"upload",
"image",
"file",
"attachments",
"resize",
"plugin"
],
"license": "MIT",
"files": [
".dist/**/*"
],
"main": ".dist/cjs/src/index.js",
"module": ".dist/mjs/src/index.js",
"types": ".dist/cjs/src/index.d.ts",
"exports": {
".": {
"require": "./.dist/cjs/src/index.js",
"import": "./.dist/mjs/src/index.js",
"types": "./.dist/cjs/src/index.d.ts"
},
"./image-block": {
"require": "./.dist/cjs/src/image-block.js",
"import": "./.dist/mjs/src/image-block.js",
"types": "./.dist/cjs/src/image-block.d.ts"
},
"./attachment-block": {
"require": "./.dist/cjs/src/image-block.js",
"import": "./.dist/mjs/src/image-block.js",
"types": "./.dist/cjs/src/image-block.d.ts"
},
"./cloud-components": {
"require": "./.dist/cjs/src/cloud-components.js",
"import": "./.dist/mjs/src/cloud-components.js",
"types": "./.dist/cjs/src/cloud-components.d.ts"
}
},
"typesVersions": {
"*": {
".": [
"./.dist/cjs/src/index.d.ts"
],
"image-block": [
"./.dist/cjs/src/image-block.d.ts"
],
"attachment-block": [
"./.dist/cjs/src/image-block.d.ts"
],
"cloud-components": [
"./.dist/cjs/src/cloud-components.d.ts"
]
}
},
"devDependencies": {
"@portive/auth": "^9.0.0",
"@thesunny/assert-type": "^0.1.13",
"@types/bytes": "^3.1.1",
"@types/jest": "^27",
"@types/node": "^18.8.2",
"@types/react": "17.x",
"@types/react-dom": "17.x",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"concurrently": "^7.2",
"dotenv": "^16.0.1",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-no-secrets": "^0.8.9",
"eslint-plugin-react": "^7.27.1",
"fake-promise": "^2.5.44",
"jest": "^27",
"next": "10.x",
"prettier": "^2",
"react": "^17",
"react-dom": "^17",
"slate": "^0.82.1",
"slate-history": "^0.66.0",
"slate-react": "^0.83.1",
"ts-jest": "^27",
"ts-node": "^10.9.1",
"tsc": "^2.0.4",
"tsconfig-paths": "^4.1.0",
"type-fest": "^2.12.2",
"typescript": "^4.8.4"
},
"peerDependencies": {
"react": "^17",
"react-dom": "^17",
"slate": ">=0.66.0",
"slate-history": ">=0.66.0",
"slate-react": ">=0.66.0"
},
"dependencies": {
"@portive/api-types": "^9.0.0",
"@portive/client": "^10.0.0",
"axios": "^0.26.1",
"bytes": "^3.1.2",
"delay": "^5.0.0",
"emotion": "^10",
"eventemitter3": "^4.0.7",
"nanoid": "^3.3.2",
"p-defer": "^3.0",
"resolvable-value": "^1.0.2",
"zustand": "^3.7.2"
},
"engines": {
"node": ">=14.x",
"yarn": "1.22.x"
},
"scripts": {
"-- preset": "# Run preset from @thesunny/presets",
"preset": "ts-node --project node_modules/@thesunny/presets/tsconfig.ts-node.json node_modules/@thesunny/presets/bin/index.ts",
"--- test": "#",
"test:once": "yarn test:clearcache && jest --config=jest.config.js",
"test:watch": "jest --watch --config=jest.fast.config.js",
"test:watch:types": "yarn test:clearcache && jest --watch --config=jest.config.js",
"test:clearcache": "jest --clearCache",
"-- next": "# NextJs",
"start:local": "DOTENV=.env/local.env next dev -p 3050",
"start:staging": "DOTENV=.env/staging.env next dev -p 3050",
"start:production": "DOTENV=.env/production.env next dev -p 3050",
"-- fix": "# fix syntax",
"fix:prettier": "yarn lint:prettier --write",
"fix:eslint": "yarn lint:eslint --fix",
"-- lint": "# lint syntax",
"lint": "concurrently --raw 'yarn lint:prettier' 'yarn lint:eslint' 'yarn lint:tsc'",
"lint:prettier": "prettier --check \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
"lint:eslint": "eslint .",
"lint:tsc": "tsc --build ./ --force",
"--- npm": "# npm package scripts",
"build:npm:once": "rm -rf ./.dist/ && yarn test:once && tsc -p tsconfig.ts-build.json && echo 'Finished Building'",
"build:npm:watch": "rm -rf ./.dist/ && tsc -p tsconfig.ts-build.json --watch",
"--- build npm": "# build npm",
"build:once": "yarn build:clear && yarn test:once && concurrently 'yarn build:cjs' 'yarn build:mjs' && echo 'Finished Building'",
"build:watch": "build:clear && tsc -p tsconfig.ts-build.json --watch",
"build:clear": "rm -rf ./.dist/",
"build:cjs": "tsc -p tsconfig.build-cjs.json",
"build:mjs": "tsc -p tsconfig.build-mjs.json",
"-- publish npm": "# publish npm package",
"publish:npm": "yarn build:once && yarn publish",
"publish:npm:patch": "yarn build:npm:once && yarn version --patch && yarn publish --non-interactive || echo '\"npm publish --access=public\" to publish to npm'",
"-- open": "# open browser tab",
"open": "open -a 'google chrome' http://localhost:3050",
"-- end": "# end"
}
}