zoukankan      html  css  js  c++  java
  • 新建vue项目

    ### 新建vue项目
    npm install @vue/cli -g   // 如果安装过脚手架,不必再次安装
    vue create vision
    手动选择一些特性  > Manually select features
    ------------------
    空格选择一些插件
     Check the features needed for your project:
     ( ) Choose Vue version
     (*) Babel
     ( ) TypeScript
     ( ) Progressive Web App (PWA) Support
    >(*) Router
     (*) Vuex
     (*) CSS Pre-processors
     (*) Linter / Formatter
     ( ) Unit Testing
     ( ) E2E Testing
    ------------------- 
    是否使用历史模式的路由
    ? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n) n
    ------------------
    css预处理
    ? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default):
      Sass/SCSS (with dart-sass)
      Sass/SCSS (with node-sass)
    > Less
      Stylus
    ----------------------
    标准eslint
    ? Pick a linter / formatter config:
      ESLint with error prevention only
      ESLint + Airbnb config
    > ESLint + Standard config
      ESLint + Prettier  
    ----------------------
    保存文件的时候提示
    ? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)
    >(*) Lint on save
     ( ) Lint and fix on commit
    ------------------  
    配置文件怎么处理--单独文件处理
    ? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)
    > In dedicated config files
      In package.json
    -----------------  
    以上的选择是否保存预设
     Save this as a preset for future projects? (y/N) n
    --------------------
     npm run serve
    
  • 相关阅读:
    linux办公软件的使用和病毒防范
    需要了解的基本礼仪素养
    遗留问题
    shell基本命令
    shell编程
    遇到过得问题
    mac电脑操作
    Linux编程
    BZOJ 1601 [Usaco2008 Oct]灌水 (建图+mst)
    BZOJ 2653 middle (可持久化线段树+中位数+线段树维护最大子序和)
  • 原文地址:https://www.cnblogs.com/fdxjava/p/14387126.html
Copyright © 2011-2022 走看看