This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
51 lines (51 loc) · 2 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
{
"name": "newspack-network-node",
"version": "0.1.0",
"description": "The Newspack Network Node plugin.",
"license": "GPL-3.0",
"browserslist": [
"extends @wordpress/browserslist-config"
],
"scripts": {
"cm": "git-cz",
"semantic-release": "newspack-scripts release --files=newspack-manager.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:php": "./vendor/bin/phpcs .",
"format:php": "./vendor/bin/phpcbf .",
"lint:php:staged": "./vendor/bin/phpcs",
"lint:js": "eslint --ext .js,.jsx src",
"lint:js:staged": "eslint --ext .js,.jsx",
"format:js": "prettier 'src/**/*.{js,jsx}' --write",
"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-manager --exclude-from='./.distignore' && cd release && zip -r newspack-manager.zip newspack-manager",
"release": "npm run semantic-release",
"postinstall": "rm -rf node_modules/newspack-scripts/node_modules/prettier"
},
"lint-staged": {
"*.scss": "npm run lint:scss:staged",
"*.(js|jsx)": "npm run lint:js:staged",
"*.php": "npm run lint:php:staged"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.0",
"eslint": "^7.29.0",
"lint-staged": "^13.2.0",
"newspack-scripts": "^5.1.0",
"postcss-scss": "^4.0.6",
"prettier": "npm:wp-prettier@^2.2.1-beta-1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Automattic/newspack-network-node.git"
},
"bugs": {
"url": "https://github.com/Automattic/newspack-network-node/issues"
},
"homepage": "https://github.com/Automattic/newspack-network-node#readme"
}