|
7 | 7 | "url": "git+ssh://git@github.com/tangibleinc/loops-and-logic.git"
|
8 | 8 | },
|
9 | 9 | "scripts": {
|
10 |
| - "start": "wp-now start --blueprint=blueprint.dev.json", |
11 |
| - "dev": "concurrently --raw 'roll dev' 'npm run start'", |
| 10 | + "start": "wp-env start", |
| 11 | + "start:update": "wp-env start --update", |
| 12 | + "stop": "wp-env stop", |
| 13 | + "dev": "roll dev", |
12 | 14 | "build": "roll build",
|
13 | 15 | "format": "roll format",
|
14 | 16 | "postinstall": "roll install",
|
15 | 17 | "update": "roll update",
|
16 | 18 | "install:dev": "roll install --dev",
|
17 | 19 | "update:dev": "roll update --dev",
|
18 |
| - "archive": "roll archive && rm -rf publish/tangible-loops-and-logic && unzip publish/tangible-loops-and-logic.zip -d publish/ && npm run test:archive", |
19 |
| - "// Test": "", |
20 |
| - "test": "roll run tests/index.ts", |
21 |
| - "test:all": "npm run test:7.4 && npm run test:8.4 && npm run e2e", |
22 |
| - "test:7.4": "roll run tests/index.ts PHP_VERSION=7.4", |
23 |
| - "test:8.4": "roll run tests/index.ts PHP_VERSION=8.4", |
24 |
| - "test:archive": "roll run tests/index.ts TEST_ARCHIVE=1", |
| 20 | + "archive": "FOLDER=tangible-loops-and-logic; roll archive && rm -rf publish/$FOLDER && unzip publish/$FOLDER.zip -d publish/ && npm run now:test:archive", |
| 21 | + "now": "wp-now start --blueprint=blueprint.dev.json", |
| 22 | + "now:dev": "concurrently --raw 'roll dev' 'npm run now'", |
| 23 | + "now:test": "roll run tests/now/index.ts", |
| 24 | + "now:test:archive": "roll run tests/now/index.ts TEST_ARCHIVE=1", |
25 | 25 | "-- Local environment --": "https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env",
|
26 | 26 | "env": "wp-env",
|
27 |
| - "env:start": "wp-env start", |
28 |
| - "env:update": "wp-env start --update", |
29 |
| - "env:stop": "wp-env stop", |
30 |
| - "env:composer": "FOLDER=`basename $(realpath $PWD)`; wp-env run cli --env-cwd=wp-content/plugins/$FOLDER composer", |
31 |
| - "env:composer:install": "wp-env run cli sudo apk add git && npm run env:composer install", |
32 |
| - "env:composer:update": "npm run env:composer update", |
33 |
| - "env:test": "FOLDER=`basename $(realpath $PWD)`; wp-env run tests-wordpress /var/www/html/wp-content/plugins/$FOLDER/vendor/bin/phpunit --testdox -c /var/www/html/wp-content/plugins/$FOLDER/phpunit.xml --verbose", |
34 |
| - "env:test:7.4": "WP_ENV_PHP_VERSION=7.4 wp-env start && npm run env:test", |
35 |
| - "env:test:8.2": "WP_ENV_PHP_VERSION=8.2 wp-env start && npm run env:test", |
| 27 | + "composer": "FOLDER=`basename $(realpath $PWD)`; wp-env run cli --env-cwd=wp-content/plugins/$FOLDER composer", |
| 28 | + "composer:install": "wp-env run cli sudo apk add git && npm run composer install", |
| 29 | + "composer:update": "npm run composer update", |
| 30 | + "test": "FOLDER=`basename $(realpath $PWD)`; wp-env run tests-wordpress /var/www/html/wp-content/plugins/$FOLDER/vendor/bin/phpunit --testdox -c /var/www/html/wp-content/plugins/$FOLDER/phpunit.xml --verbose", |
| 31 | + "test:7.4": "WP_ENV_PHP_VERSION=7.4 wp-env start && npm run test", |
| 32 | + "test:8.2": "WP_ENV_PHP_VERSION=8.2 wp-env start && npm run test", |
| 33 | + "test:all": "npm run test:7.4 && npm run test:8.2 && npm run e2e", |
36 | 34 | "env:destroy": "wp-env destroy",
|
37 | 35 | "env:clean": "wp-env clean all",
|
38 | 36 | "-- End-to-end testing --": "https://playwright.dev/",
|
39 |
| - "e2e": "playwright test --config tests/playwright.config.js", |
| 37 | + "e2e": "playwright test --config playwright.config.js", |
40 | 38 | "e2e:install": "playwright install chromium",
|
41 | 39 | "e2e:debug": "npm run e2e -- --debug",
|
42 | 40 | "e2e:ui": "npm run e2e -- --ui",
|
43 | 41 | "e2e:watch": "chokidar 'tests/e2e/**/*.js' --initial -c 'npm run e2e -- --retries=0'"
|
44 | 42 | },
|
45 |
| - "dependencies": { |
46 |
| - }, |
| 43 | + "dependencies": {}, |
47 | 44 | "devDependencies": {
|
48 |
| - "@playwright/test": "^1.50.1", |
49 |
| - "@tangible/env": "^2025.1.31", |
50 |
| - "@tangible/now": "^2.0.4", |
| 45 | + "@playwright/test": "^1.52.0", |
| 46 | + "@tangible/now": "^3.0.2", |
51 | 47 | "@tangible/roller": "^2.1.4",
|
52 |
| - "@wordpress/e2e-test-utils-playwright": "^1.18.0", |
53 |
| - "@wordpress/env": "^10.18.0", |
| 48 | + "@wordpress/e2e-test-utils-playwright": "^1.22.0", |
| 49 | + "@wordpress/env": "^10.22.0", |
54 | 50 | "chokidar-cli": "^3.0.0",
|
55 | 51 | "concurrently": "^9.1.2",
|
56 |
| - "testra": "^2.1.4" |
| 52 | + "testra": "^2.1.5" |
57 | 53 | },
|
58 | 54 | "author": "Team Tangible",
|
59 | 55 | "license": "MIT",
|
|
0 commit comments