Skip to content

Commit 8685dbf

Browse files
authored
Merge pull request #178 from humanmade/build-updates
Modernize frontend build, remove asset-loader dependency
2 parents 6cb9cf6 + b996a8a commit 8685dbf

28 files changed

Lines changed: 20309 additions & 28151 deletions

.babelrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.config/webpack.config.dev.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

.config/webpack.config.prod.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

.config/webpack.shared.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

.eslintrc.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
2-
"parser": "@typescript-eslint/parser",
32
"extends": [
4-
"@humanmade",
5-
"plugin:@typescript-eslint/recommended"
6-
],
7-
"plugins": [
8-
"@typescript-eslint"
3+
"plugin:@wordpress/eslint-plugin/recommended"
94
],
105
"rules": {
116
"@typescript-eslint/no-unused-vars": [ "warn", {
@@ -14,22 +9,31 @@
149
"ignoreRestSiblings": true
1510
} ],
1611
"@typescript-eslint/no-use-before-define": [ "error" ],
12+
1713
"jsdoc/require-jsdoc": [ "error", {
1814
"require": {
1915
"FunctionDeclaration": true
2016
}
2117
} ],
22-
23-
// Superseded by TypeScript.
18+
"jsdoc/check-tag-names": "warn",
2419
"jsdoc/require-param": "off",
2520
"jsdoc/require-param-type": "off",
2621
"jsdoc/require-returns": "off",
22+
23+
"camelcase": [ "error", { "allow": [ "^WP_REST_API_", "post_type" ] } ],
2724
"no-unused-vars": "off",
28-
"no-use-before-define": "off"
25+
"no-use-before-define": "off",
26+
"prettier/prettier": "off"
27+
},
28+
"settings": {
29+
"jsdoc": {
30+
"tagNamePreference": {
31+
"return": "returns"
32+
}
33+
}
2934
},
3035
"ignorePatterns": [
3136
"build/**",
32-
"lib/**",
3337
"node_modules/**",
3438
"tests/wordpress/**",
3539
"vendor/**"

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
git config user.email github-actions@github.com
7171
git checkout -b "release-$VERSION"
7272
git add -f build/*
73-
git add -f lib/*
7473
git commit -m "Release $VERSION"
7574
git tag "$VERSION"
7675
git push --tags

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Directories:
22

33
/build/
4-
/lib/
54
/node_modules/
65
/tests/cache/
76
/tests/wordpress/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v24

.stylelintrc.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
2-
"extends": "@humanmade/stylelint-config",
2+
"extends": "@wordpress/stylelint-config/scss-stylistic",
33
"rules": {
4-
"declaration-property-unit-blacklist": null,
4+
"@stylistic/max-line-length": null,
55
"max-nesting-depth": null,
6+
"rule-empty-line-before": null,
67
"selector-class-pattern": null
78
},
89
"ignoreFiles": [
10+
"**/*.json",
11+
"**/*.ts",
12+
"**/*.tsx",
913
"build/**",
10-
"lib/**",
1114
"node_modules/**",
1215
"tests/wordpress/**",
1316
"vendor/**"

.wp-env.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"port": 3001,
3+
"testsEnvironment": false,
4+
"config": {
5+
"WP_DEBUG": true,
6+
"WP_DEBUG_DISPLAY": false,
7+
"WP_DEVELOPMENT_MODE": "plugin",
8+
"SCRIPT_DEBUG": true
9+
},
10+
"plugins": [ "." ]
11+
}

0 commit comments

Comments
 (0)