parce
前端构建工具
Last updated 6 months ago by shuoshubao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parce 
SYNC missed versions from official npm registry.

Useage

  • mkdir your_project
  • cd your_project
  • yarn init -y
  • yarn add parce
  • npx parce init
  • npx parce dev
  • npx parce build

parce -h

Init

执行 init 操作之后, 会生成一个简易项目模板

├── project.config.js
└── src
    ├── common.js
    └── view
        └── index
            └── index.vue
  • project.config.js 项目配置文件
  • src/common.js 项目公用文件
  • src/view/**/index.vue 根据 index.vue 生成页面

project.config.js

module.exports = {
    port: 8080, // 端口号
    title: '', // 项目标题
    publicPath: '', // publicPath
    pathConfig: {
        src: 'src',
        common: 'src/common.js',
        view: 'src/view',
        injectWebpackConfig: ''
    },
    devServer: {},
    apiProxy: {},
    webpackProvide: {}, // webpack.ProvidePlugin
    loaders: [], // rules.loader
}

projectConfig. injectWebpackConfig

injectWebpackConfig: webpackConfig => {

    // console.log(webpackConfig)

    return webpackConfig
}

webpackAlias

src 的所有子目录

webpackAlias: {

}

webpack.ProvidePlugin

project.config.js

webpackProvide: {
    qs: 'qs',
    _: 'lodash'
}

.npmrc

registry=https://registry.npm.taobao.org
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

.gitignore

.DS_Store
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json

mark

Current Tags

  • 1.2.5-beta.3                                ...           beta (6 months ago)
  • 1.2.7                                ...           latest (6 months ago)

77 Versions

  • 1.2.7                                ...           6 months ago
  • 1.2.6                                ...           6 months ago
  • 1.2.5                                ...           6 months ago
  • 1.2.5-beta.3                                ...           6 months ago
  • 1.2.5-beta.2                                ...           6 months ago
  • 1.2.5-beta.1                                ...           6 months ago
  • 1.2.5-beta.0                                ...           6 months ago
  • 1.2.4                                ...           7 months ago
  • 1.2.3                                ...           7 months ago
  • 1.2.2                                ...           7 months ago
  • 1.2.1                                ...           7 months ago
  • 1.2.0                                ...           7 months ago
  • 1.1.1                                ...           7 months ago
  • 1.0.6                                ...           7 months ago
  • 1.0.5                                ...           7 months ago
  • 1.0.4                                ...           7 months ago
  • 1.0.3                                ...           7 months ago
  • 1.0.2                                ...           7 months ago
  • 1.0.0                                ...           7 months ago
  • 0.0.50                                ...           10 months ago
  • 0.0.49                                ...           10 months ago
  • 0.0.48                                ...           10 months ago
  • 0.0.46-beta.12                                ...           a year ago
  • 0.0.46-beta.11                                ...           a year ago
  • 0.0.47-alpha                                ...           a year ago
  • 0.0.47                                ...           a year ago
  • 0.0.45-alpha                                ...           a year ago
  • 0.0.45                                ...           a year ago
  • 0.0.44                                ...           a year ago
  • 0.0.43                                ...           a year ago
  • 0.0.42-alpha0.0.8                                ...           a year ago
  • 0.0.42-alpha0.0.7                                ...           a year ago
  • 0.0.42-alpha0.0.6                                ...           a year ago
  • 0.0.42-alpha0.0.5                                ...           a year ago
  • 0.0.42-alpha0.0.4                                ...           a year ago
  • 0.0.42-alpha0.0.3                                ...           a year ago
  • 0.0.42-alpha0.0.2                                ...           a year ago
  • 0.0.42-alpha0.0.1                                ...           a year ago
  • 0.0.42                                ...           2 years ago
  • 0.0.41                                ...           2 years ago
  • 0.0.40                                ...           2 years ago
  • 0.0.39                                ...           2 years ago
  • 0.0.38                                ...           2 years ago
  • 0.0.37                                ...           2 years ago
  • 0.0.36                                ...           2 years ago
  • 0.0.35                                ...           2 years ago
  • 0.0.34                                ...           2 years ago
  • 0.0.33                                ...           2 years ago
  • 0.0.32                                ...           2 years ago
  • 0.0.31                                ...           2 years ago
  • 0.0.30                                ...           2 years ago
  • 0.0.29                                ...           2 years ago
  • 0.0.28                                ...           2 years ago
  • 0.0.27                                ...           2 years ago
  • 0.0.26                                ...           2 years ago
  • 0.0.25                                ...           2 years ago
  • 0.0.24                                ...           2 years ago
  • 0.0.23                                ...           2 years ago
  • 0.0.22                                ...           2 years ago
  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 77
This Month 77
Last Day 77
Last Week 1
Last Month 3
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |