-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from dreamsicle-io/release/4.0.0
Release/4.0.0
- Loading branch information
Showing
57 changed files
with
1,088 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Lock files | ||
|
||
/package/package-lock.json | ||
/package/composer.lock | ||
/package/composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@wordpress/eslint-plugin/recommended" | ||
], | ||
"env": { | ||
"browser": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
"ignorePatterns": [ | ||
"build/**", | ||
"vendor/**", | ||
"node_modules/**/*", | ||
"package-lock.json", | ||
"composer.lock" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "./gulpfile.js", | ||
"files": ["./webpack.config.js"], | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
], | ||
"rules": { | ||
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] | ||
"eol-last": ["error", "always"], | ||
"no-console": [ | ||
"error", | ||
{ | ||
"allow": ["info", "warn", "error"] | ||
} | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
|
||
# Build | ||
|
||
/assets/dist | ||
/build | ||
/languages/*.pot | ||
/README.md | ||
/README.txt | ||
/style.css | ||
/*.zip | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Disable the Prettier config that comes bundled with wp-scripts. | ||
|
||
** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-standard-scss" | ||
"@wordpress/stylelint-config/scss" | ||
], | ||
"ignoreFiles": [ | ||
"build/**", | ||
"node_modules/**", | ||
"vendor/**" | ||
], | ||
"rules": { | ||
"color-hex-case": "upper", | ||
"color-hex-length": "long", | ||
"color-named": "never", | ||
"declaration-no-important": true, | ||
"font-weight-notation": "numeric", | ||
"no-empty-source": null, | ||
"declaration-empty-line-before": null, | ||
"rule-empty-line-before": "always", | ||
"selector-class-pattern": null, | ||
"number-max-precision": 5 | ||
"at-rule-empty-line-before": [ | ||
"always", | ||
{ | ||
"except": [ | ||
"first-nested", | ||
"blockless-after-blockless" | ||
], | ||
"ignoreAtRules": [ | ||
"else" | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
# WP Theme | ||
|
||
Just another WordPress site. | ||
|
||
## Getting Started | ||
|
||
### Set the node version | ||
|
||
```shell | ||
nvm use | ||
``` | ||
|
||
### Install dependencies | ||
|
||
```shell | ||
npm install | ||
``` | ||
|
||
### Run a development build and watch for changes | ||
|
||
```shell | ||
npm start | ||
``` | ||
|
||
### Run a production build | ||
|
||
```shell | ||
npm run build | ||
``` | ||
|
||
## Development Commands | ||
|
||
The theme's build and lint system is powered by Webpack, wp-scripts, and wp-cli. | ||
|
||
### Set Node Version | ||
|
||
Uses `nvm` to set the node version as defined in the `.nvmrc` file. | ||
|
||
```shell | ||
nvm use | ||
``` | ||
|
||
### Install | ||
|
||
Install all `npm` and `composer` dependencies. | ||
|
||
```shell | ||
npm install | ||
``` | ||
|
||
### Start | ||
|
||
Run a development build and watch for changes. | ||
|
||
```shell | ||
npm start | ||
``` | ||
|
||
### Build | ||
|
||
Run a production build. | ||
|
||
```shell | ||
npm run build | ||
``` | ||
|
||
### Lint | ||
|
||
Lint all files with phpcs, eslint, and stylelint. | ||
|
||
```shell | ||
npm run lint | ||
``` | ||
|
||
### fix | ||
|
||
Fix all fixable issues with phpcbf, eslint, and stylelint. | ||
|
||
```shell | ||
npm run fix | ||
``` | ||
|
||
## Build File Structure | ||
|
||
This gulp setup expects that the project root's `package.json` is setup properly, and that an opinionated file structure is followed. | ||
|
||
### Source Files | ||
|
||
``` | ||
root | ||
―――― /src | ||
―――― ―――― /js | ||
―――― ―――― ―――― /modules | ||
―――― ―――― ―――― site.js | ||
―――― ―――― ―――― admin.js | ||
―――― ―――― ―――― login.js | ||
―――― ―――― ―――― customizer-preview.js | ||
―――― ―――― ―――― customizer-controls.js | ||
―――― ―――― /scss | ||
―――― ―――― ―――― /modules | ||
―――― ―――― ―――― site.scss | ||
―――― ―――― ―――― admin.scss | ||
―――― ―――― ―――― login.scss | ||
―――― ―――― ―――― editor.scss | ||
―――― ―――― ―――― customizer-preview.scss | ||
―――― ―――― ―――― customizer-controls.scss | ||
``` | ||
|
||
### Build Files | ||
|
||
``` | ||
root | ||
―――― /build | ||
―――― ―――― /js | ||
―――― ―――― ―――― site.min.js | ||
―――― ―――― ―――― site.min.js.map | ||
―――― ―――― ―――― admin.min.js | ||
―――― ―――― ―――― admin.min.js.map | ||
―――― ―――― ―――― login.min.js | ||
―――― ―――― ―――― login.min.js.map | ||
―――― ―――― ―――― customizer-preview.min.js | ||
―――― ―――― ―――― customizer-preview.min.js.map | ||
―――― ―――― ―――― customizer-controls.min.js | ||
―――― ―――― ―――― customizer-controls.min.js.map | ||
―――― ―――― /css | ||
―――― ―――― ―――― site.min.css | ||
―――― ―――― ―――― site.min.css.map | ||
―――― ―――― ―――― admin.min.css | ||
―――― ―――― ―――― admin.min.css.map | ||
―――― ―――― ―――― login.min.css | ||
―――― ―――― ―――― login.min.css.map | ||
―――― ―――― ―――― editor.min.css | ||
―――― ―――― ―――― editor.min.css.map | ||
―――― ―――― ―――― customizer-preview.min.css | ||
―――― ―――― ―――― customizer-preview.min.css.map | ||
―――― ―――― ―――― customizer-controls.min.css | ||
―――― ―――― ―――― customizer-controls.min.css.map | ||
―――― /languages | ||
―――― ―――― {textdomain}.pot | ||
―――― README.txt | ||
―――― style.css | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.