Skip to content

evosystem-jp/vue-template

Repository files navigation

vue テンプレート

概要

  • Vue CLIを使用

主なカスタマイズ内容

? Please pick a preset: Manually select features
? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection)Babel, TS, PWA, Router, Vuex, CSS Pre-processors, Linter, Unit, E2E
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript for auto-detected polyfills? Yes
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS (with dart-sass)
? Pick a linter / formatter config: TSLint
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)Lint on save, Lint and fix on commit
? Pick a unit testing solution: Jest
? Pick a E2E testing solution: Nightwatch
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In package.json
? Save this as a preset for future projects? Yes
? Save preset as: ~/save
? Pick the package manager to use when installing dependencies: Yarn

上記を雑に要約

  • Typescriptをデフォに
  • SCSS/SASSデフォに
  • TSLintとかe2eとか諸々使えるようにする

yarnについて

  • npmの代わりと思えばいい
  • npmより高速

セットアップ

yarn install

コンパイルとホットリロード実行

yarn run serve

ビルド

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Customize configuration

See Configuration Reference.