forked from xdan/jodit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
157 lines (157 loc) · 6.66 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
{
"name": "jodit",
"version": "3.23.3",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
"scripts": {
"start": "node server.js --port=2000",
"clean": "rm -rf ./node_modules/.cache && rm -rf build/*",
"lint": "npm run type:check && eslint ./src/ ./test/ && stylelint ./src/**/**.less",
"coverage": "npx type-coverage ./src --detail --ignore-files 'build/**' --ignore-files 'test/**' --ignore-files 'examples/**'",
"newversion": "npm run lint && npm run clean && npm test && npm version patch --no-git-tag-version && npm run build && npm run newversion:git && npm publish ./ && rm -rf types/",
"newversion:git": "git add --all && git commit -m \"New version $npm_package_version. Read more https://github.com/xdan/jodit/blob/master/CHANGELOG.md \" && git tag $npm_package_version && git push --tags origin HEAD:master",
"build": "npm run clean && npm run type:build && npm run build:es5 && npm run build:es2018 && npm run build:es2018:en && npm run build:es5:no-uglify && npm run build:es2018:no-uglify && npm run build:es2018:en:no-uglify",
"build:es5": "webpack --progress --mode production --env es=es5 --env uglify=true --env stat=true",
"build:es5:no-uglify": "webpack --progress --mode production --env es=es5 --env uglify=false",
"build:es2018": "webpack --progress --mode production --env es=es2018 --env uglify=true",
"build:es2018:en": "webpack --progress --mode production --env es=es2018 --env excludeLangs=true --env uglify=true",
"build:es2018:no-uglify": "webpack --progress --mode production --env es=es2018 --env uglify=false",
"build:es2018:en:no-uglify": "webpack --progress --mode production --env es=es2018 --env excludeLangs=true --env uglify=false",
"docker:screenshots:build": "docker build -t jodit-screenshots -f test/screenshots/Dockerfile .",
"docker:screenshots:run": "docker run -v $(pwd)/build:/app/build/ -v $(pwd)/test:/app/test/ -v $(pwd)/src:/app/src/ jodit-screenshots ./node_modules/.bin/mocha ./src/**/**.screenshot.js",
"docker:screenshots:run:es2018": "docker run -v $(pwd)/build:/app/build/ -v $(pwd)/test:/app/test/ -v $(pwd)/src:/app/src/ jodit-screenshots ./node_modules/.bin/mocha ./src/**/**.screenshot.js --build=es2018",
"docker:screenshots:update": "docker run -v $(pwd)/build:/app/build/ -v $(pwd)/test:/app/test/ -e SNAPSHOT_UPDATE=true -v $(pwd)/src:/app/src/ jodit-screenshots ./node_modules/.bin/mocha ./src/**/**.screenshot.js",
"test": "npm run test:find && npm run clean && webpack --progress --mode production --env es=es2018 --env uglify=false --env isTest=true && npm run test:only-run",
"test:find": "node ./build-system/utils/find-tests.js",
"test:debug": "karma start --browsers Chrome karma.conf.js --single-run false",
"test:chrome": "karma start --browsers Chrome karma.conf.js",
"test:only-run": "karma start --browsers FirefoxHeadless karma.conf.js",
"jodit": "cd ../jodit-react/ && npm update && npm run newversion && cd ../jodit-pro && npm run newversion && cd ../jodit-joomla && npm run newversion",
"pretty": "npx prettier --write ./src/*.{ts,less} ./src/**/*.{ts,less} ./src/**/**/*.{ts,less} ./src/**/**/**/*.{ts,less} ./src/**/**/**/**/*.{ts,less}",
"fix": "npx eslint ./src/ ./test/ --fix && npm run pretty",
"type:check": "tsc --noemit --noErrorTruncation",
"type:build": "rm -rf types && mkdir -p ./types && cp -r ./src/types ./types && tsc --project . --declaration --declarationDir types --outDir types --emitDeclarationOnly --removeComments false && npm run type:remove-styles && npm run type:resolve-alias",
"type:resolve-alias": "tsc-alias -p tsconfig.json ./types",
"type:remove-styles": "replace \"import .+.(less|svg)';\" '' ./types -r --include='*.d.ts'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xdan/jodit.git"
},
"keywords": [
"wysiwyg",
"wysiwyg editor",
"wysiwyg html editor",
"rich text",
"rich editor",
"rich text editor",
"html",
"text",
"editor",
"contenteditable",
"javascript",
"typescript",
"vanillajs",
"jodit"
],
"author": "Chupurnov <[email protected]> (https://xdsoft.net/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/xdan/jodit/issues"
},
"homepage": "https://xdsoft.net/jodit/",
"dependencies": {
"autobind-decorator": "^2.4.0",
"core-js": "^3.26.0"
},
"devDependencies": {
"@types/ace": "^0.0.48",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"autoprefixer": "^10.4.13",
"axios": "^1.1.3",
"chai": "^4.3.6",
"classlist-polyfill": "^1.2.0",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
"cssnano-preset-advanced": "^5.3.9",
"es6-promise": "^4.2.8",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-tsdoc": "^0.2.17",
"expect-mocha-image-snapshot": "^2.0.14",
"express": "^4.18.2",
"file-loader": "^6.2.0",
"glob": "^8.0.3",
"husky": "^8.0.1",
"karma": "^6.4.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.1",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^5.0.0",
"less": "^4.1.3",
"less-loader": "^11.1.0",
"lint-staged": "^13.0.3",
"merge-stream": "^2.0.0",
"mini-css-extract-plugin": "^2.6.1",
"mocha": "^10.1.0",
"nock": "^13.2.9",
"open": "^8.4.0",
"postcss": ">=8.4.18",
"postcss-css-variables": "^0.18.0",
"postcss-less": "^6.0.0",
"postcss-loader": "^7.0.1",
"prettier": "^2.7.1",
"puppeteer": "^19.2.1",
"raw-loader": "^4.0.2",
"replace": "^1.2.2",
"style-loader": "^3.3.1",
"stylelint": "^14.14.0",
"stylelint-config-idiomatic-order": "v9.0.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^29.0.0",
"stylelint-prettier": "^2.0.0",
"synchronous-promise": "2.0.15",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.1",
"ts-private-uglifier": "^1.0.2",
"tsc-alias": "^1.7.0",
"tslib": "^2.4.1",
"typescript": "^4.8.4",
"url-loader": "^4.1.1",
"webpack": "5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-middleware": "^5.3.3",
"webpack-dev-server": "^4.11.1",
"webpack-hot-middleware": "^2.25.2",
"webpack-stream": "^7.0.0",
"yargs": "^17.6.1"
},
"husky": {
"hooks": {}
},
"lint-staged": {
"./test/**/*.{js}": [
"prettier --write --ignore-path ./build/*",
"git add"
],
"*.{json,less}": [
"prettier --write --ignore-path ./build/*",
"git add"
],
"*.{ts}": [
"eslint ./src",
"prettier --write",
"git add"
]
}
}