Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start the move to a cli instead of an environment * Add the package command :) * Add a deploy command * We are a cli package, so preferGlobal * Change the packaging done on deploy to packaged * If the deploymentResult wasn't a success, show the error * Add the create subcommand with basic items and show it compiles by compiling * Add the .gitignore to the created files * Change the main class file to not be so generic * Generate a readme with some information and links
- Loading branch information
1 parent
d817834
commit 2c94a72
Showing
78 changed files
with
5,578 additions
and
6,548 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
version: 2 | ||
jobs: | ||
node-latest: &test | ||
docker: | ||
- image: node:latest | ||
working_directory: ~/cli | ||
steps: | ||
- checkout | ||
- restore_cache: &restore_cache | ||
keys: | ||
- v1-npm-{{checksum ".circleci/config.yml"}}-{{ checksum "package-lock.json"}} | ||
- v1-npm-{{checksum ".circleci/config.yml"}} | ||
- run: | ||
name: Install dependencies | ||
command: .circleci/greenkeeper | ||
- run: ./bin/run --version | ||
- run: ./bin/run --help | ||
- run: | ||
name: Testing | ||
command: npm test | ||
- run: | ||
name: Submitting code coverage to codecov | ||
command: | | ||
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov | ||
curl -s https://codecov.io/bash | bash | ||
node-8: | ||
<<: *test | ||
docker: | ||
- image: node:8 | ||
release: | ||
<<: *test | ||
steps: | ||
- add_ssh_keys | ||
- checkout | ||
- restore_cache: *restore_cache | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
npm install -g @oclif/semantic-release@3 semantic-release@15 | ||
npm install | ||
- run: | ||
name: Cutting release | ||
command: | | ||
semantic-release -e @oclif/semantic-release | ||
- save_cache: | ||
key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} | ||
paths: | ||
- ~/cli/node_modules | ||
- ~/.npm | ||
- /usr/local/lib/node_modules | ||
|
||
workflows: | ||
version: 2 | ||
"@rocket.chat/apps-cli": | ||
jobs: | ||
- node-latest | ||
- node-8 | ||
- release: | ||
context: org-global | ||
filters: | ||
branches: {only: master} | ||
requires: | ||
- node-latest | ||
- node-8 |
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH | ||
|
||
if [[ "$CIRCLE_BRANCH" != greenkeeper/* ]]; then | ||
yarn | ||
# yarn check | ||
exit 0 | ||
fi | ||
|
||
if [[ ! -z "$GIT_EMAIL" ]] & [[ ! -z "$GIT_USERNAME" ]]; then | ||
git config --global push.default simple | ||
git config --global user.email "$GIT_EMAIL" | ||
git config --global user.name "$GIT_USERNAME" | ||
fi | ||
|
||
if [[ ! -x "$(command -v greenkeeper-lockfile-update)" ]]; then | ||
yarn global add greenkeeper-lockfile@1 | ||
fi | ||
|
||
greenkeeper-lockfile-update | ||
yarn | ||
greenkeeper-lockfile-upload |
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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
* text=auto | ||
*.js text eol=lf | ||
*.ts text eol=lf |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extension": [ | ||
".ts" | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"**/*.d.ts" | ||
], | ||
"all": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.