Removed Turbo References

This commit is contained in:
Christopher Allford 2023-11-02 16:06:59 -07:00
parent 92e3d5fefb
commit 3d79d5f204
10 changed files with 109 additions and 119 deletions

View File

@ -22,6 +22,19 @@
"installFiles",
"CHANGELOG.md"
],
"scripts": {
"build": "./bin/build.sh && pnpm run clean && pnpm run compile",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"lint": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src",
"lint:fix": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src --fix",
"prepack": "pnpm run build"
},
"lint-staged": {
"*.(t|j)s?(x)": [
"pnpm lint:fix"
]
},
"dependencies": {
"@jest/globals": "^27.5.1",
"@wordpress/deprecated": "wp-6.0",
@ -51,19 +64,5 @@
},
"publishConfig": {
"access": "public"
},
"scripts": {
"turbo:build": "./bin/build.sh && pnpm run clean && pnpm run compile",
"prepack": "pnpm run build",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"lint": "eslint --ext=js,ts,tsx src",
"lint:fix": "eslint --ext=js,ts,tsx src --fix"
},
"lint-staged": {
"*.(t|j)s?(x)": [
"pnpm lint:fix"
]
}
}

View File

@ -24,6 +24,30 @@
},
"main": "index.js",
"module": "build-module/index.js",
"bin": {
"wc-e2e": "bin/wc-e2e.sh"
},
"scripts": {
"build": "pnpm run clean && pnpm run compile",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"docker:clear-all": "docker rmi --force $(docker images -q)",
"docker:down": "./bin/docker-compose.sh down",
"docker:ssh": "docker exec -it $(node utils/get-app-name.js)_wordpress-www /bin/bash",
"docker:up": "./bin/docker-compose.sh up",
"docker:wait": "bash ./bin/wait-for-build.sh",
"lint": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src",
"lint:fix": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src --fix",
"prepack": "pnpm run build",
"test:e2e": "bash ./bin/wait-for-build.sh && ./bin/e2e-test-integration.js",
"test:e2e-debug": "bash ./bin/wait-for-build.sh && ./bin/e2e-test-integration.js --dev --debug",
"test:e2e-dev": "bash ./bin/wait-for-build.sh && ./bin/e2e-test-integration.js --dev"
},
"lint-staged": {
"*.(t|j)s?(x)": [
"pnpm lint:fix"
]
},
"dependencies": {
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils#0f3ec50",
"@jest/test-sequencer": "^27.5.1",
@ -64,30 +88,5 @@
},
"publishConfig": {
"access": "public"
},
"scripts": {
"turbo:build": "pnpm run clean && pnpm run compile",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"prepack": "pnpm run build",
"docker:up": "./bin/docker-compose.sh up",
"docker:wait": "bash ./bin/wait-for-build.sh",
"docker:down": "./bin/docker-compose.sh down",
"docker:clear-all": "docker rmi --force $(docker images -q)",
"docker:ssh": "docker exec -it $(node utils/get-app-name.js)_wordpress-www /bin/bash",
"test:e2e": "bash ./bin/wait-for-build.sh && ./bin/e2e-test-integration.js",
"test:e2e-debug": "bash ./bin/wait-for-build.sh && ./bin/e2e-test-integration.js --dev --debug",
"test:e2e-dev": "bash ./bin/wait-for-build.sh && ./bin/e2e-test-integration.js --dev",
"lint": "eslint --ext=js,ts,tsx src",
"lint:fix": "eslint --ext=js,ts,tsx src --fix"
},
"bin": {
"wc-e2e": "bin/wc-e2e.sh"
},
"lint-staged": {
"*.(t|j)s?(x)": [
"pnpm lint:fix"
]
}
}

View File

@ -14,6 +14,19 @@
},
"main": "build/index.js",
"module": "build-module/index.js",
"scripts": {
"build": "pnpm run clean && pnpm run compile",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"lint": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src",
"lint:fix": "eslint --output-file eslint_report.json --format json --ext=js,ts,tsx src --fix",
"prepack": "pnpm run build"
},
"lint-staged": {
"*.(t|j)s?(x)": [
"pnpm lint:fix"
]
},
"dependencies": {
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils#0f3ec50",
"@wordpress/deprecated": "wp-6.0",
@ -46,19 +59,5 @@
},
"publishConfig": {
"access": "public"
},
"scripts": {
"turbo:build": "pnpm run clean && pnpm run compile",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"clean": "rm -rf ./build ./build-module",
"compile": "e2e-builds",
"prepack": "pnpm run build",
"lint": "eslint --ext=js,ts,tsx src",
"lint:fix": "eslint --ext=js,ts,tsx src --fix"
},
"lint-staged": {
"*.(t|j)s?(x)": [
"pnpm lint:fix"
]
}
}

View File

@ -30,6 +30,29 @@
"uglify-js": "^3.17.4",
"wireit": "^0.14.1"
},
"scripts": {
"build": "pnpm run build:admin && pnpm run uglify",
"build:admin": "wp-scripts build",
"build:dev": "pnpm run lint:js && pnpm run build",
"build:zip": "./bin/build-zip.sh",
"changelog": "composer exec -- changelogger",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format:js": "wp-scripts format-js",
"postinstall": "composer install",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "wp-scripts lint-style --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:md:docs": "wp-scripts lint-md-docs",
"lint:md:js": "wp-scripts lint-md-js",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"start": "wp-scripts start",
"test:e2e": "wp-scripts test-e2e",
"test:unit": "wp-scripts test-unit-js",
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done"
},
"dependencies": {
"@automattic/tour-kit": "^1.1.1",
"@emotion/react": "^11.11.1",
@ -57,30 +80,6 @@
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"scripts": {
"postinstall": "composer install",
"changelog": "composer exec -- changelogger",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"turbo:build": "pnpm run build:admin && pnpm run uglify",
"build:admin": "wp-scripts build",
"build:zip": "./bin/build-zip.sh",
"build:dev": "pnpm run lint:js && pnpm run build",
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format:js": "wp-scripts format-js",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "wp-scripts lint-style --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:md:docs": "wp-scripts lint-md-docs",
"lint:md:js": "wp-scripts lint-md-js",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"start": "wp-scripts start",
"test:e2e": "wp-scripts test-e2e",
"test:unit": "wp-scripts test-unit-js"
},
"engines": {
"node": "^16.14.1",
"pnpm": "^8.6.7"

View File

@ -64,12 +64,11 @@
},
"scripts": {
"postinstall": "composer install",
"changelog": "composer exec -- changelogger",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"turbo:build": "pnpm run build:admin && pnpm run uglify",
"build": "pnpm run build:admin && pnpm run uglify",
"build:admin": "wp-scripts build",
"build:zip": "./bin/build-zip.sh",
"build:dev": "pnpm run lint:js && pnpm run build",
"build:zip": "./bin/build-zip.sh",
"changelog": "composer exec -- changelogger",
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",

View File

@ -42,7 +42,7 @@
"make:collection": "pnpm exec wc-api-tests make:collection",
"makepot": "composer run-script makepot",
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js",
"test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
"test": "pnpm test:unit",
"test:api": "API_TEST_REPORT_DIR=\"$PWD/tests/api\" pnpm exec wc-api-tests test api",
"test:api-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/api-core-tests/playwright.config.js",
"test:e2e-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/e2e-pw/playwright.config.js",
@ -51,7 +51,6 @@
"test:php:env": "wp-env run --env-cwd='wp-content/plugins/woocommerce' tests-cli vendor/bin/phpunit -c phpunit.xml --verbose",
"test:unit": "pnpm test:php",
"test:unit:env": "pnpm test:php:env",
"turbo:test": "pnpm test:unit",
"update-wp-env": "php ./tests/e2e-pw/bin/update-wp-env.php"
},
"lint-staged": {

View File

@ -6,6 +6,13 @@
"homepage": "https://github.com/woocommerce/woocommerce",
"license": "GPLv2",
"repository": "woocommerce/woocommerce",
"types": "dist/index.d.ts",
"scripts": {
"analyzer": "node -r ts-node/register ./src/commands/analyzer/index.ts",
"lint": "eslint . --ext .ts",
"test": "pnpm test:js",
"test:js": "jest"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@commander-js/extra-typings": "^10.0.3",
@ -30,16 +37,8 @@
"typescript": "^5.3.3",
"wireit": "^0.14.1"
},
"scripts": {
"lint": "eslint . --ext .ts",
"turbo:test": "jest",
"test": "pnpm test:js",
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name",
"analyzer": "node -r ts-node/register ./src/commands/analyzer/index.ts"
},
"engines": {
"node": "^16.14.1",
"pnpm": "^8.6.7"
},
"types": "dist/index.d.ts"
}
}

View File

@ -16,6 +16,13 @@
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"scripts": {
"build": "shx rm -rf dist && tsc --project tsconfig.json",
"lint": "eslint . --ext .ts",
"prepack": "pnpm build && oclif manifest",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm lint"
},
"dependencies": {
"@oclif/core": "^1.26.2",
"@oclif/plugin-help": "^5.2.20",
@ -54,14 +61,6 @@
}
}
},
"scripts": {
"turbo:build": "shx rm -rf dist && tsc --project tsconfig.json",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"lint": "eslint . --ext .ts",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm lint",
"prepack": "pnpm build && oclif manifest"
},
"engines": {
"node": "^16.14.1",
"pnpm": "^8.6.7"

View File

@ -7,6 +7,15 @@
"license": "GPLv2",
"repository": "woocommerce/woocommerce",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"postinstall": "pnpm run build",
"lint": "eslint . --ext .ts",
"start": "tsc --watch",
"test": "pnpm test:js",
"test:js": "jest"
},
"dependencies": {
"@actions/core": "^1.10.1",
"@commander-js/extra-typings": "^10.0.3",
@ -43,18 +52,8 @@
"typescript": "^5.3.3",
"wireit": "^0.14.1"
},
"scripts": {
"build": "tsc",
"start": "tsc --watch",
"lint": "eslint . --ext .ts",
"postinstall": "pnpm run build",
"turbo:test": "jest",
"test": "pnpm test:js",
"test:js": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name"
},
"engines": {
"node": "^16.14.1",
"pnpm": "^8.6.7"
},
"types": "dist/index.d.ts"
}
}

View File

@ -16,6 +16,13 @@
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"scripts": {
"build": "shx rm -rf dist && tsc --project tsconfig.json",
"lint": "eslint . --ext .ts --config .eslintrc",
"prepack": "pnpm build && oclif manifest",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm lint"
},
"dependencies": {
"@oclif/core": "^1.26.2",
"@oclif/plugin-help": "^5.2.20",
@ -49,14 +56,6 @@
}
}
},
"scripts": {
"turbo:build": "shx rm -rf dist && tsc --project tsconfig.json",
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
"lint": "eslint . --ext .ts --config .eslintrc",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm lint",
"prepack": "pnpm build && oclif manifest"
},
"engines": {
"node": "^16.14.1",
"pnpm": "^8.6.7"