Merge pull request #38 from woocommerce/update/project-config
Setup project
This commit is contained in:
commit
4d4c4a1dd9
|
@ -0,0 +1,27 @@
|
||||||
|
# This file is for unifying the coding style for different editors and IDEs
|
||||||
|
# editorconfig.org
|
||||||
|
|
||||||
|
# WordPress Coding Standards
|
||||||
|
# https://make.wordpress.org/core/handbook/coding-standards/
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 4
|
||||||
|
tab_width = 4
|
||||||
|
indent_style = tab
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.txt]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[*.{md,json,yml}]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_style = tab
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Describe the bug
|
||||||
|
<!-- A clear and concise description of what the bug is. Please be as descriptive as possible. -->
|
||||||
|
|
||||||
|
### To Reproduce
|
||||||
|
<!-- Describe the steps to reproduce the behavior.-->
|
||||||
|
|
||||||
|
1. Go to '…'
|
||||||
|
2. Click on '…'
|
||||||
|
3. Scroll down to …'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
### Actual behavior
|
||||||
|
<!-- A clear and concise description of what actually happens. -->
|
||||||
|
|
||||||
|
### Screenshots
|
||||||
|
<!-- If applicable, add screenshots to help explain your problem. -->
|
||||||
|
|
||||||
|
### Expected behavior
|
||||||
|
<!-- A clear and concise description of what you expected to happen. -->
|
||||||
|
|
||||||
|
### Desktop (please complete the following information)
|
||||||
|
|
||||||
|
* OS: [e.g. iOS]
|
||||||
|
* Browser [e.g. chrome, safari]
|
||||||
|
* Version [e.g. 22]
|
||||||
|
|
||||||
|
### Smartphone (please complete the following information)
|
||||||
|
|
||||||
|
* Device: [e.g. iPhone6]
|
||||||
|
* OS: [e.g. iOS8.1]
|
||||||
|
* Browser [e.g. stock browser, safari]
|
||||||
|
* Version [e.g. 22]
|
||||||
|
|
||||||
|
### Additional context
|
||||||
|
<!--Any additional context or details you think might be helpful.-->
|
||||||
|
<!--Ticket numbers/links, plugin versions, system statuses etc.-->
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Is your feature request related to a problem? Please describe
|
||||||
|
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when […] -->
|
||||||
|
|
||||||
|
### Describe the solution you'd like
|
||||||
|
<!-- A clear and concise description of what you want to happen. -->
|
||||||
|
|
||||||
|
### Describe alternatives you've considered
|
||||||
|
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
|
||||||
|
|
||||||
|
### Should this be prioritized? Why?
|
||||||
|
|
||||||
|
### Additional context
|
||||||
|
<!--Any additional context, screenshots, or details you think might be helpful.-->
|
|
@ -0,0 +1,10 @@
|
||||||
|
Fixes #
|
||||||
|
|
||||||
|
_Replace this with a good description of your changes & reasoning._
|
||||||
|
|
||||||
|
### Screenshots
|
||||||
|
|
||||||
|
### Detailed test instructions
|
||||||
|
|
||||||
|
- Ex: Open page `url`
|
||||||
|
- Click XYZ…
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx lint-staged
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = require( '@wordpress/prettier-config' );
|
|
@ -1 +0,0 @@
|
||||||
"@wordpress/prettier-config"
|
|
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
|
@ -19,13 +19,16 @@
|
||||||
"test:e2e": "wp-scripts test-e2e",
|
"test:e2e": "wp-scripts test-e2e",
|
||||||
"test:unit": "wp-scripts test-unit-js",
|
"test:unit": "wp-scripts test-unit-js",
|
||||||
"zip": "./bin/build-zip.sh",
|
"zip": "./bin/build-zip.sh",
|
||||||
"release": "./bin/release-to-github.sh"
|
"release": "./bin/release-to-github.sh",
|
||||||
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@woocommerce/dependency-extraction-webpack-plugin": "1.4.0",
|
"@woocommerce/dependency-extraction-webpack-plugin": "1.4.0",
|
||||||
"@woocommerce/eslint-plugin": "1.1.0",
|
"@woocommerce/eslint-plugin": "1.1.0",
|
||||||
"@wordpress/prettier-config": "^1.0.1",
|
"@wordpress/prettier-config": "^1.0.1",
|
||||||
"@wordpress/scripts": "^13.0.3",
|
"@wordpress/scripts": "^13.0.3",
|
||||||
|
"husky": "^7.0.4",
|
||||||
|
"lint-staged": "^12.3.7",
|
||||||
"prettier": "npm:wp-prettier@^2.2.1-beta-1"
|
"prettier": "npm:wp-prettier@^2.2.1-beta-1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -37,5 +40,14 @@
|
||||||
"@wordpress/data-controls": "^1.20.7",
|
"@wordpress/data-controls": "^1.20.7",
|
||||||
"@wordpress/element": "^2.19.1",
|
"@wordpress/element": "^2.19.1",
|
||||||
"@wordpress/hooks": "^2.11.1"
|
"@wordpress/hooks": "^2.11.1"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.(t|j)s?(x)": [
|
||||||
|
"npm run format:js",
|
||||||
|
"npm run lint:js"
|
||||||
|
],
|
||||||
|
"*.scss": [
|
||||||
|
"npm run lint:css"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue