0.9.4 • Published 1 year ago

@teer/cli v0.9.4

Weekly downloads
-
License
UNLICENSED
Repository
bitbucket
Last release
1 year ago

teer-cli

Digiteer command line utility

Prerequisites

  • Nodejs v12.x or higher
  • npm v6.x or higher
  • rbenv or rvm for RoR projects
  • yarn for ReactJs and NodeJs projects
  • git source code management

Install

npm i -g @teer/cli

Verify installation by running:

teer --version

If you get a write access error on Windows, you'll need to run WSL or PowerShell as Administrator.

If you don't want to install or having trouble with installation, you can use npx. See usage below.

Usage

teer <command> [...options]

Using npx:

npx @teer/cli <command> [...options]

Commands

  1. new-ror
  2. new-react
  3. new-api
  4. heroku
  5. aws

new-ror

Create a new Ruby on Rails project.

teer new-ror <site-name> [<starter-url>]
ArgumentsDescription
site-nameYour Ruby on Rails site name which is also used to create the project directory.
starter-urlA Ruby on Rails starter URL. Defaults to git@bitbucket.org:digiteerbit/ror-starter.git.

Examples

teer new-ror my-awesome-site
  • Create an RoR site named my-ecom-site using a different starter repo.
teer new-ror my-ecom-site git@bitbucket.org:digiteerbit/kidlat-ror-starter.git

new-react

Create a new ReactJs project

teer new-react <site-name> [<starter-url>]
ArgumentsDescription
site-nameYour ReactJs site name which is also used to create the project directory.
starter-urlA ReactJs starter URL. Defaults to git@bitbucket.org:digiteerbit/react-starter.git.

Examples

teer new-react my-awesome-site
  • Create a ReactJs site named my-ecom-site using a different starter repo.
teer new-react my-ecom-site git@bitbucket.org:digiteerbit/kidlat-react-starter.git

new-api

Create a new API project

teer new-api <api-name> [<starter-url>]
ArgumentsDescription
api-nameYour API name which is also used to create the project directory.
starter-urlAn API starter URL. Defaults to git@bitbucket.org:digiteerbit/api-starter.git.

Examples

teer new-api my-awesome-api
  • Create an API named my-ecom-api using a different starter repo.
teer new-api my-ecom-api git@bitbucket.org:digiteerbit/kidlat-api-starter.git

heroku

Execute heroku commands

teer heroku <command> [...]
commandsDescription
setupSetup RoR project. If app does not exist, it will be created if you are using Digiteer heroku account.
pg:modifyModify PostgreSQL server plan.
pg:backupCreate and download PostgreSQL backup.

aws

Execute aws commands

teer aws <command> [...]
commandsDescription
createCreate AWS Account under Digiteer Client group.

Contributing

  1. Clone

    git clone git@bitbucket.org:digiteerbit/teer-cli.git
    cd teer-cli
  2. Create your feature branch from next branch. Example: feature/new-feature-name.

    git checkout next
    git checkout -b feature/new-feature-name
  3. Install packages.

    npm i
  4. On a different terminal window, run build:watch.

    npm run build:watch

    The script will build the project when it detects code changes.

  5. Link this package locally so you can run it without publishing to npm.

    npm link
  6. Start coding your new feature.

  7. Assuming you did steps 4 and 5 correctly, test your changes locally by going to any folder and running the teer command.
  8. Create automated test for your new feature if possible.
  9. When you're done testing locally, unlink your package.

    npm unlink
  10. Push your branch feature/new-feature-name.

  11. Create pull request.
  12. Nudge your peers to approve your pull request.
  13. Wait for it to be merged.
0.9.4

1 year ago

0.9.3

2 years ago

0.9.2

2 years ago

0.9.0

2 years ago

0.9.1

2 years ago

0.8.1

3 years ago

0.8.2

2 years ago

0.8.0

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.5.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.4.1

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago