Skip to content

Commit

Permalink
refactor: devScripts update (#233)
Browse files Browse the repository at this point in the history
* chore: updates from devScripts

* fix(deps): bump various deps

* test: enable color in gha output

* chore: bump dev scripts for color fix

* test: remove deprecated sf repos

---------

Co-authored-by: mshanemc <[email protected]>
  • Loading branch information
svc-cli-bot and mshanemc authored Mar 1, 2023
1 parent 49cf0bd commit 117d644
Show file tree
Hide file tree
Showing 4 changed files with 2,338 additions and 855 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
fail-fast: false
matrix:
repo:
- plugin-env
- plugin-generate
- plugin-login
- plugin-org
- plugin-data
- plugin-schema
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ coverage
docs

# -- CLEAN ALL
*.tsbuildinfo
.eslintcache
.wireit
node_modules

# --
Expand Down
104 changes: 89 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"types": "lib/exported.d.ts",
"license": "BSD-3-Clause",
"scripts": {
"build": "sf-build",
"build": "wireit",
"ci-docs": "yarn sf-ci-docs",
"clean": "sf-clean",
"clean-all": "sf-clean all",
"compile": "sf-compile",
"compile": "wireit",
"docs": "sf-docs",
"format": "sf-format",
"lint": "sf-lint",
"format": "wireit",
"lint": "wireit",
"lint-fix": "yarn sf-lint --fix",
"postcompile": "tsc -p test",
"prepack": "sf-prepack",
"prepare": "sf-install",
"pretest": "sf-compile-test",
"test": "sf-test"
"test": "wireit",
"test:only": "wireit"
},
"repository": "salesforcecli/sf-plugins-core",
"bugs": {
Expand All @@ -32,17 +32,17 @@
"/messages"
],
"dependencies": {
"@oclif/core": "^2.2.1",
"@salesforce/core": "^3.33.1",
"@salesforce/kit": "^1.8.3",
"@salesforce/ts-types": "^1.7.1",
"@oclif/core": "^2.3.1",
"@salesforce/core": "^3.33.5",
"@salesforce/kit": "^1.9.0",
"@salesforce/ts-types": "^1.7.3",
"chalk": "^4",
"inquirer": "^8.2.5"
},
"devDependencies": {
"@oclif/test": "^2.2.20",
"@oclif/test": "^2.3.8",
"@salesforce/dev-config": "^3.0.0",
"@salesforce/dev-scripts": "^3.1.0",
"@salesforce/dev-scripts": "^4.1.2",
"@salesforce/prettier-config": "^0.0.2",
"@salesforce/ts-sinon": "^1.4.2",
"@types/inquirer": "^8.2.3",
Expand All @@ -56,7 +56,7 @@
"eslint-config-salesforce-typescript": "^1.1.1",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^39.7.0",
"eslint-plugin-jsdoc": "^40.0.0",
"husky": "^7.0.4",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
Expand All @@ -66,9 +66,83 @@
"sinon": "10.0.1",
"strip-ansi": "6.0.1",
"ts-node": "^10.7.0",
"typescript": "^4.9.4"
"typescript": "^4.9.5",
"wireit": "^0.9.5"
},
"publishConfig": {
"access": "public"
},
"wireit": {
"build": {
"dependencies": [
"compile",
"lint"
]
},
"compile": {
"command": "tsc -p . --pretty --incremental",
"files": [
"src/**/*.ts",
"tsconfig.json",
"messages/**"
],
"output": [
"lib/**",
"*.tsbuildinfo"
],
"clean": "if-file-deleted"
},
"format": {
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
"files": [
"src/**/*.ts",
"test/**/*.ts",
"schemas/**/*.json",
"command-snapshot.json",
".prettier*"
],
"output": []
},
"lint": {
"command": "eslint src test --color --cache --cache-location .eslintcache",
"files": [
"src/**/*.ts",
"test/**/*.ts",
"messages/**",
".eslint*"
],
"output": []
},
"test:compile": {
"command": "tsc -p \"./test\" --pretty",
"files": [
"test/**/*.ts",
"tsconfig.json",
"test/tsconfig.json"
],
"output": []
},
"test": {
"dependencies": [
"test:only",
"test:compile"
]
},
"test:only": {
"command": "nyc mocha \"test/**/*.test.ts\"",
"env": {
"FORCE_COLOR": "2"
},
"files": [
"test/**/*.ts",
"src/**/*.ts",
"tsconfig.json",
".mocha*",
"test/tsconfig.json",
"!*.nut.ts",
".nycrc"
],
"output": []
}
}
}
}
Loading

0 comments on commit 117d644

Please sign in to comment.