forked from Dhanielk/sfdc_merge
-
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.
feat: convert to typescript and oclif
- Loading branch information
Showing
36 changed files
with
3,613 additions
and
1,455 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,61 @@ | ||
--- | ||
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 "yarn.lock"}} | ||
- v1-npm-{{checksum ".circleci/config.yml"}} | ||
- run: | ||
name: Install dependencies | ||
command: yarn | ||
- run: ./bin/run --version | ||
- run: ./bin/run --help | ||
- run: | ||
name: Testing | ||
command: yarn 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-12: | ||
<<: *test | ||
docker: | ||
- image: node:12 | ||
node-10: | ||
<<: *test | ||
docker: | ||
- image: node:10 | ||
cache: | ||
<<: *test | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: yarn | ||
- save_cache: | ||
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} | ||
paths: | ||
- ~/cli/node_modules | ||
- /usr/local/share/.cache/yarn | ||
- /usr/local/share/.config/yarn | ||
|
||
workflows: | ||
version: 2 | ||
'sfdx-md-merge-driver': | ||
jobs: | ||
- node-latest | ||
- node-12 | ||
- node-10 | ||
- cache: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ |
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,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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 @@ | ||
/lib |
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,19 +1,20 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": ["standard"], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"extends": ["oclif", "oclif-typescript"], | ||
"rules": { | ||
"space-before-function-paren": "off", | ||
"no-console": "off" | ||
"indent": "off", | ||
"operator-linebreak": "off", | ||
"node/no-missing-require": [ | ||
"error", | ||
{ | ||
"tryExtensions": [".ts", ".js"] | ||
} | ||
], | ||
"node/no-missing-import": [ | ||
"error", | ||
{ | ||
"tryExtensions": [".ts", ".js"] | ||
} | ||
] | ||
} | ||
} |
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,5 +1,11 @@ | ||
/node_modules | ||
*-debug.log | ||
*-error.log | ||
/.nyc_output | ||
/test/cache | ||
/dist | ||
/lib | ||
/package-lock.json | ||
/tmp | ||
/node_modules | ||
/sfdx-md-merge-driver.1 | ||
.vscode | ||
/.vscode | ||
/coverage |
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,4 @@ | ||
module.exports = { | ||
'*.ts': ['prettier --write', 'git add'], | ||
'**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit', | ||
} |
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,4 @@ | ||
{ | ||
"extends": "@istanbuljs/nyc-config-typescript", | ||
"reporter": ["html","text"] | ||
} |
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,5 +1,6 @@ | ||
{ | ||
"trailingComma": "none", | ||
"semi": false, | ||
"singleQuote": true, | ||
"semi": false | ||
"trailingComma": "all", | ||
"bracketSpacing": false | ||
} |
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,14 @@ | ||
language: node_js | ||
node_js: | ||
- node | ||
|
||
cache: yarn | ||
|
||
script: | ||
- ./bin/run --version | ||
- ./bin/run --help | ||
- yarn run test | ||
|
||
after_success: | ||
- ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov | ||
- bash < (curl -s https://codecov.io/bash) |
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 @@ | ||
theme: jekyll-theme-cayman | ||
theme: jekyll-theme-cayman |
Oops, something went wrong.