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

Use wp-scripts instead of npm where applicable #93

Closed
Closed
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
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,35 @@
"license": "MIT",
"private": true,
"scripts": {
"prod": "NODE_ENV=production webpack --progress && npm run pot",
"dev": "webpack --watch --progress",
"prod": "NODE_ENV=production wp-scripts build && npm run pot",
"dev": "wp-scripts start",
"clean": "rm -rf assets/build/*",
"init": "./bin/init.js && npm run pot",
"lint:css": "stylelint assets/src/sass/**/*.scss --syntax scss",
"lint:js": "eslint assets/src/js/",
"lint:php": "./vendor/bin/phpcs",
"lint:php:fix": "./bin/phpcbf.sh",
"lint:css": "wp-scripts lint-style '/assets/src/sass/**/*.scss'",
"lint:js": "wp-scripts lint-js ./assets/src/js/",
"lint:staged": "lint-staged",
"pot": "wp-pot --src './**/*.php' --dest-file './languages/blank-theme.pot' --domain 'blank-theme' --package 'Blank Theme' ",
"precommit": "npm-run-all lint:* pot",
"prepare": "husky install && npm run init"
},
"dependencies": {
"eslint-plugin-prettier": "^4.0.0",
"foundation-sites": "^6.6.3",
"prettier": "^2.8.8",
"webfontloader": "^1.6.28"
},
"devDependencies": {
"@wordpress/babel-preset-default": "^6.2.0",
"@wordpress/browserslist-config": "^4.0.1",
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.4",
"@wordpress/eslint-plugin": "^9.0.6",
"@wordpress/scripts": "^27.9.0",
"@wordpress/stylelint-config": "^19.0.5",
"babel-loader": "^8.2.2",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",
"css-loader": "^5.2.6",
"eslint": "^7.27.0",
"eslint-webpack-plugin": "^2.5.4",
Expand Down