Skip to content

Commit

Permalink
lits and co
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlautier committed Aug 16, 2024
1 parent 04aabaa commit 5e6c4d9
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 50 deletions.
24 changes: 16 additions & 8 deletions .github/linters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{

Check warning on line 1 in .github/linters/tsconfig.json

View workflow job for this annotation

GitHub Actions / Lint Codebase

File ignored by default.
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["../../__tests__/**/*", "../../src/**/*"],
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"]
}
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": [
"../../__tests__/**/*",
"../../src/**/*"
],
"exclude": [
"../../dist",
"../../node_modules",
"../../coverage",
"*.json"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
id: test-action
uses: ./
with:
milliseconds: 2000
preid: "dev"

- name: Print Output
id: output
Expand Down
30 changes: 15 additions & 15 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{

Check warning on line 1 in .prettierrc.json

View workflow job for this annotation

GitHub Actions / Lint Codebase

File ignored by default.
"printWidth": 80,
"tabWidth": 2,
"useTabs": true,
"semi": false,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "avoid",
"proseWrap": "always",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
}
"printWidth": 80,
"tabWidth": 2,
"useTabs": true,
"semi": false,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "avoid",
"proseWrap": "always",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
}
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{

Check warning on line 1 in .vscode/settings.json

View workflow job for this annotation

GitHub Actions / Lint Codebase

File ignored by default.
"cSpell.words": [
"preid"
]
"cSpell.words": [
"preid"
]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Create a GitHub Action Using TypeScript
# Version Builder
Generates new version based on specified version (via input, or will read `package.json` of the repo) and add preid based on branches.

[![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)
![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)
Expand Down
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: "Version Builder"
description:
"Generates/modifies version number based on version, branch and settings."
description: "Generates/modifies version number based on version, branch and settings."
author: "Stephen Lautier"

# Add your action's branding here. This will appear on the GitHub Marketplace.
Expand All @@ -12,8 +11,7 @@ branding:
inputs:
version:
required: false
description:
"Version to be used, if not specified will read from `package.json`."
description: "Version to be used, if not specified will read from `package.json`."
# default: "default value if applicable"
force-preid:
required: false
Expand Down
41 changes: 23 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"rootDir": "./src",
"moduleResolution": "NodeNext",
"baseUrl": "./",
"sourceMap": true,
"outDir": "./dist",
"noImplicitAny": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"newLine": "lf"
},
"exclude": ["./dist", "./node_modules", "./__tests__", "./coverage"]
}
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"rootDir": "./src",
"moduleResolution": "NodeNext",
"baseUrl": "./",
"sourceMap": true,
"outDir": "./dist",
"noImplicitAny": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"newLine": "lf"
},
"exclude": [
"./dist",
"./node_modules",
"./__tests__",
"./coverage"
]
}

0 comments on commit 5e6c4d9

Please sign in to comment.