Skip to content

Commit 133aacf

Browse files
committed
chore: init
0 parents  commit 133aacf

24 files changed

+6052
-0
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
typings

.eslintrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"es6": true,
5+
"browser": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"extends": ["@antfu/eslint-config-ts"],
10+
"plugins": ["jest"],
11+
"rules": {
12+
"spaced-comment": ["error", "always", { "exceptions": ["@__PURE__"] }]
13+
}
14+
}

.github/workflows/test.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [12.x]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- name: Install
18+
run: npm ci
19+
20+
- name: Lint
21+
run: npm run lint
22+
23+
- name: Test
24+
run: npm test

.gitignore

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE
81+
.idea

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"reactified"
4+
]
5+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Anthony Fu <https://github.com/antfu>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @vueuse/reactified
2+
3+
Reactive utility wrappers powered by [`reactify`](https://vueuse.js.org/?path=/story/utilities--reactify) in [`VueUse`](https://github.com/antfu/vueuse)

jest.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
roots: [
3+
'<rootDir>/test',
4+
],
5+
testMatch: [
6+
'**/__tests__/**/*.+(ts|tsx|js)',
7+
'**/?(*.)+(spec|test).+(ts|tsx|js)',
8+
],
9+
transform: {
10+
'^.+\\.(ts|tsx)$': 'ts-jest',
11+
},
12+
}

package.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "@vueuse/reactified",
3+
"version": "0.0.0",
4+
"description": "Reactive utility wrappers for Vue",
5+
"author": "Anthony Fu <[email protected]>",
6+
"license": "MIT",
7+
"sideEffects": false,
8+
"exports": {
9+
"./json": {
10+
"import":"./dist/esm/json/index.js",
11+
"require":"./dist/cjs/json/index.js"
12+
},
13+
"./string": {
14+
"import":"./dist/esm/string/index.js",
15+
"require":"./dist/cjs/string/index.js"
16+
},
17+
"./math": {
18+
"import":"./dist/esm/math/index.js",
19+
"require":"./dist/cjs/math/index.js"
20+
},
21+
"./number": {
22+
"import":"./dist/esm/number/index.js",
23+
"require":"./dist/cjs/number/index.js"
24+
},
25+
"./boolean": {
26+
"import":"./dist/esm/boolean/index.js",
27+
"require":"./dist/cjs/boolean/index.js"
28+
}
29+
},
30+
"bugs": {
31+
"url": "https://github.com/vueuse-reactified/issues"
32+
},
33+
"homepage": "https://github.com/vueuse-reactified#readme",
34+
"repository": {
35+
"type": "git",
36+
"url": "git+https://github.com/vueuse-reactified.git"
37+
},
38+
"scripts": {
39+
"prepublishOnly": "npm run build",
40+
"build": "esno scripts/build.ts",
41+
"release": "npx bumpp --commit --push --tag && npm publish --access public",
42+
"lint": "eslint \"**/*.ts\"",
43+
"test": "jest"
44+
},
45+
"files": [
46+
"dist"
47+
],
48+
"dependencies": {
49+
"@vueuse/shared": "^4.0.3"
50+
},
51+
"devDependencies": {
52+
"@antfu/eslint-config-ts": "^0.4.3",
53+
"@types/fs-extra": "^9.0.6",
54+
"@types/jest": "^26.0.19",
55+
"@types/node": "^14.14.20",
56+
"eslint": "^7.17.0",
57+
"eslint-plugin-jest": "^24.1.3",
58+
"esno": "^0.4.0",
59+
"fast-glob": "^3.2.4",
60+
"fs-extra": "^9.0.1",
61+
"jest": "^26.6.3",
62+
"rimraf": "^3.0.2",
63+
"ts-jest": "^26.4.4",
64+
"tsup": "^3.11.0",
65+
"typescript": "^4.1.3",
66+
"vue": "3"
67+
}
68+
}

0 commit comments

Comments
 (0)