Nestor Soriano
fcd9b115ca
Adjust the namespace prefixing script to macOS/Linux
...
Both OSes have a slightly different syntax for "sed -i" and therefore
two versions of the command are needed.
2020-10-08 09:28:05 +02:00
Nestor Soriano
97618d8fad
Reintroduce the League's Container package, and prefix it.
...
All the classes in the package are re-namespaced from
"Leage\Container" to "Automattic\WooCommerce\Vendor\League\Container"
to prevent conflicts with extensions using the same plugin.
The re-namespacing is done by using a simple text substitution
on all the code files (see prefix-vendor-namespaces.sh), for this
particular case this approach is enough.
2020-10-08 09:28:01 +02:00
Christopher Allford
b3da18a14b
Merge branch 'master' into add/composer-bin-plugin
2020-10-06 10:13:47 -07:00
Christopher Allford
5ec004cada
Added appropriate platform constraints to bin packages
2020-09-24 11:54:59 -07:00
Rodrigo Primo
6e61398c83
Fix pre-push hook used by husky
...
The pre-push hook uses sh but contained syntax that is only supported by
bash. `=` in sh should be used instead of `==` to check for string
equality. Before this change, we were getting the following error when
pushing to any branch:
```
git push
husky > pre-push (node v10.22.1)
./bin/pre-push.sh: 7: [: refs/heads/master: unexpected operator
```
This error didn't block the push, but meant that the message asking
developers to confirm if they wanted to push to master was never
displayed. This problem was introduced in commit
8c25557bf5
added in PR #27028 .
2020-09-23 10:42:23 -03:00
Christopher Allford
ef612f60e5
Moved the PHP code sniffs into a bin folder
2020-09-22 11:55:24 -07:00
Christopher Allford
f81a25c398
Moved all of the composer binary commands into the `composer-bin-plugin` to avoid version compatibility errors
2020-09-22 11:44:27 -07:00
Rodrigo Primo
ac4c057740
Fix post-merge.sh exit status in some cases
...
This commit tweaks the function runOnChange() to make sure it always
returns the correct exit status. Before this change, this function would
return 1 instead of 0 when there was no change to composer.lock and
package-lock.json in the commits that were merged. This resulted in
husky mistakenly reporting a failure when actually the post-merge script
succeeded.
2020-09-18 15:46:58 -03:00
Claudio Sanches
c59f1db2e8
Improved bin/build-zip.sh script to move zip file to root
2020-08-12 16:51:56 -03:00
Peter Fabian
74c320575d
Add message to GUI clients.
2020-07-14 12:53:22 +02:00
Peter Fabian
8c25557bf5
Fixed the test to actually catch master.
2020-07-14 12:51:50 +02:00
Peter Fabian
e111b57a86
Removed wildcards from branch name match.
...
Otherwise branches like 'fix/update-master-branch' will be protected as well.
2020-07-13 15:04:45 +02:00
Christopher Allford
05adbd718d
Merge pull request #26742 from woocommerce/update/git-hook-pre-push
...
Added pre-push hook to prevent accidental pushes to master
2020-06-21 11:28:00 -07:00
Claudio Sanches
feada5e092
Make pre-push compatible with multiple environments
2020-06-10 01:20:15 -03:00
Claudio Sanches
d3b8e4f66a
Added pre-push hook to prevent accidental pushes to master
2020-06-10 00:40:48 -03:00
Peter Fabian
f508577027
Translate wc admin domain also in Blocks package.
2020-06-04 12:39:26 +02:00
Claudio Sanches
919276fd90
Merge pull request #26403 from woocommerce/update/add-contributors-from-pkgs
...
Added packages to list of contributors.
2020-06-02 19:00:42 -03:00
Peter Fabian
80eb5ae931
Moved the contributors script from Grunt to bash.
2020-05-11 11:00:42 +02:00
Claudio Sanches
32d2b79e78
Introduced script to generate a zip package
2020-05-07 13:29:59 -03:00
Jeff Stieler
674dbbacac
Stop looking for commas and start looking for double quotes.
2020-04-29 15:58:59 -06:00
Peter Fabian
f1f02dc292
Remove the patch from PR 450, as it's already included in 3.1.1.
2020-02-25 10:13:56 +01:00
Peter Fabian
0eb758b8e2
Apply patch until a new AS version comes out.
2020-02-07 11:32:33 +01:00
Peter Fabian
87e42acd56
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:20 +01:00
Paul Sealock
4380087608
wc-admin: Include package
2020-02-04 16:01:57 -08:00
Peter Fabian
b8a6e85936
Included wp_set_script_translations in the list of functions to update domain in.
2020-02-04 15:46:26 +01:00
Peter Fabian
a48b2b53c0
Handle PHP files with wp-textdomain, JS files with sed.
2020-02-04 15:45:40 +01:00
Claudio Sanches
7703b56979
Added wp-textdomain to fix Package's text domains
2020-01-30 14:26:14 -03:00
Claudio Sanches
ff1763a898
Introduced GIT post-merge hook to update NPM and Composer dependencies
2019-11-20 19:18:39 -03:00
Darren Ethier
2549a8d90c
improve domain replacement for blocks package
2019-09-26 17:24:42 -04:00
Claudio Sanches
802f23d76d
Leave pot file for build before release
2019-07-08 15:19:48 -03:00
Claudio Sanches
a0defeb684
Prevent package-update.sh to run without installing composer dependencies
2019-07-08 15:17:11 -03:00
Claudio Sanches
e64bc772d3
Fixed permissions for bin/package-update.sh
2019-07-08 14:34:19 -03:00
Claudio Sanches
fa91edb0dd
Use NPM to run Grunt
2019-07-08 14:29:17 -03:00
Mike Jolley
9a8e8dacff
Add integration tests
2019-06-25 15:57:44 +01:00
Mike Jolley
e46653f3a9
More specific replacement
2019-06-24 15:50:55 +01:00
Mike Jolley
fcf06e97a3
Tweak script to add POT generation on update
2019-06-24 15:29:26 +01:00
Mike Jolley
dab6e4d257
Handle rest package
2019-06-24 13:02:43 +01:00
Mike Jolley
69c2cbf6e4
Text domain replacement
2019-06-24 12:40:20 +01:00