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
    
  • 相关阅读:
    WCF发布后的地址中域名与IP地址的问题
    asp.net判断字符串是否包含特殊字符
    silverlight中DataGrid错误:data未定义
    变电所、分区所、AT所
    Angela Aki 给十五岁的自己
    WCF绑定(Binding)
    几个不错的WCF系列课程
    WCF服务编程学习笔记之服务契约
    asp.net跳转页面的三种方法比较
    Hashtable快速查找的方法
  • 原文地址:https://www.cnblogs.com/fdxjava/p/14387126.html
Copyright © 2011-2022 走看看