-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
165 lines (165 loc) · 7.24 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "@prezly/content-renderer-react-js",
"version": "0.39.2",
"description": "Render Prezly Content Format documents with React.js",
"license": "MIT",
"main": "build/cjs/index.cjs",
"module": "build/esm/index.mjs",
"types": "build/types/index.d.ts",
"style": "build/styles/styles.css",
"exports": {
".": {
"types": "./build/types/index.d.ts",
"import": "./build/esm/index.mjs",
"default": "./build/cjs/index.cjs"
},
"./styles.css": "./build/styles/styles.css"
},
"files": [
"build"
],
"repository": {
"type": "git",
"url": "git+https://github.com/prezly/content-renderer-react-js.git"
},
"bugs": {
"url": "https://github.com/prezly/content-renderer-react-js/issues"
},
"homepage": "https://github.com/prezly/content-renderer-react-js#readme",
"scripts": {
"start": "npm run build:dev && concurrently --names=' watch ,sandbox' 'npm run watch' 'npm run sandbox'",
"sandbox": "NODE_ENV=development webpack serve --hot",
"build": "NODE_ENV=production npm run build:all",
"build:dev": "NODE_ENV=development npm run build:all",
"build:all": "npm run build:types && npm run build:cjs && npm run build:esm && npm run build:sass",
"build:types": "tsc --project ./tsconfig.build.json",
"build:cjs": "gulp build:cjs",
"build:esm": "gulp build:esm",
"build:sass": "gulp build:sass",
"watch": "NODE_ENV=development concurrently --kill-others --names 'd.ts, cjs, esm,sass' 'npm run watch:types' 'npm run watch:cjs' 'npm run watch:esm' 'npm run watch:sass'",
"watch:types": "tsc-fancy --preserveConsoleOutput --project ./tsconfig.build.json --watch --pretty",
"watch:cjs": "gulp watch:cjs",
"watch:esm": "gulp watch:esm",
"watch:sass": "gulp watch:sass",
"clean": "npm run clean:build && npm run clean:package-lock.json && npm run clean:node_modules",
"clean:build": "rimraf build/",
"clean:node_modules": "rimraf node_modules/",
"clean:package-lock.json": "rimraf package-lock.json",
"check": "npm run prettier && npm run test",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"lint-styles": "npx stylelint **.scss",
"lint-styles:fix": "npm run lint-styles -- --fix",
"prettier": "prettier --check './**/*.(js|ts|tsx|scss)'",
"prettier:fix": "npm run prettier -- --write --no-list-different",
"release": "np --test-script='release:check'",
"release:preview": "npm run release -- --any-branch --tag preview --no-release-draft",
"release:check": "npm run clean && npm install && npm run build && npm run check",
"test:with-all-react-versions": "npm run test:with-react-18",
"test:with-react-18": "REACT_VERSION=18 npm run test:with-react-version",
"test:with-react-version": "npm run react:uninstall && npm run react:install-version && npm run clean:build && npm run build && npm run test",
"test": "npm run test:unit && npm run test:build",
"test:build": "npm run test:types && npm run test:cjs && npm run test:esm && npm run test:styles",
"test:types": "ls build/types/index.d.ts || (echo 'Missing build/types/index.d.ts file.' && false)",
"test:styles": "ls build/styles/styles.css || (echo 'Missing build/styles/styles.css file.' && false)",
"test:cjs": "node build/cjs/index.cjs",
"test:esm": "node build/esm/index.mjs",
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest --no-cache",
"test:watch": "npm run test:unit -- --watch",
"react:install-version": "npm install react@$REACT_VERSION react-dom@$REACT_VERSION react-test-renderer@$REACT_VERSION @types/react@$REACT_VERSION @types/react-dom@$REACT_VERSION @types/react-test-renderer@$REACT_VERSION",
"react:uninstall": "npm remove react react-dom react-test-renderer @types/react @types/react-dom @types/react-test-renderer",
"loki": "loki",
"loki:update": "loki update",
"loki:static-build": "loki --reactUri file:./storybook-static",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
},
"devEngines": {
"node": ">=16",
"npm": ">=8"
},
"peerDependencies": {
"react": "18",
"react-dom": "18"
},
"dependencies": {
"@prezly/linear-partition": "^1.0.2",
"@prezly/sdk": "^21.6.0",
"@prezly/story-content-format": "^0.66.0",
"@prezly/uploadcare": "^2.4.4",
"@react-hookz/web": "^12.0.0",
"classnames": "^2.2.6",
"player.js": "^0.1.0",
"react-modal": "^3.15.1",
"resize-observer-polyfill": "^1.5.1",
"shave": "^2.5.10",
"social-links": "^1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.18.9",
"@babel/core": "^7.18.9",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/preset-env": "^7.18.9",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@dr.pogodin/babel-preset-svgr": "^1.4.1",
"@loki/create-async-callback": "^0.30.2",
"@loki/is-loki-running": "^0.30.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@prezly/eslint-config": "^5.4.2",
"@storybook/addon-actions": "^6.5.9",
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-interactions": "^6.5.9",
"@storybook/addon-links": "^6.5.9",
"@storybook/builder-webpack5": "^6.5.9",
"@storybook/manager-webpack5": "^6.5.9",
"@storybook/react": "^6.5.9",
"@storybook/testing-library": "^0.0.13",
"@types/jest": "^27.5.0",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react-modal": "^3.10.6",
"@types/react-test-renderer": "^18.0.0",
"@types/vinyl": "^2.0.6",
"autoprefixer": "^10.4.7",
"babel-loader": "^8.2.5",
"babel-plugin-add-import-extension": "^1.6.0",
"babel-plugin-transform-remove-imports": "^1.7.0",
"branch-pipe": "^1.0.1",
"concurrently": "^6.5.1",
"css-loader": "^6.7.1",
"eslint": "^8.39.0",
"eslint-plugin-prettier": "^5.1.3",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-concat": "^2.6.1",
"gulp-filter": "^7.0.0",
"gulp-map": "^0.0.2",
"gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
"gulp-sass": "^5.0.0",
"html-webpack-plugin": "^5.5.0",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"loki": "^0.30.3",
"np": "^7.6.2",
"postcss": "^8.4.14",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-refresh": "^0.14.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"style-loader": "^3.3.1",
"stylelint": "^16.2.1",
"ts-jest": "^28.0.2",
"tsc-fancy": "^1.1.2",
"typescript": "^4.4.4",
"url-polyfill": "^1.1.12",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3"
}
}