• 新建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
    
  • 相关阅读:
    cache in c#
    c#解析xml
    自动执行任务管理---TaskManage
    IConfigurationSectionHandler 使用~
    Autofac
    黑苹果教程(四)———MAC OS 10.11+固态硬盘+自定义引导
    android安装Linux,玩转Android
    精通android(Pro Android 4)面试题总结(二)
    精通android(Pro Android 4)面试题总结(一)
    Mac上的词典扩充
  • 原文地址:https://www.cnblogs.com/fdxjava/p/14387126.html
Copyright © 2020-2023  润新知