Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Run ts-toolkit init to standardise build process #139

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# don't lint the linter config
.eslintrc.js
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
dist
code-docs
out
**/.eslintrc.js
commitlint.config.js
jest.config.ts
build
# don't lint nyc coverage output
coverage
# don't lint generated types
**/generated/types.d.ts
**/generated/types.ts
# don't lint ide files
.idea
.vscode
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"root": true,
"env": {
"node": true
},
"extends": ["@makerx/eslint-config"]
}
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ updates:
directory: '/'
schedule:
interval: 'weekly'
ignore:
- dependency-name: 'node-fetch'
# node-fetch v3.* is esm-only
versions: ['3.x']
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:

permissions:
contents: read
packages: read
checks: write

jobs:
pull_request:
uses: makerxstudio/shared-config/.github/workflows/node-ci.yml@main
with:
node-version: 20.x
audit-script: npm run audit
output-test-results: true
test-script: npm run test:ci
run-build: true
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ on:
push:
branches:
- main
paths-ignore:
- '**/*.md'

permissions:
contents: read
packages: write
checks: write

jobs:
ci:
uses: makerxstudio/shared-config/.github/workflows/node-ci.yml@main
with:
node-version: 20.x
audit-script: npm run audit
output-test-results: true
test-script: npm run test:ci

publish:
needs: ci
uses: makerxstudio/shared-config/.github/workflows/node-publish-public.yml@main
with:
node-version: 20.x
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Dependency directories
Expand All @@ -21,8 +22,18 @@ node_modules/
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Editor/OS directories and files
.DS_Store
*.suo

# Jetbrains
.idea
.idea/shelf/
.idea/workspace.xml
# Editor-based HTTP Client requests
.idea/httpRequests/
# Datasource local storage ignored files
.idea/dataSources/
.idea/dataSources.local.xml

# yarn v2
.yarn/cache
Expand All @@ -33,12 +44,21 @@ node_modules/

# Compiled code
dist/
build/

# Coverage report
coverage

# Test results
test-results.xml

# Website & Code docs generation
code-docs/
out/

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions .nsprc
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
{
"1092330": {
"active": true,
"notes": "The latest version of word-wrap was published 6 years ago",
"expiry": "2023-11-01"
}
}
}
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# don't ever format node_modules
node_modules
# don't lint format output (make sure it's set to your correct build folder name)
dist
build
# don't format nyc coverage output
coverage
# don't format generated types
**/generated/types.d.ts
**/generated/types.ts
# don't format ide files
.idea
14 changes: 14 additions & 0 deletions .tstoolkitrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { TsToolkitConfig } from "@makerx/ts-toolkit";

const config: TsToolkitConfig = {
packageConfig: {
srcDir: 'src',
outDir: 'dist',
moduleType: 'module',
main: 'index.ts',
exports: {
'.': 'index.ts'
}
}
}
export default config
Loading
Loading