Author SHA1 Message Date
dependabot[bot] c12bd19573 chore(deps-dev): bump postcss from 8.4.27 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.27 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.27...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-08 14:12:36 +00:00
Anthony Fu b55a386469 chore: update deps 2023-10-08 22:09:03 +08:00
Anthony Fu 1f68471391 chore: update deps 2023-09-27 18:07:20 +08:00
Anthony Fu abeb203b4a chore: update deps 2023-09-23 18:11:02 +08:00
Anthony Fu 2c477f87ab chore: clean up 2023-09-22 04:02:06 +08:00
Anthony Fu 0ec76ee5f0 chore: update 2023-09-22 03:59:48 +08:00
Anthony Fu 220b8af18e feat: use new eslint-config 2023-09-22 01:54:00 +08:00
Anthony Fu 0bfc447aa9 chore: update deps 2023-08-29 10:23:12 +02:00
Anthony Fu 87d92c78f1 chore: update badges 2023-08-29 10:21:56 +02:00
Anthony Fu e8eb570761 chore: update deps 2023-08-22 16:13:53 +02:00
Anthony Fu 3a442dd5d1 chore: update deps 2023-07-26 10:57:03 +08:00
Anthony Fu 711293df81 chore: update deps 2023-06-01 11:23:07 +02:00
Anthony Fu 03d463b56e chore: update deps 2023-04-06 10:13:02 +02:00
Anthony Fu 5cc4d93838 chore: bump node version 2023-03-30 19:43:03 +02:00
Anthony Fu 690f972463 chore: update deps 2023-03-30 18:47:40 +02:00
Anthony Fu 49627f98bf chore: update deps 2023-03-21 18:04:03 +01:00
Anthony Fu 9ba269f01a chore: setup lint-stage 2023-02-25 00:00:28 +01:00
Anthony Fu 3a70f34631 chore: update deps 2023-02-13 22:21:06 +01:00
Anthony Fu e2b1f8730f chore: update deps 2022-09-19 19:45:01 +08:00
Anthony Fu cba4dfacc3 chore: update deps 2022-08-16 17:44:08 +08:00
Anthony Fu 1d3e667264 chore: update deps 2022-07-29 19:56:01 +08:00
Anthony Fu bd802599bc chore: update ci 2022-07-29 19:53:38 +08:00
Anthony Fu 574bae6096 chore: update deps 2022-07-10 10:52:06 +08:00
Anthony Fu b1d2f21629 chore: update deps 2022-06-18 20:16:38 +08:00
Anthony Fu 5d1361cad2 chore: simpify release command 2022-06-15 23:54:47 +08:00
Anthony Fu 3334f2167d chore: update deps 2022-06-15 23:53:40 +08:00
Anthony Fu 65021595cc chore: update 2022-06-13 18:03:22 +08:00
Anthony Fu 4358d816f1 chore: update 2022-06-13 17:47:09 +08:00
Anthony Fu f99510b3fb chore: contributing guide 2022-05-26 16:18:16 +08:00
Anthony Fu d76bbf90cd chore: update deps 2022-05-25 07:04:13 +08:00
Anthony Fu 644079f3c4 chore: update deps 2022-05-12 13:14:50 +08:00
Anthony Fu 843ab09319 chore: update deps 2022-05-10 20:00:59 +08:00
Anthony Fu d414465d2e feat: type module by default 2022-05-04 04:06:48 +08:00
Anthony Fu 120f702862 chore: update ci 2022-04-28 14:48:58 +08:00
Anthony Fu cbfb52684c chore: update deps 2022-04-28 14:48:05 +08:00
Anthony Fu 54669e1e8b chore: update deps 2022-04-11 21:56:43 +08:00
Anthony Fu b652bb2324 chore: update license 2022-04-07 10:49:41 +08:00
Anthony Fu b735ccf16b chore: update deps 2022-04-07 05:57:17 +08:00
Anthony Fu 05277145ac chore: update 2022-03-24 21:04:40 +08:00
Anthony Fu 58de0a0f2d chore: update 2022-03-23 08:08:37 +08:00
Anthony Fu dcccf3089c chore: clean up 2022-03-19 16:14:50 +08:00
Anthony Fu c1604b337a chore: update 2022-03-19 16:08:37 +08:00
Anthony Fu 945bc12c45 chore: update deps 2022-03-19 16:04:44 +08:00
Anthony Fu b8e4da60ee chore: update deps 2022-03-10 20:33:22 +08:00
Anthony Fu 479f69e9a8 chore: update 2022-03-10 19:06:37 +08:00
Anthony Fu 19c99b081a chore: update ci script 2022-02-26 17:00:36 +08:00
Anthony Fu b038774520 chore: update deps 2022-02-26 17:00:09 +08:00
Anthony Fu 49ec8e540e chore: update deps 2022-02-26 16:52:19 +08:00
Anthony Fu 1e6c30d40e chore: update 2022-01-03 22:28:54 +08:00
Anthony Fu 09cf08abb8 chore: update deps 2021-12-21 01:48:19 +08:00
Anthony Fu 88d31bc365 chore: update deps 2021-12-20 05:05:28 +08:00
Anthony Fu 7b9688536c chore: update lint 2021-12-18 19:33:57 +08:00
Anthony Fu db055b9ed1 chore: update 2021-12-18 19:26:53 +08:00
Anthony Fu 60b53aaa2f chore: update 2021-12-18 13:16:27 +08:00
Anthony Fu b6d7f4fcab chore: update 2021-12-18 12:30:48 +08:00
Anthony Fu f1d73e195d chore: switch to unbuild 2021-11-29 18:36:09 +08:00
Anthony Fu e9f6d37360 chore: skip lint 2021-10-09 01:46:42 +08:00
Anthony Fu eb6526281c chore: update deps 2021-10-08 23:33:40 +08:00
Anthony Fu 8550c2d748 chore: update deps 2021-08-24 10:48:36 +08:00
Anthony Fu f56ba9fddf chore: update 2021-08-24 10:42:10 +08:00
Anthony Fu b7164bf251 chore: disable lint in ci 2021-08-05 16:39:17 +08:00
Anthony Fu 2b653b5424 chore: update deps 2021-08-05 16:38:41 +08:00
Anthony Fu f51d60af4c chore: update 2021-08-05 16:26:15 +08:00
Anthony Fu 12ca186a5c chore: update deps 2021-04-02 00:42:23 +08:00
Anthony Fu 2eb2b6edf4 chore: update test script 2021-02-27 15:37:19 +08:00
Anthony Fu 55b2258ba4 chore: update ci 2021-02-17 16:09:22 +08:00
Anthony Fu 5df24c5bf2 chore: fix lint 2021-02-17 15:48:50 +08:00
Anthony Fu bba0a5148a feat: update! 2021-02-17 15:31:32 +08:00
23 changed files with 4687 additions and 9107 deletions

No files matched your search

-2
View File
@@ -1,2 +0,0 @@
dist
typings
-12
View File
@@ -1,12 +0,0 @@
{
"root": true,
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": ["@antfu/eslint-config-ts"],
"plugins": ["jest"],
"rules": {}
}
+1
View File
@@ -0,0 +1 @@
github: [antfu]
+87
View File
@@ -0,0 +1,87 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Lint
run: nr lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Typecheck
run: nr typecheck
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Build
run: nr build
- name: Test
run: nr test
+29
View File
@@ -0,0 +1,29 @@
name: Release
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
-24
View File
@@ -1,24 +0,0 @@
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test
+9 -79
View File
@@ -1,81 +1,11 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# Nuxt generate
dist
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
# IDE
.DS_Store
.idea
*.log
*.tgz
coverage
dist
lib-cov
logs
node_modules
temp
+1
View File
@@ -0,0 +1 @@
ignore-workspace-root-check=true
+41
View File
@@ -0,0 +1,41 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "never"
},
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
]
}
+1
View File
@@ -0,0 +1 @@
Please refer to https://github.com/antfu/contribute
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2020 Anthony Fu <https://github.com/antfu>
Copyright (c) 2022 Anthony Fu <https://github.com/antfu>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+38 -1
View File
@@ -1 +1,38 @@
# ts-starter
# pkg-placeholder
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]
_description_
> **Note**:
> Replace `pkg-placeholder`, `_description_` and `antfu` globally to use this template.
## Sponsors
<p align="center">
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
</a>
</p>
## License
[MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/antfu)
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/pkg-placeholder
[npm-downloads-src]: https://img.shields.io/npm/dm/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/pkg-placeholder
[bundle-src]: https://img.shields.io/bundlephobia/minzip/pkg-placeholder?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=pkg-placeholder
[license-src]: https://img.shields.io/github/license/antfu/pkg-placeholder.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/antfu/pkg-placeholder/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/pkg-placeholder
+12
View File
@@ -0,0 +1,12 @@
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: [
'src/index',
],
declaration: true,
clean: true,
rollup: {
emitCJS: true,
},
})
+15
View File
@@ -0,0 +1,15 @@
// @ts-check
import antfu from '@antfu/eslint-config'
export default antfu(
{
ignores: [
// eslint ignore globs here
],
},
{
rules: {
// overrides
},
},
)
-12
View File
@@ -1,12 +0,0 @@
module.exports = {
roots: [
'<rootDir>/test',
],
testMatch: [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
}
-8926
View File
File diff suppressed because it is too large. Load diff
+56 -42
View File
@@ -1,59 +1,73 @@
{
"name": "@antfu/ts-starter",
"name": "pkg-placeholder",
"type": "module",
"version": "0.0.0",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"packageManager": "pnpm@8.8.0",
"description": "_description_",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"sideEffects": false,
"bugs": {
"url": "https://github.com/<placeholder>/issues"
},
"homepage": "https://github.com/<placeholder>#readme",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/antfu/pkg-placeholder#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/<placeholder>.git"
"url": "git+https://github.com/antfu/pkg-placeholder.git"
},
"scripts": {
"prepublishOnly": "npm run build",
"watch": "npm run build -- --watch",
"dev": "esno src/index.ts",
"build": "tsup src/index.ts --format cjs,esm --dts",
"publish:ci": "npm publish --access public",
"release": "npx bumpp --commit --push --tag && npm run publish:ci",
"lint": "eslint \"{src,test}/**/*.ts\"",
"lint:fix": "npm run lint -- --fix",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"bugs": "https://github.com/antfu/pkg-placeholder/issues",
"keywords": [],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix",
"git add"
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
"dependencies": {},
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "nr build",
"release": "bumpp && npm publish",
"start": "esno src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit",
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config-ts": "^0.4.3",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.6",
"eslint": "^7.12.1",
"eslint-plugin-jest": "^24.1.0",
"esno": "^0.2.4",
"husky": "^4.3.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.1",
"ts-jest": "^26.4.3",
"tsup": "^3.7.1",
"typescript": "^4.0.5"
"@antfu/eslint-config": "^1.0.0-beta.22",
"@antfu/ni": "^0.21.8",
"@antfu/utils": "^0.7.6",
"@types/node": "^20.8.3",
"bumpp": "^9.2.0",
"eslint": "^8.51.0",
"esno": "^0.17.0",
"lint-staged": "^14.0.1",
"pnpm": "^8.8.0",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.9.0",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vite": "^4.4.11",
"vitest": "^0.34.6"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
+4384
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -0,0 +1,3 @@
packages:
- playground
- examples/*
+2 -1
View File
@@ -1 +1,2 @@
export * from './number'
export const one = 1
export const two = 2
-2
View File
@@ -1,2 +0,0 @@
export const one = 1
export const two = 2
+2 -2
View File
@@ -1,7 +1,7 @@
import { one } from '../src'
import { describe, expect, it } from 'vitest'
describe('should', () => {
it('exported', () => {
expect(one).toEqual(1)
expect(1).toEqual(1)
})
})
+5 -3
View File
@@ -1,12 +1,14 @@
{
"compilerOptions": {
"target": "es2017",
"module": "esnext",
"target": "es2018",
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"esModuleInterop": true,
"strict": true,
"strictNullChecks": true,
"resolveJsonModule": true
"skipDefaultLibCheck": true,
"skipLibCheck": true
}
}