Skip to content

Commit

Permalink
Merge pull request #2 from Dup4/chore-upgrade
Browse files Browse the repository at this point in the history
Upgrade Deps
  • Loading branch information
Dup4 authored Jan 24, 2024
2 parents de2726e + 24dcf14 commit 0fbccce
Show file tree
Hide file tree
Showing 14 changed files with 1,976 additions and 704 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

strategy:
matrix:
node: [16.x, 18.x]
node: [18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
Expand Down
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

55 changes: 35 additions & 20 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"cSpell.words": [
"antfu",
"bumpp",
"esmo",
"esno",
"pnpm",
"typecheck",
"vite",
"vitest"
],
"typescript.tsdk": "node_modules/typescript/lib",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.tabSize": 2,
"editor.insertSpaces": true,
"prettier.enable": false,
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.experimental.useFlatConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml"
],
"cSpell.words": [
"antfu",
"bumpp",
"Delivr",
"esmo",
"esno",
"pnpm",
"taze",
"typecheck",
"vite",
"vitest"
]
}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
[![Test][gh-ci-test-badge]][gh-ci-test]
[![Lint][gh-ci-lint-badge]][gh-ci-lint]
[![GitHub release][gh-release-badge]][gh-release]
[![License][license-image-mit]][license-link-mit]
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@dup4/starter-ts/badge)](https://www.jsdelivr.com/package/npm/@dup4/starter-ts)

## Tutorial

* For the first release of a private package, similar to `@dup4/starter-ts`, you need to use the following command:
* `pnpm run release --access public`


## Sponsors

<p align="center">
Expand All @@ -23,6 +24,8 @@
[MIT](./LICENSE) License © 2022 - PRESENT [Dup4][dup4]

[dup4]: https://github.com/Dup4
[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
[license-link-mit]: https://mit-license.org/
[gh-ci-test-badge]: https://github.com/Dup4/starter-ts/actions/workflows/test.yml/badge.svg
[gh-ci-test]: https://github.com/Dup4/starter-ts/actions/workflows/test.yml
[gh-ci-lint-badge]: https://github.com/Dup4/starter-ts/actions/workflows/lint.yml/badge.svg
Expand Down
19 changes: 19 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import antfu from "@antfu/eslint-config";

export default antfu(
{
typescript: true,
stylistic: {
quotes: "double",
semi: true,
},
},
{
rules: {
"curly": ["error", "all"],
"no-lone-blocks": "off",
"style/brace-style": "off",
"ts/brace-style": ["error", "1tbs"],
},
},
);
55 changes: 27 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
{
"name": "@dup4/starter-ts",
"type": "module",
"version": "0.0.2",
"packageManager": "pnpm@8.6.1",
"packageManager": "pnpm@8.14.3",
"description": "Typescript Starter",
"license": "MIT",
"author": "Dup4 <lyuzhi.pan@gmail.com>",
"keywords": [],
"license": "MIT",
"homepage": "https://github.com/Dup4/starter-ts#readme",
"bugs": {
"url": "https://github.com/Dup4/starter-ts/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Dup4/starter-ts.git"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"bugs": {
"url": "https://github.com/Dup4/starter-ts/issues"
},
"keywords": [],
"sideEffects": false,
"exports": {
".": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
Expand All @@ -33,40 +35,37 @@
}
},
"files": [
"src",
"dist"
"dist",
"src"
],
"sideEffects": false,
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"start": "esmo src/index.ts",
"start": "tsx src/index.ts",
"test": "vitest",
"lint": "run-p lint:*",
"lint:build": "tsc --noEmit",
"lint:eslint": "eslint .",
"lint:style": "prettier --check src/*.ts src/**/*.ts",
"format": "run-p format:*",
"format:eslint": "eslint --fix .",
"format:style": "prettier --write src/*.ts src/**/*.ts",
"prepublishOnly": "npm run build",
"release": "bumpp --commit --push --tag && npm publish"
},
"devDependencies": {
"@babel/types": "^7.22.4",
"@antfu/eslint-config": "^2.6.3",
"@babel/types": "^7.23.6",
"@types/node": "^17.0.45",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"bumpp": "^7.2.0",
"eslint": "^8.42.0",
"esmo": "^0.14.1",
"eslint": "^8.56.0",
"npm-run-all": "^4.1.5",
"pnpm": "^8.6.1",
"prettier": "^2.8.8",
"taze": "^0.10.2",
"typescript": "^5.1.3",
"pnpm": "^8.14.3",
"taze": "^0.10.3",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"unbuild": "^0.7.6",
"vite": "^4.3.9",
"vitest": "^0.32.0"
"vite": "^4.5.2",
"vitest": "^0.32.4"
}
}
Loading

0 comments on commit 0fbccce

Please sign in to comment.