|
1 | 1 | {
|
2 | 2 | "name": "grunt-patch-wordpress",
|
3 |
| - "description": "Patch your core WordPress", |
4 | 3 | "version": "1.0.0",
|
5 |
| - "homepage": "https://github.com/wordpress/grunt-patch-wordpress", |
| 4 | + "description": "Patch your core WordPress", |
6 | 5 | "author": {
|
7 | 6 | "name": "Aaron Jorbin",
|
8 | 7 |
|
9 | 8 | "url": "http://aaron.jorb.in"
|
10 | 9 | },
|
| 10 | + "license": "MIT", |
| 11 | + "keywords": [ |
| 12 | + "gruntplugin" |
| 13 | + ], |
| 14 | + "homepage": "https://github.com/wordpress/grunt-patch-wordpress", |
11 | 15 | "repository": {
|
12 | 16 | "type": "git",
|
13 | 17 | "url": "git://github.com/wordpress/grunt-patch-wordpress.git"
|
14 | 18 | },
|
15 | 19 | "bugs": {
|
16 | 20 | "url": "https://github.com/wordpress/grunt-patch-wordpress/issues"
|
17 | 21 | },
|
18 |
| - "license": "MIT", |
19 |
| - "main": "Gruntfile.js", |
20 | 22 | "engines": {
|
21 | 23 | "node": ">= 10"
|
22 | 24 | },
|
23 |
| - "scripts": { |
24 |
| - "test": "jest", |
25 |
| - "test:coverage": "jest --coverage", |
26 |
| - "test:watch": "jest --watch", |
27 |
| - "lint": "eslint .", |
28 |
| - "lint:fix": "eslint . --fix" |
29 |
| - }, |
| 25 | + "main": "Gruntfile.js", |
30 | 26 | "jest": {
|
31 | 27 | "testMatch": [
|
32 | 28 | "**/test/**/*.js"
|
|
35 | 31 | ".eslintrc.js"
|
36 | 32 | ]
|
37 | 33 | },
|
38 |
| - "devDependencies": { |
39 |
| - "@wordpress/eslint-plugin": "^2.0.0", |
40 |
| - "eslint": "^5.15.1", |
41 |
| - "jest": "^24.5.0" |
| 34 | + "npmPackageJsonLintConfig": { |
| 35 | + "extends": "@wordpress/npm-package-json-lint-config", |
| 36 | + "rules": { |
| 37 | + "valid-values-license": [ |
| 38 | + "error", |
| 39 | + [ |
| 40 | + "MIT" |
| 41 | + ] |
| 42 | + ] |
| 43 | + } |
42 | 44 | },
|
43 | 45 | "dependencies": {
|
44 | 46 | "grunt": "^1.0.3",
|
45 | 47 | "inquirer": "^5.1.0",
|
46 | 48 | "request": "^2.83.0",
|
47 | 49 | "xmlrpc": "^1.3.1"
|
48 | 50 | },
|
49 |
| - "keywords": [ |
50 |
| - "gruntplugin" |
51 |
| - ] |
| 51 | + "devDependencies": { |
| 52 | + "@wordpress/scripts": "^3.3.0", |
| 53 | + "concurrently": "^4.1.1" |
| 54 | + }, |
| 55 | + "scripts": { |
| 56 | + "check-engines": "wp-scripts check-engines", |
| 57 | + "check-licenses": "wp-scripts check-licenses", |
| 58 | + "test:coverage": "wp-scripts test-unit-js --coverage", |
| 59 | + "test:help": "wp-scripts test-unit-js --help", |
| 60 | + "test:unit": "wp-scripts test-unit-js", |
| 61 | + "test:watch": "wp-scripts test-unit-js --watch", |
| 62 | + "test": "concurrently \"npm run check-engines\" \"npm run check-licenses\" \"npm run lint\" \"npm run test:unit\"", |
| 63 | + "lint": "concurrently \"npm run lint:js\" \"npm run lint:pkg-json\"", |
| 64 | + "lint:js": "wp-scripts lint-js", |
| 65 | + "lint:fix": "wp-scripts lint-js --fix", |
| 66 | + "lint:pkg-json": "wp-scripts lint-pkg-json" |
| 67 | + } |
52 | 68 | }
|
0 commit comments