Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated: Make compatible with Dekode Starter Theme #466

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ module.exports = {
},
requireConfigFile: false,
},
settings: {
'import/core-modules': ['@t2/editor'],
},
};
13 changes: 2 additions & 11 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['@wordpress/stylelint-config/scss'],
extends: ['@wordpress/stylelint-config'],
rules: {
'at-rule-empty-line-before': null,
'at-rule-no-unknown': null,
Expand All @@ -10,16 +10,7 @@ module.exports = {
'rule-empty-line-before': null,
'selector-class-pattern': null,
'value-keyword-case': null,
'scss/operator-no-unspaced': null,
'scss/selector-no-redundant-nesting-selector': null,
'scss/at-import-partial-extension': null,
'scss/no-global-function-names': null,
'scss/comment-no-empty': null,
'scss/at-extend-no-missing-placeholder': null,
'scss/operator-no-newline-after': null,
'scss/at-if-closing-brace-newline-after': null,
'scss/at-else-empty-line-before': null,
'scss/at-if-closing-brace-space-after': null,
'no-invalid-position-at-import-rule': null,
'function-url-quotes': null,
},
};
12 changes: 11 additions & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Themes, plugins, mu-plugins etc. is now structured under packages and built into

### wp-cli and Local by Flywheel

To be able to use wp-cli, you can use [Local by Flywheel](https://localwp.com/) build-in in site shell.
To be able to use wp-cli, you can use [Local by Flywheel](https://localwp.com/) build-in in site shell.

If you would like to access the wp-cli in the defauly system console there can be issues trying to use wp-cli commands when using a [Local by Flywheel](https://localwp.com/) development environment. You can usually fix this with the following steps:

Expand Down Expand Up @@ -130,6 +130,16 @@ Project-base uses wp-scripts to build front end assets using the `npm run build`

6. Install the package using `composer update` or `npm install` depending on type. you might need to re-run `npm run build` or `npm run start` if you have installed a new package containing files that need building.

### Renaming

There are several places where literal strings need to be renamed to match the project:

- app/postcss.config.js:19
- app/package.json:80 (Set these values according to design)
- app/composer.json:9 (Update dependency name)
- app/tools/webpack/blocks.js:24 (path to block library)
- Any other namespace / text domain / theme - plugin headers

## Documentation
* PostCSS [https://github.com/postcss/postcss/tree/main/docs](https://github.com/postcss/postcss/tree/main/docs)
* WebPack [https://webpack.js.org/concepts/](https://webpack.js.org/concepts/)
Expand Down
35 changes: 34 additions & 1 deletion anonymize.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
{
"patterns": [
{
"tableName": ".*_registration_log",
"fields": [
{
"field": "email",
"position": 2,
"type": "email",
"constraints": null
}
]
},
{
"tableName": ".*_sitemeta",
"fields": [
{
"field": "admin_email",
"position": 4,
"type": "email",
"constraints": null
}
]
},
{
"tableName": ".*_options",
"fields": [
{
"field": "admin_email",
"position": 3,
"type": "email",
"constraints": null
}
]
},
{
"tableName": ".*_users",
"fields": [
Expand Down Expand Up @@ -124,4 +157,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php": ">=8.1",
"boxuk/wp-muplugin-loader": "~2.0.0",
"composer/installers": "~2.2.0",
"dekode/dekode-theme": "~1.0.0",
"dekode/dekode-starter-theme": "^0.7.0",
"dekode/imagify-helper": "1.0.0",
"dekodeinteraktiv/dekode-label-environment": "~1.0.0",
"inpsyde/wp-translation-downloader": "~2.4.0",
Expand Down
Loading