basebuilder-config
Config and build scripts for BasePlate
Last updated a month ago by levdbas .
MIT · Original npm · Tarball · package.json
$ cnpm install basebuilder-config 
SYNC missed versions from official npm registry.

BaseBuilder

BaseBuilder is a Webpack config in the form of an NPM module that can handle most WP projects. Works best in combination with BasePlate WP starter theme

How to install

1. Remove old devDependencies from your projects package.json file.

2. Add basebuilder

yarn add basebuilder-config

3. Add following scripts to package.json

"scripts": {
    "dev": "npm run development",
    "development": "basebuilder-config development",
    "watch": "basebuilder-config watch",
    "production": "basebuilder-config production"
},

4. Make sure the following file exist: resources/assets/config.json

An example config file is located in node_modules/basebuilder-config/config.json

How to eject

We'll probably make an eject script in the future. For now. Do the following steps:

  1. add packages from basebuilder-config/package.json to your own package.json.

  2. add the following scripts to your package.json.

    "scripts": {
        "dev": "npm run development",
        "development": "NODE_ENV=development webpack --mode development --config assets/build/webpack.config.js",
        "watch": "NODE_ENV=development webpack --mode development --watch --config assets/build/webpack.config.js",
        "production": "NODE_ENV=production webpack --mode production --config assets/build/webpack.config.js"
    },
  1. copy basebuilder-config/build folder to your projects assets folder in the project root.

Overwrite config.json file location

Normally BaseBuilder checks for the config.json in the assets folder in the root of the project dir. If you want to overwrite it you can set

   "config": {
        "userConfig": "/web/app/themes/yourtheme/resources/assets/config.json"
    },

in the package.json.

Changelog starting at 0.5

0.8.4

  • Add parent theme assets folder for url-loader
  • Bump packages
    • fixes stylelint issue

0.8.3

  • Fix for copywebpack v2

0.8.2

  • Fix for copywebpack

0.8.1

  • Downgrade gifsicle package

0.8.0

  • Package bump
  • remove stylelint prettier
  • Move to contenthash instead of hash in webpack
  • Remove unneeded resolves
  • Add support for parent/child themes

0.7.3

  • Fix line style endings

0.7.2

  • revert increased max_old_space_size in node

0.7.1

  • dependency bump
  • increased max_old_space_size in node

0.7.0

  • remove js comments while minimizing
  • master/child support for specific project
  • adding color palette plugin
  • dependency bump

0.6.4

  • fixed the ability to transform swiper/dom7

0.6.3

  • Transpile Swiper and DOM7
  • Add Core js for polyfills

0.6.2

  • Update config to work with package.json in root of project and in theme folder.
  • Starting changelog in readme.md
  • Dependency update

0.6.1

  • Update watch locations for browsersync

0.6.0

  • New: option to overwrite theme path in the package.json
  • Fixing line endings
  • Readme update

0.5.2

  • Fix: change line endings to work with linux/mac.

0.5.1

  • Package bump
  • Update watch locations for browsersync

0.5.0

  • Update to the way HMR packages are located.

Current Tags

  • 0.8.6                                ...           latest (a month ago)

52 Versions

  • 0.8.6                                ...           a month ago
  • 0.8.5                                ...           a month ago
  • 0.8.4                                ...           a month ago
  • 0.8.3                                ...           2 months ago
  • 0.8.2                                ...           2 months ago
  • 0.8.1                                ...           2 months ago
  • 0.8.0                                ...           2 months ago
  • 0.7.4                                ...           3 months ago
  • 0.7.3                                ...           3 months ago
  • 0.7.2                                ...           3 months ago
  • 0.7.1                                ...           4 months ago
  • 0.7.0                                ...           4 months ago
  • 0.6.4                                ...           5 months ago
  • 0.6.3                                ...           5 months ago
  • 0.6.2                                ...           6 months ago
  • 0.6.1                                ...           6 months ago
  • 0.6.0                                ...           6 months ago
  • 0.5.2                                ...           6 months ago
  • 0.5.1                                ...           7 months ago
  • 0.5.0                                ...           8 months ago
  • 0.4.6                                ...           8 months ago
  • 0.4.5                                ...           10 months ago
  • 0.4.4                                ...           10 months ago
  • 0.4.3                                ...           10 months ago
  • 0.4.2                                ...           10 months ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.10                                ...           a year ago
  • 0.2.9                                ...           a year ago
  • 0.2.8                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 37
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |