forked from GrapesJS/grapesjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
139 lines (139 loc) · 3.69 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
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.21.8",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
"main": "dist/grapes.min.js",
"types": "dist/index.d.ts",
"module": "dist/grapes.mjs",
"exports": {
".": {
"import": "./dist/grapes.mjs",
"require": "./dist/grapes.min.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": [
"dist",
"locale",
"src/styles"
],
"sideEffects": [
"*.vue",
"*.css",
"*.scss"
],
"repository": {
"type": "git",
"url": "https://github.com/GrapesJS/grapesjs.git"
},
"dependencies": {
"@types/backbone": "^1.4.15",
"backbone": "1.4.1",
"backbone-undo": "^0.2.5",
"codemirror": "^5.63.0",
"codemirror-formatting": "^1.0.0",
"promise-polyfill": "^8.1.3",
"underscore": "^1.13.1"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^28.1.1",
"@typescript-eslint/parser": "^5.22.0",
"@vuepress/plugin-google-analytics": "^1.8.2",
"documentation": "^13.2.5",
"eslint": "^8.12.0",
"grapesjs-cli": "^4.1.3",
"html-entities": "^1.4.0",
"husky": "^2.7.0",
"jest": "^24.9.0",
"lint-staged": "^8.2.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"sass": "^1.42.1",
"vuepress": "^1.8.2",
"whatwg-fetch": "^3.6.2"
},
"resolutions": {
"backbone-undo/backbone": "1.3.3",
"backbone-undo/underscore": "^1.13.1"
},
"keywords": [
"grapes",
"grapesjs",
"wysiwyg",
"web",
"template",
"editor",
"newsletter",
"site",
"builder"
],
"babel": {
"env": {
"test": {
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
]
}
}
},
"lint-staged": {
"{src,test}/**/*.(t|j)s": [
"eslint --ext .ts,.js --fix",
"prettier --single-quote --print-width 120 --arrow-parens avoid --write",
"git add"
]
},
"jest": {
"moduleFileExtensions": [
"js",
"ts"
],
"verbose": true,
"testURL": "http://localhost/",
"modulePaths": [
"<rootDir>/src"
],
"testMatch": [
"<rootDir>/test/specs/**/*.(t|j)s"
],
"setupFiles": [
"<rootDir>/test/setup.js"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"scripts": {
"docs": "vuepress dev docs",
"docs:api": "node docs/api.js",
"docs:build-vp": "vuepress build docs",
"docs:build": "npm run docs:api && npm run docs:build-vp",
"docs:deploy": "docs/deploy.sh",
"lint": "eslint . --ext .ts,.js && npm run lint:ts",
"check": "npm run lint && npm run test",
"lint:ts": "tsc --noEmit",
"build": "npm run check && npm run build-all && npm run ts:check",
"build-all": "run-s build:*",
"build:js": "grapesjs-cli build --targets=\"> 1%, ie 11, safari 8, not dead\" --statsOutput=\"stats.json\" --localePath=\"src/i18n/locale\"",
"build:mjs": "BUILD_MODULE=true grapesjs-cli build --dts='skip' --patch=0 --targets=\"> 1%, ie 11, safari 8, not dead\"",
"build:css": "sass src/styles/scss/main.scss dist/css/grapes.min.css --no-source-map --style=compressed --load-path=node_modules",
"ts:build": "grapesjs-cli build --dts='only' --patch=0",
"ts:check": "tsc --noEmit --esModuleInterop dist/index.d.ts",
"ts:build:check": "npm run ts:build && npm run ts:check",
"start": "run-p start:*",
"start:js": "grapesjs-cli serve",
"start:css": "npm run build:css -- --watch",
"format": "prettier --single-quote --write './{src,test}/**/*.js'",
"test": "jest",
"test:dev": "jest --watch"
}
}