Browse Source

Initial commit

next
Pierre Vanhulst 4 years ago
commit
62e0cdf167
  1. 2
      .browserslistrc
  2. 24
      .gitignore
  3. 39
      README.md
  4. 5
      babel.config.js
  5. 42
      package.json
  6. 5
      postcss.config.js
  7. BIN
      public/favicon.ico
  8. 2
      public/robots.txt
  9. 14
      src/components/Box.vue
  10. 8
      src/lib.js
  11. 13
      src/shims-tsx.d.ts
  12. 4
      src/shims-vue.d.ts
  13. 13
      tests/unit/example.spec.ts
  14. 41
      tsconfig.json
  15. 19
      tslint.json
  16. 9813
      yarn.lock

2
.browserslistrc

@ -0,0 +1,2 @@
> 1%
last 2 versions

24
.gitignore vendored

@ -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?

39
README.md

@ -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/).

5
babel.config.js

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
}

42
package.json

@ -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"
}
}

5
postcss.config.js

@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}

BIN
public/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

2
public/robots.txt

@ -0,0 +1,2 @@
User-agent: *
Disallow:

14
src/components/Box.vue

@ -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>

8
src/lib.js

@ -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;

13
src/shims-tsx.d.ts vendored

@ -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;
}
}
}

4
src/shims-vue.d.ts vendored

@ -0,0 +1,4 @@
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}

13
tests/unit/example.spec.ts

@ -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);
});
});

41
tsconfig.json

@ -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"
]
}

19
tslint.json

@ -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
}
}

9813
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save