newspack-scripts 1.6.2 → 1.7.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/config/eslintrc.js +9 -3
- package/package.json +21 -2
package/README.md
CHANGED
|
@@ -27,6 +27,10 @@ Uses [`commitizen`](https://www.npmjs.com/package/commitizen) to create a struct
|
|
|
27
27
|
|
|
28
28
|
Lints to commit message, to be used in a git `commit-msg` hook.
|
|
29
29
|
|
|
30
|
+
### release
|
|
31
|
+
|
|
32
|
+
Will run [`semantic-release`](semantic-release.gitbook.io/) based on a very opinionated configuration.
|
|
33
|
+
|
|
30
34
|
## Available configs
|
|
31
35
|
|
|
32
36
|
This package exposes a couple of configuration files.
|
package/config/eslintrc.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
|
|
1
|
+
// Assume `@wordpress/*` packages are available. This is because `calypso-build` is using
|
|
2
|
+
// Dependency Extraction Webpack Plugin to use core WP packages instead of those from
|
|
3
|
+
// node_modules. The packages should still be part of the project (so they are listed in this
|
|
4
|
+
// project's package.json) so that they are available in testing environment.
|
|
5
|
+
// More on this:
|
|
6
|
+
// - https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin
|
|
7
|
+
// - https://github.com/WordPress/gutenberg/issues/35630
|
|
8
|
+
const GLOBALLY_AVAILABLE_PACKAGES = ["@wordpress/.*"];
|
|
4
9
|
|
|
5
10
|
module.exports = {
|
|
6
11
|
extends: [
|
|
@@ -21,6 +26,7 @@ module.exports = {
|
|
|
21
26
|
// Disallow importing or requiring packages that are not listed in package.json
|
|
22
27
|
// This prevents us from depending on transitive dependencies, which could break in unexpected ways.
|
|
23
28
|
"import/no-extraneous-dependencies": ["error", { packageDir: "." }],
|
|
29
|
+
"import/no-unresolved": ["error", { ignore: GLOBALLY_AVAILABLE_PACKAGES }],
|
|
24
30
|
// There's a conflict with prettier here:
|
|
25
31
|
"react/jsx-curly-spacing": "off",
|
|
26
32
|
// Skip prop types validation for now
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newspack-scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": {
|
|
6
6
|
"newspack-scripts": "./bin/newspack-scripts.js"
|
|
@@ -17,8 +17,28 @@
|
|
|
17
17
|
"@semantic-release/git": "^10.0.1",
|
|
18
18
|
"@testing-library/jest-dom": "^5.15.1",
|
|
19
19
|
"@testing-library/react": "^12.1.2",
|
|
20
|
+
"@wordpress/a11y": "^3.2.4",
|
|
21
|
+
"@wordpress/api-fetch": "^5.2.6",
|
|
22
|
+
"@wordpress/base-styles": "^4.0.4",
|
|
23
|
+
"@wordpress/block-editor": "^8.0.11",
|
|
24
|
+
"@wordpress/blocks": "^11.1.4",
|
|
25
|
+
"@wordpress/components": "^19.1.5",
|
|
26
|
+
"@wordpress/compose": "^5.0.6",
|
|
27
|
+
"@wordpress/data": "^6.1.4",
|
|
28
|
+
"@wordpress/date": "^4.2.3",
|
|
29
|
+
"@wordpress/dom-ready": "^3.2.3",
|
|
30
|
+
"@wordpress/edit-post": "^5.0.17",
|
|
31
|
+
"@wordpress/element": "^4.0.4",
|
|
32
|
+
"@wordpress/escape-html": "^2.2.3",
|
|
20
33
|
"@wordpress/eslint-plugin": "^9.3.0",
|
|
34
|
+
"@wordpress/hooks": "^3.2.2",
|
|
35
|
+
"@wordpress/html-entities": "^3.2.3",
|
|
36
|
+
"@wordpress/i18n": "^4.2.4",
|
|
37
|
+
"@wordpress/icons": "^6.1.1",
|
|
38
|
+
"@wordpress/keycodes": "^3.2.4",
|
|
39
|
+
"@wordpress/plugins": "^4.0.6",
|
|
21
40
|
"@wordpress/stylelint-config": "^19.1.0",
|
|
41
|
+
"@wordpress/url": "^3.3.1",
|
|
22
42
|
"autoprefixer": "^10.4.0",
|
|
23
43
|
"babel-jest": "^27.4.2",
|
|
24
44
|
"commitizen": "^4.2.4",
|
|
@@ -49,7 +69,6 @@
|
|
|
49
69
|
"url": "https://github.com/Automattic/newspack-scripts.git"
|
|
50
70
|
},
|
|
51
71
|
"devDependencies": {
|
|
52
|
-
"@rushstack/eslint-patch": "^1.1.0",
|
|
53
72
|
"yargs": "^17.3.0"
|
|
54
73
|
}
|
|
55
74
|
}
|