Skip to content

Commit

Permalink
Merge pull request #11 from viqueen/issue/DEVBOX-2-prepare-for-version-2
Browse files Browse the repository at this point in the history
Issue/devbox 2 prepare for version 2
  • Loading branch information
viqueen authored Nov 8, 2022
2 parents 56095d2 + a7f4a82 commit 6949ade
Show file tree
Hide file tree
Showing 22 changed files with 1,197 additions and 797 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run ci:build
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.10.0
v16
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
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]
```
16 changes: 16 additions & 0 deletions atlasdev
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" "$@"
Loading

0 comments on commit 6949ade

Please sign in to comment.