Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pipopotamasu committed Sep 13, 2019
1 parent 04cdcad commit 88ddcb3
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
Empty file added README.md
Empty file.
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
{
"name": "vue-function-tester",
"version": "0.0.2",
"version": "0.1.0",
"description": "",
"main": "src/index.js",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsc",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pipopotamasu/vue-function-tester.git"
},
"keywords": [
"Vue.js"
"Vue.js",
"TypeScript",
"test"
],
"files": [
"dist"
],
"author": "pipopotamasu",
"license": "MIT",
"bugs": {
"url": "https://github.com/pipopotamasu/vue-function-tester/issues"
},
"homepage": "https://github.com/pipopotamasu/vue-function-tester#readme"
"homepage": "https://github.com/pipopotamasu/vue-function-tester#readme",
"devDependencies": {
"typescript": "^3.6.3"
}
}
3 changes: 3 additions & 0 deletions src/computed.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function computed (component: any) {
console.log(component)
}
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import methods from './methods';
import computed from './computed';

const Tester = {
methods,
computed
}

export { methods, computed };
export default Tester;
3 changes: 3 additions & 0 deletions src/methods.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function methods (component: any) {
console.log(component)
}
23 changes: 23 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compileOnSave": false,
"compilerOptions": {
"target": "es2019",
"module": "commonjs",
"moduleResolution": "node",
"lib": [
"es2019",
"dom"
],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"importHelpers": true,
"stripInternal": true,
"skipLibCheck": true,
"declaration": true,
"outDir": "dist"
},
"include": [
"src/**/*.ts"
]
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


typescript@^3.6.3:
version "3.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.3.tgz#fea942fabb20f7e1ca7164ff626f1a9f3f70b4da"
integrity sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==

0 comments on commit 88ddcb3

Please sign in to comment.