8. Vue.jsは段階的な使い方ができる
Step1 既存のページにウィジェットを追加
Step2 簡単なSPAの作成
Step3 ちょっと複雑なSPAの作成
★ browserify - A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
★ browserify-simple - A simple Browserify + vueify setup for quick prototyping.
★ simple - The simplest possible Vue setup in a single HTML file
★ webpack - A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
★ webpack-simple - A simple Webpack + vue-loader setup for quick prototyping.
11. ➜ step1 git:(master) ✗ vue init simple
? Generate project in current directory? Yes
This will install Vue 2.x version of template.
For Vue 1.x use: vue init simple#1.0
? name (step1)
simple template
12. 必要になる知識
• Basic web (html, css, js)
• Declarative Rendering (vueの基本)
• Component System (vueコンポーネント)
• Client-Side Routing (vue-router)
• Large Scale State Management (vuex, fluxの考え方)
• Build System (npm, webpack, browserify …)
• New JS (ES6, Babel, TypeScript …)
• CSS preprocessors (Sass, Less, Stylus, PostCSS …)
19. ➜ step2 git:(master) ✗ vue init webpack-simple
? Generate project in current directory? Yes
This will install Vue 2.x version of template.
For Vue 1.x use: vue init webpack-simple#1.0
? Project name step2
? Project description A Vue.js project
? Author 清水俊郎 <toshilow@gramp.biz>
vue-cli · Generated "step2".
To get started:
cd step2
npm install
npm run dev
➜ step2 git:(master) ✗
webpack-simple template
20. 必要になる知識
• Basic web (html, css, js)
• Declarative Rendering (vueの基本)
• Component System (vueコンポーネント)
• Client-Side Routing (vue-router)
• Large Scale State Management (vuex, fluxの考え方)
• Build System (npm, webpack, browserify …)
• New JS (ES6, Babel, TypeScript …)
• CSS preprocessors (Sass, Less, Stylus, PostCSS …)
27. ➜ step3 git:(master) ✗ vue init webpack
? Generate project in current directory? Yes
This will install Vue 2.x version of template.
For Vue 1.x use: vue init webpack#1.0
? Project name step3
? Project description A Vue.js project
? Author 清水俊郎 <toshilow@gramp.biz>
? Vue build runtime
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Setup unit tests with Karma + Mocha? Yes
? Setup e2e tests with Nightwatch? Yes
vue-cli · Generated "step3".
To get started:
cd step3
npm install
npm run dev
Documentation can be found at https://vuejs-templates.github.io/
webpack
webpack template
28. 必要になる知識
• Basic web (html, css, js)
• Declarative Rendering (vueの基本)
• Component System (vueコンポーネント)
• Client-Side Routing (vue-router)
• Large Scale State Management (vuex, fluxの考え方)
• Build System (npm webpack, browserify …)
• New JS (ES6, Babel, TypeScript …)
• CSS preprocessors (Sass, Less, Stylus, PostCSS …)
• Unit test E2E test Lint more…