-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from viqueen/issue/DEVBOX-2-prepare-for-version-2
Issue/devbox 2 prepare for version 2
- Loading branch information
Showing
22 changed files
with
1,197 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.10.0 | ||
v16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## environment | ||
|
||
I use **[nvm](https://github.com/nvm-sh/nvm)** to manage my node versions. | ||
|
||
```bash | ||
brew install nvm | ||
``` | ||
|
||
## development setup | ||
|
||
- create a fork of the repo, clone it, and install the dependencies | ||
|
||
```bash | ||
cd atlassian-devbox | ||
nvm install | ||
npm install | ||
``` | ||
|
||
- set up git hooks | ||
|
||
```bash | ||
npx husky install | ||
``` | ||
|
||
- build it in watch mode | ||
|
||
```bash | ||
npm run build -- --watch | ||
``` | ||
|
||
- you can now use the cli | ||
|
||
```bash | ||
./atlasdev <product> <command_name> [command_args] [command_options] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /usr/bin/env bash | ||
|
||
_with_arguments (){ | ||
count=${1}; | ||
shift; | ||
if [[ "$#" -lt ${count} ]]; then | ||
echo "missing arguments, expected at least ${count} but received $#"; | ||
exit 1; | ||
fi | ||
} | ||
|
||
_with_arguments 1 "$@" | ||
product=$1 | ||
shift; | ||
|
||
node "./dist/bin/${product}.js" "$@" |
Oops, something went wrong.