-
Notifications
You must be signed in to change notification settings - Fork 4
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 #28 from Make-Lemonade/wp-scripts
Refactoring WordPress Plugin
- Loading branch information
Showing
18 changed files
with
8,277 additions
and
6,870 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 |
---|---|---|
|
@@ -5,5 +5,7 @@ | |
/bundled | ||
/node_modules | ||
|
||
*.zip | ||
|
||
.distignore | ||
.gitignore |
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,6 +1,8 @@ | ||
/node_modules | ||
/bundled | ||
/dist | ||
/build | ||
/vendor/ | ||
.DS_STORE | ||
.wp-env.json | ||
*.zip |
This file was deleted.
Oops, something went wrong.
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,84 +1,44 @@ | ||
{ | ||
"name": "lemonsqueezy", | ||
"private": true, | ||
"scripts": { | ||
"checkFormat": "prettier --check \"./src/**/*.{js,json,css,scss}\"", | ||
"format": "prettier --write \"./src/**/*.{js,json,css,scss}\"", | ||
"lint": "eslint src", | ||
"start": "webpack --mode=development --watch", | ||
"build": "npm run lint && webpack --mode=production && gulp bundle", | ||
"wp-env": "wp-env" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Make-Lemonade/lemonsqueezy-wp.git" | ||
}, | ||
"lint-staged": { | ||
"linters": { | ||
"src/**/*.js": "eslint", | ||
"**/*.{js,json,css,scss}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
} | ||
}, | ||
"author": "lemonsqueezy", | ||
"license": "GPL-2.0+", | ||
"bugs": { | ||
"url": "https://github.com/Make-Lemonade/lemonsqueezy-wp/issues" | ||
}, | ||
"homepage": "https://github.com/Make-Lemonade/lemonsqueezy-wp#readme", | ||
"dependencies": { | ||
"@wordpress/blob": "^2.13.0", | ||
"@wordpress/block-editor": "^3.9.1", | ||
"@wordpress/blocks": "^6.14.1", | ||
"@wordpress/compose": "^3.25.0", | ||
"@wordpress/data": "^4.27.0", | ||
"@wordpress/edit-post": "^3.15.1", | ||
"@wordpress/html-entities": "^2.11.0", | ||
"@wordpress/i18n": "^3.19.0", | ||
"@wordpress/plugins": "^2.25.0", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"react-sortable-hoc": "^1.11.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.13.10", | ||
"@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/preset-env": "^7.13.10", | ||
"@babel/preset-react": "^7.12.13", | ||
"@wordpress/browserslist-config": "^3.0.1", | ||
"@wordpress/components": "^13.0.0", | ||
"@wordpress/editor": "^9.14.1", | ||
"@wordpress/element": "^2.20.0", | ||
"@wordpress/env": "^4.1.2", | ||
"autoprefixer": "^10.2.5", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.2.2", | ||
"browserslist": "^4.16.8", | ||
"classnames": "^2.2.6", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"css-loader": "^5.1.3", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-loader": "^2.1.2", | ||
"eslint-plugin-react": "^7.22.0", | ||
"file-loader": "^6.2.0", | ||
"gulp": "^4.0.2", | ||
"gulp-zip": "^4.2.0", | ||
"lint-staged": "^10.5.4", | ||
"loadash": "^1.0.0", | ||
"mini-css-extract-plugin": "^1.3.9", | ||
"node-sass": "^7.0.1", | ||
"optimize-css-assets-webpack-plugin": "^6.0.1", | ||
"postcss-loader": "^3.0.0", | ||
"prettier": "^2.2.1", | ||
"sass-loader": "^11.0.1", | ||
"style-loader": "^2.0.0", | ||
"webpack": "^5.26.3", | ||
"webpack-cli": "^4.5.0" | ||
}, | ||
"browserslist": [ | ||
"extends @wordpress/browserslist-config" | ||
] | ||
"name": "lemonsqueezy", | ||
"files": [ | ||
"src", | ||
"build", | ||
"images", | ||
"languages", | ||
"lemonsqueezy.php", | ||
"uninstall.php", | ||
"readme.txt", | ||
"changelog.*", | ||
"license.*" | ||
], | ||
"private": true, | ||
"scripts": { | ||
"build": "wp-scripts lint-js && wp-scripts build src/script.js src/editor.js src/admin/admin.js && yarn plugin-zip", | ||
"check-engines": "wp-scripts check-engines", | ||
"check-licenses": "wp-scripts check-licenses", | ||
"format": "wp-scripts format", | ||
"lint:js": "wp-scripts lint-js", | ||
"lint:pkg-json": "wp-scripts lint-pkg-json", | ||
"packages-update": "wp-scripts packages-update", | ||
"plugin-zip": "wp-scripts plugin-zip && move-file lemonsqueezy.zip bundled/lemonsqueezy.zip", | ||
"start": "wp-scripts start src/script.js src/editor.js src/admin/admin.js" | ||
}, | ||
"author": "lemonsqueezy", | ||
"license": "GPL-2.0+", | ||
"bugs": { | ||
"url": "https://github.com/Make-Lemonade/lemonsqueezy-wp/issues" | ||
}, | ||
"homepage": "https://github.com/Make-Lemonade/lemonsqueezy-wp#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Make-Lemonade/lemonsqueezy-wp.git" | ||
}, | ||
"devDependencies": { | ||
"@babel/eslint-parser": "^7.5.4", | ||
"@wordpress/scripts": "^26.16.0", | ||
"move-file-cli": "^3.0.0" | ||
}, | ||
"dependencies": { | ||
"standard": "^17.1.0" | ||
} | ||
} |
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
Oops, something went wrong.