-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2adbe44
commit fc703be
Showing
8 changed files
with
289 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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": {}, | ||
|
@@ -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", | ||
|
Oops, something went wrong.