Skip to content

Commit

Permalink
Merge pull request #53 from Mach30/install-cli-njk
Browse files Browse the repository at this point in the history
Install cli-njk
  • Loading branch information
j-simmons-phd authored Nov 6, 2023
2 parents 79f2b66 + 1dd5b32 commit 0e51fe7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This repo provides a workspace for Mach 30 volunteers to work on [Mach 30 Modeli
- npx v8.12.1 (included with nodejs)
- yarn v3.5.0
- oclif v3.10.0
- [cli-njk](https://github.com/elcharitas/cli-njk) v1.0.0
- Utilities
- git v2.40.1 with @capsulecorplab .gitconfig
- [gradle v8.1.1](https://docs.gradle.org/8.1.1/release-notes.html)
Expand Down
13 changes: 13 additions & 0 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
oclif_version: "3.10.0"
typescript_version: "5.1.3"
npm_cli_login_version: "1.0.0"
cli_njk_version: "1.0.0"

tasks: # Test Node JS Tools versions
- name: Install Yarn
Expand All @@ -108,12 +109,18 @@
- name: Get TypeScript Compiler version
shell: tsc --version | sed 's/[[:alpha:]|(|[:space:]]//g'
register: installed_tsc_version
- name: Get cli-njk version
shell: njk --version
register: installed_cli_njk_version
- name: Display node tool versions
debug:
msg: "Node = {{ installed_node_version.stdout }} | npm = {{ installed_npm_version.stdout }} | npx = {{ installed_npx_version.stdout }} | yarn = {{ installed_yarn_version.stdout }}"
- name: Display TypeScript Compiler version
debug:
msg: "tsc = {{ installed_tsc_version.stdout }}"
- name: Display cli-njk version
debug:
msg: "cli-njk = {{ installed_cli_njk_version.stdout }}"
- name: Test node version
fail:
msg: "NodeJS Version Error: Expected {{ v_node_version }} | Found {{ installed_node_version.stdout }}"
Expand All @@ -139,6 +146,10 @@
fail:
msg: "TypeScript Compiler Version Error: Expected {{ typescript_version }} | Found {{ installed_tsc_version.stdout }}"
when: installed_tsc_version.stdout != typescript_version
- name: Test cli-njk version
fail:
msg: "cli-njk Version Error: Expected {{ cli_njk_version }} | Found {{ installed_cli_njk_version.stdout }}"
when: installed_cli_njk_version.stdout != cli_njk_version

roles:
- role: grzegorznowak.nvm_node
Expand All @@ -155,6 +166,8 @@
version: "{{ typescript_version }}"
- name: npm-cli-login
version: "{{ npm_cli_login_version }}"
- name: cli-njk
version: "{{ cli_njk_version }}"

-
# install keychain, git, and @capsulecorplab .vimrc and .gitconfig
Expand Down

0 comments on commit 0e51fe7

Please sign in to comment.