-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* install-ts * TS-rewrite * rearrage-table-insertion * ci-testing-filters * yml-in-filters * rename-stat.file-to-stat.path * cleanup-ci-filters * coverage-codeclimate * fix-covrage-script * fix-covrage-script * fix-covrage-node-version * fix-covrage-node-version * fix-covrage-node-version * coverage-reporter-settings * release-script-fixes * release-script-artefacts * release-script-artefacts-fixes * changedir-in-publish-workflow * changedir-in-publish-workflow * changedir-in-publish-workflow * changedir-in-publish-workflow * changedir-in-publish-workflow * remove-gpr-publish * dependency-upgrades * remove-unnecessary-files-from-bundle * ready-for-1.0.0
- Loading branch information
1 parent
36a699b
commit abdf659
Showing
41 changed files
with
1,281 additions
and
565 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 |
---|---|---|
|
@@ -15,4 +15,4 @@ ratings: | |
paths: | ||
- "**.js" | ||
- "**.module" | ||
exclude_paths: [] | ||
exclude_paths: [ '**/*.spec.ts' ] |
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,2 @@ | ||
**/*{.,-}min.js | ||
dist |
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,14 +1,15 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2017 | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
|
||
"env": { | ||
"es6": true | ||
}, | ||
"plugins": ["prettier"], | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"rules": { | ||
"prettier/prettier": "error" | ||
}, | ||
"extends": ["plugin:prettier/recommended"] | ||
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"] | ||
} |
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 |
---|---|---|
|
@@ -7,16 +7,14 @@ on: | |
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node-version: [12.x, 14.x, 16.x] | ||
node-version: [14.x, 16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
|
@@ -27,3 +25,24 @@ jobs: | |
- run: npm i -g yarn | ||
- run: yarn install | ||
- run: yarn test | ||
|
||
coverage: | ||
needs: [ test ] | ||
name: coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
- run: npm install -g yarn | ||
- run: yarn install | ||
- run: yarn build | ||
- uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: yarn run test:coverage | ||
coverageLocations: | | ||
${{github.workspace}}/coverage/*.lcov:lcov | ||
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 |
---|---|---|
|
@@ -36,3 +36,5 @@ jspm_packages | |
# Optional REPL history | ||
.node_repl_history | ||
.DS_Store | ||
dist | ||
stats |
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 @@ | ||
!dist | ||
.github | ||
.husky | ||
.vscode | ||
stats | ||
src | ||
.codeclimate.yml | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.prettier* | ||
rollup.config.js | ||
tsconfig.json | ||
jest.config.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"gitonly", | ||
"typecheck" | ||
] | ||
} |
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,46 @@ | ||
declare module 'git-state'; | ||
|
||
type TableHeaderType = 'long' | 'short'; | ||
|
||
type TableHeader = | ||
| 'displayPath' | ||
| 'branch' | ||
| 'ahead' | ||
| 'dirty' | ||
| 'untracked' | ||
| 'stashes'; | ||
|
||
type Stat = { | ||
path: string; | ||
stat: FileSystem.Stats | null; | ||
}; | ||
|
||
type GitStatus = { | ||
branch: string; | ||
issues: string; | ||
untracked: string; | ||
ahead: string; | ||
stashes: string; | ||
dirty: string; | ||
}; | ||
|
||
interface ExtendedGitStatus extends GitStatus { | ||
git: boolean; | ||
path: string; | ||
displayPath: string; | ||
} | ||
|
||
interface InsertFn { | ||
(path: string, gitStatus: GitStatus): void; | ||
} | ||
|
||
interface DebugFn { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(...args: any[]): void; | ||
} | ||
|
||
type Options = { | ||
debug: DebugFn; | ||
insert: InsertFn; | ||
showGitOnly: boolean; | ||
}; |
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,8 @@ | ||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ | ||
|
||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
rootDir: '.', | ||
coverageReporters: [['lcov']], | ||
}; |
Oops, something went wrong.