forked from Automattic/newspack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
72 lines (72 loc) · 2.56 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
{
"name": "newspack",
"version": "3.0.3",
"description": "The Newspack plugin. https://newspack.com",
"bugs": {
"url": "https://github.com/Automattic/newspack-plugin/issues"
},
"homepage": "https://newspack.com",
"engines": {
"node": "16",
"npm": "8"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.7.2",
"@testing-library/react": "^12.1.4",
"@types/qs": "^6.9.11",
"@types/react": "^17.0.75",
"@types/wordpress__components": "^23.0.11",
"@wordpress/browserslist-config": "^5.33.0",
"eslint": "^7.32.0",
"lint-staged": "^15.2.0",
"newspack-scripts": "^5.2.1",
"postcss-scss": "^4.0.9",
"prettier": "npm:wp-prettier@^2.6.2-beta-1",
"stylelint": "^16.2.0"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"lint-staged": {
"*.scss": "npm run lint:scss:staged",
"*.(js|jsx)": "npm run lint:js:staged",
"*.php": "npm run lint:php:staged"
},
"scripts": {
"cm": "newspack-scripts commit",
"semantic-release": "newspack-scripts release --files=newspack.php",
"build": "newspack-scripts build",
"start": "npm ci && newspack-scripts watch",
"watch": "newspack-scripts watch",
"test": "newspack-scripts test",
"lint": "npm run lint:scss && npm run lint:js",
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx assets",
"lint:js:staged": "eslint --ext .js,.jsx,.ts,.tsx",
"lint:php:staged": "./vendor/bin/phpcs --filter=GitStaged",
"format:js": "prettier 'assets/**/*.{js,jsx,ts,tsx}' --write",
"typescript:check": "newspack-scripts typescript-check",
"lint:scss": "stylelint '**/*.scss' --customSyntax postcss-scss --config=./node_modules/newspack-scripts/config/stylelint.config.js",
"format:scss": "prettier --write '**/*.scss'",
"lint:scss:staged": "stylelint --customSyntax postcss-scss --config=./node_modules/newspack-scripts/config/stylelint.config.js",
"release:archive": "rm -rf release && mkdir -p release && rsync -r . ./release/newspack-plugin --exclude-from='./.distignore' && cd release && zip -r newspack-plugin.zip newspack-plugin",
"release": "npm run build && npm run semantic-release",
"postinstall": "rm -rf node_modules/newspack-scripts/node_modules/prettier"
},
"dependencies": {
"@babel/plugin-transform-runtime": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"classnames": "^2.5.1",
"colord": "^2.9.3",
"deep-map-keys": "^2.0.1",
"js-cookie": "^3.0.5",
"lodash": "^4.17.21",
"moment": "^2.30.1",
"moment-range": "^3.1.1",
"qs": "^6.11.2",
"react": "^17.0.2",
"react-daterange-picker": "^2.0.1",
"react-router-dom": "^5.3.4",
"recursive-copy": "^2.0.14",
"tachyons": "^4.12.0"
}
}