Skip to content

Commit

Permalink
chore: complete
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Aug 25, 2023
1 parent 2adbe44 commit fc703be
Show file tree
Hide file tree
Showing 8 changed files with 289 additions and 153 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 🎉 Release

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: 16.x
cache: pnpm

- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}

- name: Install
run: pnpm install --no-frozen-lockfile

- name: Build
run: pnpm run build

- name: Set Timezone
run: |
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "Asia/Shanghai" | sudo tee /etc/timezone
date
shell: bash

- name: Set npmrc for root packages
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to npm
run: pnpm run publish:script
1 change: 0 additions & 1 deletion README.ZH-CN.md

This file was deleted.

37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# smoke-distance
# smoke-distance
tweening engine for Typescript

## Install

```bash
npm i unplugin-vue-cssvars -D
```
Or
```bash
yarn add unplugin-vue-cssvars -D
```
Or
```bash
pnpm add unplugin-vue-cssvars -D
```
## Usage

```typescript
import SmokeDistance from 'b-tween';
const smoke = new SmokeDistance({
from: {
left: 0
},
to: {
left: 700
},
duration: 500,
easing: 'bounceOut',
onUpdate: (keys) => {
// You can do everything with keys
block.style.left = keys.left + 'px';
}
});
smoke.start();
```
36 changes: 20 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "smoke-distance",
"description": "",
"description": "tweening engine for Typescript",
"private": false,
"type": "module",
"version": "1.0.0",
"version": "0.0.0",
"packageManager": "[email protected]",
"keywords": [
"estree",
"ast",
"easing",
"typescript",
"vue",
"react"
Expand All @@ -17,37 +16,41 @@
"homepage": "https://github.com/ikun-svelte/smoke-distance",
"repository": "https://github.com/ikun-svelte/smoke-distance",
"bugs": "https://github.com/ikun-svelte/smoke-distance/issues",
"main": "./index.js",
"module": "./index.js",
"types": "./index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"require": "./index.cjs",
"import": "./index.js"
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"typesVersions": {
"*": {
"*": [
"./*",
"./index.d.ts"
"./dist/*",
"./dist/index.d.ts"
]
}
},
"files": [
"dist",
"package.json",
"README.md"
],
"scripts": {
"init": "pnpm i",
"lint:fix": "eslint --fix ./ --ext .vue,.js,.ts,.jsx,.tsx,.json ",
"dev": "",
"build": "",
"play": "",
"build": "tsup",
"release": "bumpp package.json --commit --push --tag",
"clean": "rimraf dist",
"prepare": "npx simple-git-hooks",
"test": "vitest",
"test:update": "vitest -u",
"test:coverage": "vitest --coverage",
"update:deps": "npx taze major -w && pnpm run init"
"update:deps": "npx taze major -w && pnpm run init",
"publish:npm": "npm publish --no-git-checks --access public"
},
"peerDependencies": {},
"dependencies": {},
Expand All @@ -57,6 +60,7 @@
"@types/node": "^18.17.8",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/ui": "^0.34.2",
"ansi-colors": "^4.1.3",
"bumpp": "^9.2.0",
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
Expand Down
Loading

0 comments on commit fc703be

Please sign in to comment.