Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update to oclif/core * fix: remove unneeded code * fix: unit test & remove more unnecessary stuff * chore: update build image * fix: remove topicSeparator * chore: update to sf-cli standard CI * chore: don't export oclif help * fix: unit test * chore: update oclif/test dep and ci * chore: fix ci again...
- Loading branch information
Showing
26 changed files
with
540 additions
and
3,086 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 |
---|---|---|
@@ -1,65 +1,32 @@ | ||
--- | ||
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: | ||
name: Run tests | ||
command: yarn test | ||
node-12: | ||
<<: *test | ||
docker: | ||
- image: node:12 | ||
node-10: | ||
<<: *test | ||
docker: | ||
- image: node:10 | ||
release: | ||
<<: *test | ||
steps: | ||
- add_ssh_keys | ||
- checkout | ||
- restore_cache: *restore_cache | ||
- run: | ||
name: Install release dependencies | ||
command: | | ||
yarn global add @oclif/semantic-release@3 semantic-release@17 | ||
yarn --frozen-lockfile | ||
- run: | ||
name: Cut release | ||
command: | | ||
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH | ||
semantic-release -e @oclif/semantic-release | ||
- save_cache: | ||
key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} | ||
paths: | ||
- ~/cli/node_modules | ||
- /usr/local/share/.cache/yarn | ||
- /usr/local/share/.config/yarn | ||
version: 2.1 | ||
|
||
orbs: | ||
release-management: salesforce/npm-release-management@4 | ||
|
||
workflows: | ||
version: 2 | ||
"@oclif/plugin-help": | ||
test-and-release: | ||
jobs: | ||
- node-latest | ||
- node-12 | ||
- node-10 | ||
- release: | ||
context: org-global | ||
- release-management/test-package: | ||
matrix: | ||
parameters: | ||
os: | ||
- linux | ||
# - windows | ||
node_version: | ||
- latest | ||
- lts | ||
- maintenance | ||
exclude: | ||
- os: windows | ||
node_version: lts | ||
- os: windows | ||
node_version: maintenance | ||
- release-management/release-package: | ||
context: SF-CLI-RELEASE-PROCESS | ||
filters: | ||
branches: {only: master} | ||
branches: | ||
only: main | ||
github-release: true | ||
requires: | ||
- node-latest | ||
- node-12 | ||
- node-10 | ||
- release-management/test-package |
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,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach", | ||
"port": 9229, | ||
"skipFiles": ["<node_internals>/**"] | ||
}, | ||
] | ||
} |
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,19 @@ | ||
#!/usr/bin/env node | ||
|
||
const oclif = require('@oclif/core'); | ||
|
||
const path = require('path'); | ||
const project = path.join(__dirname, '..', 'tsconfig.json'); | ||
|
||
// In dev mode -> use ts-node and dev plugins | ||
process.env.NODE_ENV = 'development'; | ||
|
||
require('ts-node').register({ project }); | ||
// oclif.settings.tsconfigPath = project; | ||
|
||
// In dev mode, always show stack traces | ||
// Waiting for https://github.com/oclif/core/pull/147 | ||
// oclif.settings.debug = true; | ||
|
||
// Start the CLI | ||
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle')); |
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 @@ | ||
@echo off | ||
|
||
node "%~dp0\dev" %* |
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,4 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
require('@oclif/command').run() | ||
.catch(require('@oclif/errors/handle')) | ||
require('@oclif/core').run() | ||
.then(require('@oclif/core/flush')) | ||
.catch(require('@oclif/core/handle')) |
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.
Oops, something went wrong.