From 818c0c0a124463ca8cf12cf906ea680f2bc1f5bb Mon Sep 17 00:00:00 2001 From: Nathan Silveira Date: Thu, 23 Mar 2023 15:20:20 -0300 Subject: [PATCH] Add start command to woocommerce/client/legacy (#37368) --- .../woocommerce/changelog/add-legacy-start | 5 ++ .../woocommerce/client/legacy/package.json | 4 +- pnpm-lock.yaml | 64 +++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/add-legacy-start diff --git a/plugins/woocommerce/changelog/add-legacy-start b/plugins/woocommerce/changelog/add-legacy-start new file mode 100644 index 00000000000..206be55753c --- /dev/null +++ b/plugins/woocommerce/changelog/add-legacy-start @@ -0,0 +1,5 @@ +Significance: patch +Type: dev +Comment: Add start command to package.json + + diff --git a/plugins/woocommerce/client/legacy/package.json b/plugins/woocommerce/client/legacy/package.json index 58ddd7fc8c9..a5be356920a 100644 --- a/plugins/woocommerce/client/legacy/package.json +++ b/plugins/woocommerce/client/legacy/package.json @@ -7,7 +7,8 @@ "main": "Gruntfile.js", "scripts": { "turbo:build": "grunt assets", - "build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name" + "build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name", + "start": "nodemon --watch js --watch css -e js,scss --exec pnpm build" }, "devDependencies": { "@wordpress/stylelint-config": "19.1.0", @@ -29,6 +30,7 @@ "grunt-sass": "3.1.0", "grunt-stylelint": "0.16.0", "gruntify-eslint": "5.0.0", + "nodemon": "^2.0.21", "sass": "^1.45.0", "stylelint": "13.8.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1019537f1c8..43edccf4d4f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2056,6 +2056,7 @@ importers: grunt-sass: 3.1.0 grunt-stylelint: 0.16.0 gruntify-eslint: 5.0.0 + nodemon: ^2.0.21 sass: ^1.45.0 stylelint: 13.8.0 devDependencies: @@ -2078,6 +2079,7 @@ importers: grunt-sass: 3.1.0_grunt@1.3.0 grunt-stylelint: 0.16.0_stylelint@13.8.0 gruntify-eslint: 5.0.0_grunt@1.3.0 + nodemon: 2.0.21 sass: 1.49.9 stylelint: 13.8.0 @@ -24052,6 +24054,18 @@ packages: dependencies: ms: 2.1.3 + /debug/3.2.7_supports-color@5.5.0: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + supports-color: 5.5.0 + dev: true + /debug/4.1.1: resolution: {integrity: sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) @@ -28948,6 +28962,10 @@ packages: resolution: {integrity: sha1-xg7taebY/bazEEofy8ocGS3FtQE=} dev: true + /ignore-by-default/1.0.1: + resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==} + dev: true + /ignore-emit-webpack-plugin/2.0.6: resolution: {integrity: sha512-/zC18RWCC2wz4ZwnS4UoujGWzvSKy28DLjtE+jrGBOXej6YdmityhBDzE8E0NlktEqi4tgdNbydX8B6G4haHSQ==} dev: true @@ -34478,6 +34496,30 @@ packages: is: 3.3.0 dev: false + /nodemon/2.0.21: + resolution: {integrity: sha512-djN/n2549DUtY33S7o1djRCd7dEm0kBnj9c7S9XVXqRUbuggN1MZH/Nqa+5RFQr63Fbefq37nFXAE9VU86yL1A==} + engines: {node: '>=8.10.0'} + hasBin: true + dependencies: + chokidar: 3.5.3 + debug: 3.2.7_supports-color@5.5.0 + ignore-by-default: 1.0.1 + minimatch: 3.1.2 + pstree.remy: 1.1.8 + semver: 5.7.1 + simple-update-notifier: 1.1.0 + supports-color: 5.5.0 + touch: 3.1.0 + undefsafe: 2.0.5 + dev: true + + /nopt/1.0.10: + resolution: {integrity: sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==} + hasBin: true + dependencies: + abbrev: 1.1.1 + dev: true + /nopt/3.0.6: resolution: {integrity: sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==} hasBin: true @@ -36783,6 +36825,10 @@ packages: /psl/1.8.0: resolution: {integrity: sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==} + /pstree.remy/1.1.8: + resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==} + dev: true + /public-encrypt/4.0.3: resolution: {integrity: sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==} dependencies: @@ -39385,6 +39431,13 @@ packages: dependencies: is-arrayish: 0.3.2 + /simple-update-notifier/1.1.0: + resolution: {integrity: sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==} + engines: {node: '>=8.10.0'} + dependencies: + semver: 7.0.0 + dev: true + /sirv/1.0.19: resolution: {integrity: sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==} engines: {node: '>= 10'} @@ -41147,6 +41200,13 @@ packages: engines: {node: '>=6'} dev: true + /touch/3.1.0: + resolution: {integrity: sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==} + hasBin: true + dependencies: + nopt: 1.0.10 + dev: true + /tough-cookie/2.5.0: resolution: {integrity: sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==} engines: {node: '>=0.8'} @@ -41757,6 +41817,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /undefsafe/2.0.5: + resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} + dev: true + /underscore.string/3.3.6: resolution: {integrity: sha512-VoC83HWXmCrF6rgkyxS9GHv8W9Q5nhMKho+OadDJGzL2oDYbYEppBaCMH6pFlwLeqj2QS+hhkw2kpXkSdD1JxQ==} dependencies: