-
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.
Add a framework to reuse some build files across multiple open-source…
… projects (#5) ## PRs in the Stack - ➡ #5 (The stack is managed by [git-grok](https://github.com/dimikot/git-grok).)
- Loading branch information
Showing
16 changed files
with
124 additions
and
63 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
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,9 +1,9 @@ | ||
"use strict"; | ||
const config = require("./.eslintrc.base.js")(__dirname); | ||
config.rules["import/no-extraneous-dependencies"] = "error"; | ||
config.rules["@typescript-eslint/explicit-function-return-type"] = [ | ||
"error", | ||
{ allowExpressions: true }, | ||
]; | ||
config.rules["lodash/import-scope"] = ["error", "method"]; | ||
module.exports = config; | ||
module.exports = require("./.eslintrc.base.js")(__dirname, { | ||
"import/no-extraneous-dependencies": "error", | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"error", | ||
{ allowExpressions: true }, | ||
], | ||
"lodash/import-scope": ["error", "method"], | ||
}); |
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,5 +1,6 @@ | ||
dist | ||
|
||
# Common in both .gitignore and .npmignore | ||
node_modules | ||
package-lock.json | ||
yarn.lock | ||
|
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,8 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"mhutchie.git-graph", | ||
"trentrand.git-rebase-shortcuts" | ||
] | ||
} |
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,20 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "git grok: push local commits as individual PRs", | ||
"detail": "Install git-grok first: https://github.com/dimikot/git-grok", | ||
"type": "shell", | ||
"command": "git grok", | ||
"problemMatcher": [], | ||
"hide": false | ||
}, | ||
{ | ||
"label": "git rebase --interactive", | ||
"detail": "Opens a UI for interactive rebase (install \"Git rebase shortcuts\" extension).", | ||
"type": "shell", | ||
"command": "GIT_EDITOR=\"code --wait\" git rebase -i", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
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,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf dist yarn.lock package-lock.json pnpm-lock.yaml *.log |
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,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
npm run build | ||
npm run lint | ||
npm run test | ||
npm publish --access=public |
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf docs | ||
typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-merge-modules | ||
sed -i '' -E 's#packages/[^/]+/##g' $(find docs -type f -name '*.md') |
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,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
eslint . --ext .ts --cache --cache-location dist/.eslintcache |
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
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,31 @@ | ||
{ | ||
"include": ["src/**/*"], | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"disableReferencedProjectLoad": true, | ||
"disableSourceOfProjectReferenceRedirect": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"incremental": true, | ||
"lib": ["ES2019"], | ||
"module": "Node16", | ||
"noEmitOnError": true, | ||
"noErrorTruncation": true, | ||
"noImplicitOverride": true, | ||
"noImplicitReturns": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"outDir": "dist", | ||
"pretty": true, | ||
"removeComments": false, | ||
"resolveJsonModule": true, | ||
"rootDir": "src", | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "ES2019", | ||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", | ||
"types": ["node", "jest"] | ||
} | ||
} |
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,31 +1,4 @@ | ||
{ | ||
"include": ["src/**/*"], | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"disableReferencedProjectLoad": true, | ||
"disableSourceOfProjectReferenceRedirect": true, | ||
"esModuleInterop": true, | ||
"experimentalDecorators": true, | ||
"incremental": true, | ||
"lib": ["ES2019"], | ||
"module": "Node16", | ||
"noEmitOnError": true, | ||
"noErrorTruncation": true, | ||
"noImplicitOverride": true, | ||
"noImplicitReturns": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"outDir": "dist", | ||
"pretty": true, | ||
"removeComments": false, | ||
"resolveJsonModule": true, | ||
"rootDir": "src", | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "ES2019", | ||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo", | ||
"types": ["node", "jest"] | ||
} | ||
"extends": "./tsconfig.base.json", | ||
"include": ["src/**/*"] | ||
} |
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,20 @@ | ||
"use strict"; | ||
const { basename } = require("path"); | ||
|
||
module.exports = { | ||
entryPoints: ["src"], | ||
exclude: ["**/internal/**", "**/__tests__/**", "**/node_modules/**"], | ||
entryPointStrategy: "expand", | ||
mergeModulesMergeMode: "project", | ||
sort: ["source-order"], | ||
out: "docs", | ||
logLevel: "Warn", | ||
hideGenerator: true, | ||
excludeInternal: true, | ||
excludePrivate: true, | ||
categorizeByGroup: true, | ||
hideInPageTOC: true, | ||
gitRevision: "master", | ||
sourceLinkTemplate: `https://github.com/clickup/${basename(__dirname)}/blob/master/{path}#L{line}`, | ||
basePath: ".", | ||
}; |
This file was deleted.
Oops, something went wrong.