newspack-scripts 1.6.3 → 1.7.0-alpha.4

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 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.
@@ -1,3 +1,14 @@
1
+ const path = require("path");
2
+
3
+ // Assume `@wordpress/*` packages are available. This is because `calypso-build` is using
4
+ // Dependency Extraction Webpack Plugin to use core WP packages instead of those from
5
+ // node_modules. The packages should still be part of the project (so they are listed in this
6
+ // project's package.json) so that they are available in testing environment.
7
+ // More on this:
8
+ // - https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin
9
+ // - https://github.com/WordPress/gutenberg/issues/35630
10
+ const GLOBALLY_AVAILABLE_PACKAGES = ["@wordpress/.*"];
11
+
1
12
  module.exports = {
2
13
  extends: [
3
14
  "plugin:@wordpress/eslint-plugin/recommended",
@@ -16,7 +27,11 @@ module.exports = {
16
27
  camelcase: "off",
17
28
  // Disallow importing or requiring packages that are not listed in package.json
18
29
  // This prevents us from depending on transitive dependencies, which could break in unexpected ways.
19
- "import/no-extraneous-dependencies": ["error", { packageDir: "." }],
30
+ "import/no-extraneous-dependencies": [
31
+ "error",
32
+ { packageDir: [".", path.resolve(__dirname, "../")] },
33
+ ],
34
+ "import/no-unresolved": ["error", { ignore: GLOBALLY_AVAILABLE_PACKAGES }],
20
35
  // There's a conflict with prettier here:
21
36
  "react/jsx-curly-spacing": "off",
22
37
  // Skip prop types validation for now
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newspack-scripts",
3
- "version": "1.6.3",
3
+ "version": "1.7.0-alpha.4",
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",