-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathpackage.json
More file actions
54 lines (54 loc) · 2.56 KB
/
package.json
File metadata and controls
54 lines (54 loc) · 2.56 KB
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
{
"name": "newspack",
"version": "2.21.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",
"scripts": {
"cm": "newspack-scripts commit",
"semantic-release": "semantic-release",
"start": "npm ci && 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",
"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"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"lint-staged": {
"*.{js,jsx,ts,tsx}": "npm run lint:js:staged",
"*.scss": "npm run lint:scss:staged",
"*.php": "npm run lint:php:staged"
},
"devDependencies": {
"@octokit/rest": "^20.1.2",
"chokidar-cli": "^3.0.0",
"classnames": "^2.5.1",
"cssnano": "^7.1.4",
"fs-extra": "^11.3.4",
"newspack-scripts": "^5.9.5",
"npm-run-all": "^4.1.5",
"rtlcss": "^4.3.0",
"sass": "^1.99.0"
}
}