-
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.
Merge pull request #9 from Contentstack-Solutions/feat/CS-35686
CLI | contentstack-cli-content-type plugin required code update
- Loading branch information
Showing
30 changed files
with
22,274 additions
and
12,538 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 @@ | ||
/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,11 +1,51 @@ | ||
{ | ||
"extends": [ | ||
"oclif", | ||
"oclif-typescript" | ||
], | ||
"rules": { | ||
"extends": [ | ||
// "oclif", | ||
"oclif-typescript", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"args": "none" | ||
} | ||
], | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"semi": "off", | ||
"@typescript-eslint/type-annotation-spacing": "error", | ||
"@typescript-eslint/no-redeclare": "off", | ||
"eqeqeq": [ | ||
"error", | ||
"smart" | ||
], | ||
"id-match": "error", | ||
"no-eval": "error", | ||
"no-var": "error", | ||
"quotes": "off", | ||
"indent": "off", | ||
"camelcase": "off", | ||
"comma-dangle": "off", | ||
"arrow-parens": "off", | ||
"operator-linebreak": "off", | ||
"object-curly-spacing": "off", | ||
"node/no-missing-import": "off", | ||
"padding-line-between-statements": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"unicorn/no-abusive-eslint-disable": "off", | ||
"unicorn/consistent-function-scoping": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off" | ||
} | ||
} | ||
"@typescript-eslint/camelcase": "off", | ||
"no-process-exit":"off", | ||
"unicorn/no-process-exit": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
} |
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,54 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
name: Build and upload | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "16.x" | ||
- name: Installing dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run prepack | ||
- name: Upload dist | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: lib | ||
path: lib | ||
|
||
release: | ||
name: Download dist and release | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "16.x" | ||
- name: Installing dependencies | ||
run: npm install | ||
- name: Download dist | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: lib | ||
path: lib | ||
- name: Display dirs | ||
run: ls -R | ||
- name: Release | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} |
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
Oops, something went wrong.