commit
62e0cdf167
16 changed files with 10044 additions and 0 deletions
@ -0,0 +1,24 @@
|
||||
.DS_Store |
||||
node_modules |
||||
/dist |
||||
|
||||
/tests/e2e/reports/ |
||||
selenium-debug.log |
||||
|
||||
# local env files |
||||
.env.local |
||||
.env.*.local |
||||
|
||||
# Log files |
||||
npm-debug.log* |
||||
yarn-debug.log* |
||||
yarn-error.log* |
||||
|
||||
# Editor directories and files |
||||
.idea |
||||
.vscode |
||||
*.suo |
||||
*.ntvs* |
||||
*.njsproj |
||||
*.sln |
||||
*.sw? |
@ -0,0 +1,39 @@
|
||||
# colvis |
||||
|
||||
## Project setup |
||||
``` |
||||
yarn install |
||||
``` |
||||
|
||||
### Compiles and hot-reloads for development |
||||
``` |
||||
yarn run serve |
||||
``` |
||||
|
||||
### Compiles and minifies for production |
||||
``` |
||||
yarn run build |
||||
``` |
||||
|
||||
### Run your tests |
||||
``` |
||||
yarn run test |
||||
``` |
||||
|
||||
### Lints and fixes files |
||||
``` |
||||
yarn run lint |
||||
``` |
||||
|
||||
### Run your end-to-end tests |
||||
``` |
||||
yarn run test:e2e |
||||
``` |
||||
|
||||
### Run your unit tests |
||||
``` |
||||
yarn run test:unit |
||||
``` |
||||
|
||||
### Customize configuration |
||||
See [Configuration Reference](https://cli.vuejs.org/config/). |
@ -0,0 +1,42 @@
|
||||
{ |
||||
"name": "colvis", |
||||
"version": "0.1.0", |
||||
"private": true, |
||||
"main": "./dist/colVis.common.js", |
||||
"files": [ |
||||
"dist/*", |
||||
"src/*", |
||||
"public/*", |
||||
"*.json", |
||||
"*.js" |
||||
], |
||||
"scripts": { |
||||
"build-lib": "vue-cli-service build --target lib --name colVis ./src/lib.js", |
||||
"lint": "vue-cli-service lint", |
||||
"test:e2e": "vue-cli-service test:e2e", |
||||
"test:unit": "vue-cli-service test:unit" |
||||
}, |
||||
"dependencies": { |
||||
"core-js": "^2.6.5", |
||||
"vue": "^2.6.10", |
||||
"vue-class-component": "^7.0.2", |
||||
"vue-property-decorator": "^8.1.0" |
||||
}, |
||||
"devDependencies": { |
||||
"@types/chai": "^4.1.0", |
||||
"@types/mocha": "^5.2.4", |
||||
"@vue/cli-plugin-babel": "^3.9.0", |
||||
"@vue/cli-plugin-typescript": "^3.9.0", |
||||
"@vue/cli-plugin-unit-mocha": "^3.9.0", |
||||
"@vue/cli-service": "^3.9.0", |
||||
"@vue/test-utils": "1.0.0-beta.29", |
||||
"chai": "^4.1.2", |
||||
"node-sass": "^4.9.0", |
||||
"pug": "^2.0.4", |
||||
"pug-plain-loader": "^1.0.0", |
||||
"sass-loader": "^7.1.0", |
||||
"typescript": "^3.4.3", |
||||
"vue-template-compiler": "^2.6.10", |
||||
"vuetify": "^2.0.4" |
||||
} |
||||
} |
@ -0,0 +1,5 @@
|
||||
module.exports = { |
||||
plugins: { |
||||
autoprefixer: {} |
||||
} |
||||
} |
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,14 @@
|
||||
<template lang="pug"> |
||||
section |
||||
</template> |
||||
|
||||
<script> |
||||
import { Component, Vue } from 'vue-property-decorator'; |
||||
|
||||
export default class ColBox extends Vue { |
||||
|
||||
} |
||||
</script> |
||||
|
||||
<style lang="sass"> |
||||
</style> |
@ -0,0 +1,8 @@
|
||||
import Vue from 'vue'; |
||||
import ColBox from './components/Box.vue'; |
||||
|
||||
const Components = { ColBox }; |
||||
|
||||
Object.keys(Components).forEach(name => Vue.component(name, Components[name])); |
||||
|
||||
export default Components; |
@ -0,0 +1,13 @@
|
||||
import Vue, { VNode } from 'vue'; |
||||
|
||||
declare global { |
||||
namespace JSX { |
||||
// tslint:disable no-empty-interface
|
||||
interface Element extends VNode {} |
||||
// tslint:disable no-empty-interface
|
||||
interface ElementClass extends Vue {} |
||||
interface IntrinsicElements { |
||||
[elem: string]: any; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,4 @@
|
||||
declare module '*.vue' { |
||||
import Vue from 'vue'; |
||||
export default Vue; |
||||
} |
@ -0,0 +1,13 @@
|
||||
import { expect } from 'chai'; |
||||
import { shallowMount } from '@vue/test-utils'; |
||||
import HelloWorld from '@/components/HelloWorld.vue'; |
||||
|
||||
describe('HelloWorld.vue', () => { |
||||
it('renders props.msg when passed', () => { |
||||
const msg = 'new message'; |
||||
const wrapper = shallowMount(HelloWorld, { |
||||
propsData: { msg }, |
||||
}); |
||||
expect(wrapper.text()).to.include(msg); |
||||
}); |
||||
}); |
@ -0,0 +1,41 @@
|
||||
{ |
||||
"compilerOptions": { |
||||
"target": "esnext", |
||||
"module": "esnext", |
||||
"strict": true, |
||||
"jsx": "preserve", |
||||
"importHelpers": true, |
||||
"moduleResolution": "node", |
||||
"experimentalDecorators": true, |
||||
"esModuleInterop": true, |
||||
"allowSyntheticDefaultImports": true, |
||||
"sourceMap": true, |
||||
"baseUrl": ".", |
||||
"types": [ |
||||
"webpack-env", |
||||
"mocha", |
||||
"chai" |
||||
], |
||||
"paths": { |
||||
"@/*": [ |
||||
"src/*" |
||||
] |
||||
}, |
||||
"lib": [ |
||||
"esnext", |
||||
"dom", |
||||
"dom.iterable", |
||||
"scripthost" |
||||
] |
||||
}, |
||||
"include": [ |
||||
"src/**/*.ts", |
||||
"src/**/*.tsx", |
||||
"src/**/*.vue", |
||||
"tests/**/*.ts", |
||||
"tests/**/*.tsx" |
||||
], |
||||
"exclude": [ |
||||
"node_modules" |
||||
] |
||||
} |
@ -0,0 +1,19 @@
|
||||
{ |
||||
"defaultSeverity": "warning", |
||||
"extends": [ |
||||
"tslint:recommended" |
||||
], |
||||
"linterOptions": { |
||||
"exclude": [ |
||||
"node_modules/**" |
||||
] |
||||
}, |
||||
"rules": { |
||||
"quotemark": [true, "single"], |
||||
"indent": [true, "spaces", 2], |
||||
"interface-name": false, |
||||
"ordered-imports": false, |
||||
"object-literal-sort-keys": false, |
||||
"no-consecutive-blank-lines": false |
||||
} |
||||
} |
Loading…
Reference in new issue