Skip to content

Commit

Permalink
build: use tsup for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 14, 2024
1 parent 2c57175 commit 2559832
Show file tree
Hide file tree
Showing 16 changed files with 1,352 additions and 73 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.DS_Store
node_modules
dist
build/

# local history folder
/.history
/.history
61 changes: 43 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@
{
"typescript.validate.enable": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"files.trimTrailingWhitespace": true,
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.history": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.js.map": true,
"node_modules": true
}
"typescript.validate.enable": true,
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"files.trimTrailingWhitespace": true,
"files.autoSave": "onFocusChange",
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.history": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.js.map": true,
"node_modules": true
},
"markdownlint.config": {
"MD007": {
"indent": 4
},
"MD026": false,
"MD033": false,
"MD030": {
"ul_single": 3,
"ul_multi": 3
}
},
"editor.codeActionsOnSave": {
"source.fixAll.markdownlint": "explicit"
},
"[dotenv]": {
"editor.formatOnSave": false
},
"json.schemas": [
{
"url": "./tsup.schema.json",
"fileMatch": ["package.json", "tsup.config.json"]
}
]
}
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"main": "dist/index.js",
"module": "dist/crestron-ch5-helper.esm.js",
"typings": "dist/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/Norgate-AV/crestron-ch5-helper.git"
Expand All @@ -28,10 +29,10 @@
"scripts": {
"start": "tsdx watch",
"prebuild": "pnpm clean && pnpm lint:fix",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "tsup",
"test": "vitest",
"lint": "tsc && eslint .",
"lint:fix": "tsc && eslint . --fix",
"prepare": "husky",
"size": "size-limit",
"analyze": "size-limit --why",
Expand Down Expand Up @@ -60,6 +61,7 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@size-limit/preset-small-lib": "^11.0.2",
"@types/node": "^20.11.17",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"all-contributors-cli": "^6.20.0",
Expand All @@ -72,8 +74,11 @@
"rimraf": "^5.0.5",
"semantic-release": "^23.0.2",
"size-limit": "^11.0.2",
"terser": "^5.27.0",
"tsdx": "^0.14.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
}
}
Loading

0 comments on commit 2559832

Please sign in to comment.