-
Notifications
You must be signed in to change notification settings - Fork 65
/
package.json
65 lines (65 loc) · 2.87 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
{
"name": "newspack",
"version": "2.4.0",
"description": "A theme for Newspack. https://newspack.com",
"bugs": {
"url": "https://github.com/Automattic/newspack-theme/issues"
},
"homepage": "https://github.com/WordPress/newspack#readme",
"browserslist": [
"extends @wordpress/browserslist-config"
],
"lint-staged": {
"*.scss": "npm run lint:scss:staged",
"*.js": "npm run lint:js:staged"
},
"scripts": {
"cm": "newspack-scripts commit",
"semantic-release": "semantic-release",
"start": "npm ci --legacy-peer-deps && npm run watch",
"clean": "rm -rf dist",
"build:js": "newspack-scripts wp-scripts build --output-path newspack-theme/js/dist",
"watch:js": "newspack-scripts wp-scripts start --output-path newspack-theme/js/dist",
"build:scss": "node scripts/compile-scss.js",
"watch:scss": "node scripts/compile-scss.js --watch",
"build": "npm run clean && run-p \"build:*\"",
"watch": "npm run clean && run-p \"watch:*\"",
"test": "echo 'No JS unit tests in this repository.'",
"lint": "npm run lint:scss && npm run lint:js",
"lint:js": "newspack-scripts wp-scripts lint-js '**/*.{js,jsx,ts,tsx}'",
"lint:js:staged": "newspack-scripts wp-scripts lint-js --ext .js,.jsx,.ts,.tsx",
"fix:js": "newspack-scripts wp-scripts lint-js --fix '**/{src,includes}/**/*.{js,jsx,ts,tsx}'",
"format:js": "newspack-scripts wp-scripts format '**/*.{js,jsx,ts,tsx}'",
"lint:php": "./vendor/bin/phpcs",
"lint:php:staged": "./vendor/bin/phpcs --filter=GitStaged",
"fix:php": "./vendor/bin/phpcbf",
"lint:scss": "newspack-scripts wp-scripts lint-style '**/*.scss' --customSyntax postcss-scss",
"lint:scss:staged": "newspack-scripts wp-scripts lint-style --customSyntax postcss-scss",
"format:scss": "newspack-scripts wp-scripts lint-style '**/*.scss' --customSyntax postcss-scss --fix",
"typescript:check": "echo 'No TypeScript files in this repository.'",
"release": "npm run build && npm run semantic-release",
"release:archive": "mkdir -p release && zip -r release/newspack-theme.zip newspack-theme -x .DS_Store && zip -r release/newspack-sacha.zip newspack-sacha -x .DS_Store && zip -r release/newspack-scott.zip newspack-scott -x .DS_Store && zip -r release/newspack-nelson.zip newspack-nelson -x .DS_Store && zip -r release/newspack-katharine.zip newspack-katharine -x .DS_Store && zip -r release/newspack-joseph.zip newspack-joseph -x .DS_Store"
},
"devDependencies": {
"@octokit/rest": "^20.0.2",
"@rushstack/eslint-patch": "^1.10.4",
"@wordpress/browserslist-config": "^6.12.0",
"chokidar-cli": "^3.0.0",
"classnames": "^2.5.1",
"cssnano": "^7.0.6",
"eslint": "^8.57.0",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.10",
"newspack-scripts": "^5.5.2",
"npm-run-all": "^4.1.5",
"postcss-focus-within": "^9.0.1",
"postcss-scss": "^4.0.9",
"rtlcss": "^4.3.0",
"sass": "^1.81.0"
},
"overrides": {
"terser-webpack-plugin": {
"ajv": "^6.0.0"
}
}
}