Skip to content

Commit

Permalink
chore: rollup to esbuild w/ tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-schroeder committed Feb 8, 2024
1 parent a1938ba commit 2e0bee7
Show file tree
Hide file tree
Showing 39 changed files with 440 additions and 437 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [formkit]
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: lts/*

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Tempo

Tempo takes the pain out of dates in JavaScript by allowing you to parse, manipulate, format, and internationalize dates and times using JavaScript’s native `Intl.DateTimeFormat`.
Tempo is a new library in a proud tradition of JavaScript date and time libraries. Inspired by the likes of moment.js, day.js, and date-fns Tempo is built from the ground up to be as small and easy to use as possible.

[read the docs](https://tempo.formkit.com)
Tempo is best thought of as a collection of utilities for working with `Date` objects — an important distinction from other libraries that provide custom date primitives. Under the hood, Tempo mines JavaScript's `Intl.DateTimeFormat` to extract complex data like timezones offsets and locale aware date formats giving you a simple API to format, parse, and manipulates dates.

[Read the docs](https://tempo.formkit.com)
74 changes: 0 additions & 74 deletions build.ts

This file was deleted.

33 changes: 19 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
{
"name": "@formkit/tempo",
"version": "0.1.0",
"description": "📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.",
"main": "index.js",
"types": "dist/index.d.ts",
"version": "0.0.0",
"description": "The easiest way to work with dates in JavaScript and TypeScript.",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"scripts": {
"dev": "cd ./docs && pnpm nuxt dev",
"build": "jiti build.ts",
"build": "tsup",
"test": "TZ=\"America/New_York\" vitest",
"docs-build": "cd ./docs && pnpm run build"
"docs-build": "cd ./docs && pnpm run build",
"publint": "publint",
"release": "pnpm build && bumpp && pnpm publish"
},
"files": [
"dist"
],
"keywords": [
"date",
"time",
Expand All @@ -27,15 +37,10 @@
"author": "Justin Schroeder <[email protected]>",
"license": "MIT",
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.11.10",
"consola": "^3.2.3",
"execa": "^7.2.0",
"jiti": "^1.21.0",
"rollup": "^3.29.4",
"shx": "^0.3.4",
"tslib": "^2.6.2",
"bumpp": "^9.3.0",
"publint": "^0.2.7",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.2.1"
}
Expand Down
Loading

0 comments on commit 2e0bee7

Please sign in to comment.