Replace Laravel Mix with Bud (#2643)

Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: Ben Word <ben@benword.com>
This commit is contained in:
Kelly Mears
2021-11-21 21:53:01 -08:00
committed by GitHub
parent e533e1bd15
commit 69dfbfc65c
26 changed files with 3943 additions and 5588 deletions

View File

@@ -1,46 +1,39 @@
{
"name": "sage",
"private": true,
"bud": {
"location": {
"src": "resources",
"dist": "public"
}
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"engines": {
"node": ">=12.14.0"
"node": ">=16.0.0"
},
"scripts": {
"build": "mix",
"build:production": "mix --production",
"start": "mix watch",
"hot": "mix watch --hot",
"clear": "wp acorn optimize:clear",
"test": "npm run lint",
"dev": "bud dev",
"build": "bud build",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint resources/scripts",
"lint:css": "stylelint \"resources/**/*.{css,scss,vue}\"",
"translate": "npm run translate:pot && npm run translate:js",
"translate:pot": "wp i18n make-pot . ./resources/lang/sage.pot --ignore-domain --include=\"app,resources\"",
"translate:js": "wp i18n make-json ./resources/lang --pretty-print"
"test": "npm run lint"
},
"devDependencies": {
"@roots/bud": "5.0.0-next.14",
"@roots/sage": "5.0.0-next.14",
"@tailwindcss/typography": "^0.4.1",
"@tinypixelco/laravel-mix-wp-blocks": "^1.1.0",
"@wordpress/babel-preset-default": "^6.1.0",
"@wordpress/browserslist-config": "^4.0.0",
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.3",
"babel-eslint": "^10.1.0",
"browser-sync": "^2.26.14",
"browser-sync-webpack-plugin": "^2.3.0",
"eslint": "^7.27.0",
"eslint-plugin-import": "^2.23.3",
"laravel-mix": "^6.0.19",
"postcss": "^8.3.0",
"sass": "^1.34.0",
"sass-loader": "11.1.1",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"tailwindcss": "^2.1.2"
},
"peerDependencies": {
"jquery": "^3.5.1"
"@wordpress/browserslist-config": "4.1.0",
"eslint": "7.32.0",
"postcss": "8.3.11",
"postcss-import": "14.0.2",
"postcss-nested": "5.0.6",
"postcss-preset-env": "7.0.0",
"prettier": "2.4.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"tailwindcss": "2.2.19"
}
}