Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nvm use and auto-branching #86

Merged
merged 26 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ce95303
- Extending `release` command.
message-dimke Oct 22, 2023
d2cbaee
- Adding Git and Nvm command utility classes.
message-dimke Oct 22, 2023
4b0508c
Removing unused `use` statement.
message-dimke Oct 22, 2023
4e08bae
Removing test data.
message-dimke Oct 22, 2023
38de5b1
Overwriting the simulate command.
message-dimke Oct 26, 2023
ec86f43
- Adding branch command.
message-dimke Oct 27, 2023
2904582
Removing unnecessary props and methods.
message-dimke Oct 27, 2023
78ba188
Changing default branch name for all the extensions since that is de …
message-dimke Oct 27, 2023
deec838
Removing IDE unique files and folders from .gitignore
message-dimke Oct 27, 2023
58c58eb
Fixing wrong placed commas after removing default branch names from e…
message-dimke Oct 27, 2023
57db21b
Remove redundant release command option. When we are releasing we are…
message-dimke Oct 27, 2023
00edaa9
Adding branch command method commends and removing redundant construc…
message-dimke Oct 27, 2023
f4c2493
Adjusting `branch` command code styling and output.
message-dimke Oct 28, 2023
7d885ae
Optimising imports (doing them in alphabetical order)
message-dimke Oct 28, 2023
de8edef
Removing Simulate command since we have nothing to overwrite with it.
message-dimke Oct 29, 2023
066d8a3
Adding `nvm` shell script to fight some OS shell inconsistencies. Adj…
message-dimke Nov 7, 2023
13b8d0d
Adding build script to run nvm and npm build steps in a single contex…
message-dimke Nov 7, 2023
31f9639
Adding build script to set nvm and npm into a single context when run…
message-dimke Nov 7, 2023
b3c653a
- Fixing branch operations;
message-dimke Sep 12, 2024
4f17df9
Merge remote-tracking branch 'refs/remotes/origin/trunk' into add-nvm…
message-dimke Sep 23, 2024
206cb3b
Adding recent composer lock file.
message-dimke Sep 23, 2024
3d008ba
Adding composer lock file ran with php 7.4
message-dimke Sep 23, 2024
c72aca6
Fixing phpcs issues
message-dimke Sep 23, 2024
ca6e984
Fixing phpcs issues with spaces and @throws missing.
message-dimke Sep 23, 2024
3e17ce5
Fixing phpcs issues.
message-dimke Sep 23, 2024
56837ac
Adding node auto-install command.
message-dimke Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ vendor/

# All zip files
*.zip

# IDE files
.vscode/*
16 changes: 16 additions & 0 deletions bin/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

source ~/.nvm/nvm.sh
nvm use

case $1 in
pnpm)
pnpm install && pnpm run build
;;
npm)
npm install && npm run build
;;
*)
eval $1
;;
esac
20 changes: 20 additions & 0 deletions bin/nvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /bin/bash

do_check=false
do_use=false
while getopts eu opt; do
case $opt in
e) do_check=true;;
u) do_use=true;;
esac
done

source ~/.nvm/nvm.sh

if $do_check; then
command -v nvm
fi

if $do_use; then
nvm use
fi
6 changes: 6 additions & 0 deletions bin/wr
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env php
<?php

use Automattic\WooCommerce\Grow\WR\Commands\Branch;
use Automattic\WooCommerce\Grow\WR\Commands\Bulk;
use Automattic\WooCommerce\Grow\WR\Commands\Release;
use Automattic\WooCommerce\Grow\WR\Commands\Simulate;
use Automattic\WooCommerce\Grow\WR\Commands\VersionReplace;
use WR\Application;

Expand Down Expand Up @@ -41,6 +44,9 @@ $app->addCommands(
[
new Bulk(),
new VersionReplace(),
new Release(),
new Simulate(),
new Branch(),
]
);

Expand Down
Loading