Create a private package to house e2e build logic

This commit is contained in:
Paul Sealock 2022-04-19 14:59:46 +12:00
parent 463c985b6e
commit 4e700a35ca
8 changed files with 38 additions and 7 deletions

View File

@ -0,0 +1,19 @@
{
"name": "@woocommerce/e2e-builds",
"version": "0.1.0",
"description": "Utility build files for e2e packages",
"private": "true",
"main": "build.js",
"bin": {
"e2e-builds": "./build.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/woocommerce/woocommerce.git"
},
"license": "GPL-3.0+",
"bugs": {
"url": "https://github.com/woocommerce/woocommerce/issues"
},
"homepage": "https://github.com/woocommerce/woocommerce#readme"
}

View File

@ -32,6 +32,7 @@
"@babel/plugin-transform-runtime": "^7.16.4", "@babel/plugin-transform-runtime": "^7.16.4",
"@babel/polyfill": "7.12.1", "@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.12.7", "@babel/preset-env": "7.12.7",
"@woocommerce/e2e-builds": "workspace:*",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3", "@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2", "@wordpress/babel-preset-default": "3.0.2",
"@wordpress/browserslist-config": "^4.1.0" "@wordpress/browserslist-config": "^4.1.0"
@ -46,7 +47,7 @@
"scripts": { "scripts": {
"prepare": "pnpm run build", "prepare": "pnpm run build",
"clean": "rm -rf ./build ./build-module", "clean": "rm -rf ./build ./build-module",
"compile": "node ./../bin/build.js", "compile": "e2e-builds",
"build": "./bin/build.sh && pnpm run clean && pnpm run compile" "build": "./bin/build.sh && pnpm run clean && pnpm run compile"
}, },
"lint-staged": { "lint-staged": {

View File

@ -49,6 +49,7 @@
"@babel/plugin-transform-runtime": "^7.16.4", "@babel/plugin-transform-runtime": "^7.16.4",
"@babel/polyfill": "7.12.1", "@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.12.7", "@babel/preset-env": "7.12.7",
"@woocommerce/e2e-builds": "workspace:*",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3", "@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2", "@wordpress/babel-preset-default": "3.0.2",
"@wordpress/browserslist-config": "^4.1.0", "@wordpress/browserslist-config": "^4.1.0",
@ -62,7 +63,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf ./build ./build-module", "clean": "rm -rf ./build ./build-module",
"compile": "node ./../bin/build.js", "compile": "e2e-builds",
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile",
"prepare": "pnpm run build", "prepare": "pnpm run build",
"docker:up": "./bin/docker-compose.sh up", "docker:up": "./bin/docker-compose.sh up",

View File

@ -28,6 +28,7 @@
"@babel/preset-env": "7.12.7", "@babel/preset-env": "7.12.7",
"@typescript-eslint/eslint-plugin": "^5.3.0", "@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0", "@typescript-eslint/parser": "^5.3.0",
"@woocommerce/e2e-builds": "workspace:*",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3", "@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2", "@wordpress/babel-preset-default": "3.0.2",
"@wordpress/browserslist-config": "^4.1.0", "@wordpress/browserslist-config": "^4.1.0",
@ -41,7 +42,7 @@
}, },
"scripts": { "scripts": {
"clean": "rm -rf ./build ./build-module", "clean": "rm -rf ./build ./build-module",
"compile": "node ./../bin/build.js", "compile": "e2e-builds",
"build": "pnpm run clean && pnpm run compile", "build": "pnpm run clean && pnpm run compile",
"prepare": "pnpm run build", "prepare": "pnpm run build",
"lint": "eslint src" "lint": "eslint src"

View File

@ -534,6 +534,9 @@ importers:
webpack: 5.70.0_webpack-cli@3.3.12 webpack: 5.70.0_webpack-cli@3.3.12
webpack-cli: 3.3.12_webpack@5.70.0 webpack-cli: 3.3.12_webpack@5.70.0
packages/js/e2e-builds:
specifiers: {}
packages/js/e2e-core-tests: packages/js/e2e-core-tests:
specifiers: specifiers:
'@babel/cli': 7.12.8 '@babel/cli': 7.12.8
@ -545,6 +548,7 @@ importers:
'@babel/polyfill': 7.12.1 '@babel/polyfill': 7.12.1
'@babel/preset-env': 7.12.7 '@babel/preset-env': 7.12.7
'@jest/globals': ^26.4.2 '@jest/globals': ^26.4.2
'@woocommerce/e2e-builds': workspace:*
'@wordpress/babel-plugin-import-jsx-pragma': 1.1.3 '@wordpress/babel-plugin-import-jsx-pragma': 1.1.3
'@wordpress/babel-preset-default': 3.0.2 '@wordpress/babel-preset-default': 3.0.2
'@wordpress/browserslist-config': ^4.1.0 '@wordpress/browserslist-config': ^4.1.0
@ -563,6 +567,7 @@ importers:
'@babel/plugin-transform-runtime': 7.16.4_@babel+core@7.12.9 '@babel/plugin-transform-runtime': 7.16.4_@babel+core@7.12.9
'@babel/polyfill': 7.12.1 '@babel/polyfill': 7.12.1
'@babel/preset-env': 7.12.7_@babel+core@7.12.9 '@babel/preset-env': 7.12.7_@babel+core@7.12.9
'@woocommerce/e2e-builds': link:../e2e-builds
'@wordpress/babel-plugin-import-jsx-pragma': 1.1.3_@babel+core@7.12.9 '@wordpress/babel-plugin-import-jsx-pragma': 1.1.3_@babel+core@7.12.9
'@wordpress/babel-preset-default': 3.0.2 '@wordpress/babel-preset-default': 3.0.2
'@wordpress/browserslist-config': 4.1.0 '@wordpress/browserslist-config': 4.1.0
@ -581,6 +586,7 @@ importers:
'@jest/test-sequencer': ^25.5.4 '@jest/test-sequencer': ^25.5.4
'@slack/web-api': ^6.1.0 '@slack/web-api': ^6.1.0
'@woocommerce/api': ^0.2.0 '@woocommerce/api': ^0.2.0
'@woocommerce/e2e-builds': workspace:*
'@wordpress/babel-plugin-import-jsx-pragma': 1.1.3 '@wordpress/babel-plugin-import-jsx-pragma': 1.1.3
'@wordpress/babel-preset-default': 3.0.2 '@wordpress/babel-preset-default': 3.0.2
'@wordpress/browserslist-config': ^4.1.0 '@wordpress/browserslist-config': ^4.1.0
@ -630,6 +636,7 @@ importers:
'@babel/plugin-transform-runtime': 7.16.4_@babel+core@7.12.9 '@babel/plugin-transform-runtime': 7.16.4_@babel+core@7.12.9
'@babel/polyfill': 7.12.1 '@babel/polyfill': 7.12.1
'@babel/preset-env': 7.12.7_@babel+core@7.12.9 '@babel/preset-env': 7.12.7_@babel+core@7.12.9
'@woocommerce/e2e-builds': link:../e2e-builds
'@wordpress/babel-plugin-import-jsx-pragma': 1.1.3_@babel+core@7.12.9 '@wordpress/babel-plugin-import-jsx-pragma': 1.1.3_@babel+core@7.12.9
'@wordpress/babel-preset-default': 3.0.2 '@wordpress/babel-preset-default': 3.0.2
'@wordpress/browserslist-config': 4.1.0 '@wordpress/browserslist-config': 4.1.0
@ -651,6 +658,7 @@ importers:
'@babel/preset-env': 7.12.7 '@babel/preset-env': 7.12.7
'@typescript-eslint/eslint-plugin': ^5.3.0 '@typescript-eslint/eslint-plugin': ^5.3.0
'@typescript-eslint/parser': ^5.3.0 '@typescript-eslint/parser': ^5.3.0
'@woocommerce/e2e-builds': workspace:*
'@wordpress/babel-plugin-import-jsx-pragma': 1.1.3 '@wordpress/babel-plugin-import-jsx-pragma': 1.1.3
'@wordpress/babel-preset-default': 3.0.2 '@wordpress/babel-preset-default': 3.0.2
'@wordpress/browserslist-config': ^4.1.0 '@wordpress/browserslist-config': ^4.1.0
@ -676,6 +684,7 @@ importers:
'@babel/preset-env': 7.12.7_@babel+core@7.12.9 '@babel/preset-env': 7.12.7_@babel+core@7.12.9
'@typescript-eslint/eslint-plugin': 5.3.0_ef742ec0d85d332d26b421951e243e75 '@typescript-eslint/eslint-plugin': 5.3.0_ef742ec0d85d332d26b421951e243e75
'@typescript-eslint/parser': 5.3.0_eslint@8.1.0+typescript@4.2.4 '@typescript-eslint/parser': 5.3.0_eslint@8.1.0+typescript@4.2.4
'@woocommerce/e2e-builds': link:../e2e-builds
'@wordpress/babel-plugin-import-jsx-pragma': 1.1.3_@babel+core@7.12.9 '@wordpress/babel-plugin-import-jsx-pragma': 1.1.3_@babel+core@7.12.9
'@wordpress/babel-preset-default': 3.0.2 '@wordpress/babel-preset-default': 3.0.2
'@wordpress/browserslist-config': 4.1.0 '@wordpress/browserslist-config': 4.1.0
@ -12485,7 +12494,6 @@ packages:
re-resizable: 4.11.0 re-resizable: 4.11.0
transitivePeerDependencies: transitivePeerDependencies:
- react - react
- react-dom
dev: true dev: true
/@types/wordpress__data-controls/2.2.0: /@types/wordpress__data-controls/2.2.0:

View File

@ -3,6 +3,7 @@
"projects": { "projects": {
"@woocommerce/api": "packages/js/api", "@woocommerce/api": "packages/js/api",
"@woocommerce/api-core-tests": "packages/js/api-core-tests", "@woocommerce/api-core-tests": "packages/js/api-core-tests",
"@woocommerce/e2e-builds": "packages/js/e2e-builds",
"@woocommerce/e2e-core-tests": "packages/js/e2e-core-tests", "@woocommerce/e2e-core-tests": "packages/js/e2e-core-tests",
"@woocommerce/e2e-environment": "packages/js/e2e-environment", "@woocommerce/e2e-environment": "packages/js/e2e-environment",
"@woocommerce/e2e-utils": "packages/js/e2e-utils", "@woocommerce/e2e-utils": "packages/js/e2e-utils",