Code Monkey home page Code Monkey logo

vue-ss's Introduction

vue-ss

安装项目依赖

npm install

公共的壳子配置不同的运行命令

  • 执行命令:打包、本地运行 (build/serve)
  • 运行环境:本地环境、测试环境、线上环境 (local/test/produce)
  • 区分多个子项目:项目标识 (sub-pc/sub-pm)

本地运行

npm run serve test sub-pm

打包

npm run build test sub-pm

目录结构

└── vue-ss······················································ 根文件
  ├─ public····················································· 公共资源(暂时未使用)
  ├─ src························································ 主文件目录
    ├─ assets··················································· 公共资源文件夹
    ├─ components··············································· 公共组件
    ├─ plugins·················································· 公共插件
    ├─ sub-pc··················································· 子项目sub-pc
      ├─ components············································· 子项目公共组件
      ├─ main.js················································ 子项目入口文件
      ├─ index.html············································· 子项目主页面
    ├─ sub-pm··················································· 子项目sub-pm
  ├─ .env.config.js············································· 生成的全局配置文件,包含环境变量、项目名称等等
  ├─ .gitignore················································· git忽略配置文件
  ├─ babel.config.js············································ babel配置文件
  ├─ package.json··············································· 包配置文件
  ├─ vue.config.js·············································· vue配置文件
  ├─ base.config.js············································· 项目配置信息
  ├─ development.js············································· 本地运行命令配置
  ├─ production.js·············································· 打包运行命令配置

说明

此项目是一个壳子项目,公共部分代码放到这个项目里,在 src 目录下创建子项目,同时在 base.config.js 文件中添加该项目的配置信息,子项目专注解决业务代码,调试、打包公共任务,封装在壳子项目中,

vue-ss's People

Contributors

webzhanghua avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.