├── .gitignore ├── src ├── views │ ├── about │ │ ├── about.html │ │ └── about.ts │ └── home │ │ ├── home.scss │ │ ├── home.ts │ │ └── home.html ├── main.scss ├── vendor.ts ├── components │ └── navbar │ │ ├── navbar.html │ │ └── navbar.ts ├── index.html └── main.ts ├── tsconfig.json ├── typings.json ├── README.md ├── LICENSE ├── package.json └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | typings 3 | dist -------------------------------------------------------------------------------- /src/views/about/about.html: -------------------------------------------------------------------------------- 1 | This is the about page... -------------------------------------------------------------------------------- /src/main.scss: -------------------------------------------------------------------------------- 1 | html, body, #app-main { 2 | height: 100%; 3 | } -------------------------------------------------------------------------------- /src/views/home/home.scss: -------------------------------------------------------------------------------- 1 | .content { 2 | text-align: center; 3 | padding: 15px; 4 | height: 400px; 5 | } -------------------------------------------------------------------------------- /src/vendor.ts: -------------------------------------------------------------------------------- 1 | //Get webpack to automatically include bootstrap 2 | //If you have more vendor stuff, you should probably get webpack to make a second bundle 3 | require('bootstrap/dist/css/bootstrap.min.css'); 4 | require('bootstrap/dist/js/bootstrap.min.js'); -------------------------------------------------------------------------------- /src/views/about/about.ts: -------------------------------------------------------------------------------- 1 | import { VueComponent } from 'vue-typescript' 2 | 3 | @VueComponent({ 4 | template: require('./about.html') 5 | }) 6 | export class AboutComponent { 7 | ready(){ 8 | console.log('about is ready!'); 9 | } 10 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "moduleResolution": "node", 5 | "target": "es5", 6 | "sourceMap": true, 7 | "emitDecoratorMetadata": true, 8 | "experimentalDecorators": true, 9 | "outDir": "dist" 10 | }, 11 | "exclude": [ 12 | "node_modules" 13 | ] 14 | } -------------------------------------------------------------------------------- /src/views/home/home.ts: -------------------------------------------------------------------------------- 1 | import { VueComponent } from 'vue-typescript' 2 | 3 | @VueComponent({ 4 | template: require('./home.html'), 5 | style: require('./home.scss') 6 | }) 7 | export class HomeComponent extends Vue { 8 | 9 | package:string = 'vue-typescript'; 10 | repo:string = 'https://github.com/itsFrank/vue-typescript'; 11 | 12 | } -------------------------------------------------------------------------------- /typings.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-typescript-seed", 3 | "dependencies": {}, 4 | "globalDependencies": { 5 | "jquery": "registry:dt/jquery#1.10.0+20160704162008", 6 | "node": "registry:dt/node#6.0.0+20160709114037", 7 | "vue": "registry:dt/vue#1.0.21+20160423143248", 8 | "vue-router": "registry:dt/vue-router#0.7.10+20160316155526" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/views/home/home.html: -------------------------------------------------------------------------------- 1 |
Make sure to follow the project on GitHub to stay up to date with the latest releases, or contribute to the broject by opening an issue or making a pull-request!
7 |