wpify-scripts

3.0.2 • Public • Published

WPify scripts

Easy build process automation that utilizes @wordpress/scripts, but adds hot reloading with BrowserSync to hot script and creating plugin archive with archive script.

Install

npm install -D wpify-scripts

Available scripts:

{
  "scripts": {
    "build": "wpify build",
    "start": "wpify start",
    "hot": "wpify hot",
    "archive": "wpify archive",
    "check-engines": "wpify check-engines",
    "check-licenses": "wpify check-licenses",
    "format:js": "wpify format-js",
    "lint:css": "wpify lint-style",
    "lint:js": "wpify lint-js",
    "lint:md:docs": "wpify lint-md-docs",
    "lint:md:js": "wpify lint-md-js",
    "lint:pkg-json": "wpify lint-pkg-json",
    "packages-update": "wpify packages-update",
    "test:e2e": "wpify test-e2e",
    "test:unit": "wpify test-unit-js"
  }
}

Configuration

Configuration file wpify.config.js is in the root directory:

const path = require('path');

module.exports = {
  wordPressUrl: 'http://localhost',
  config: {
    build: 'build', // folder where built files end-up
    entry: { // entry points
      'app': './assets/app.jsx',
      'theme': [
        './assets/theme/main.js',
        './assets/theme/main.scss',
      ],
    },
  },
  copy: { // copy built files somewhere else
    'editor-style.scss': path.resolve('./themes/custom-theme/editor-style.css'),
  },
  webpack: (config) => {
    // custom modification of Webpack configuration
    return config;
  },
  browserSync: (config) => {
    // custom configuration of browserSync init configuration
    return config;
  },
};

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.22latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.22
3.0.10
3.0.00
2.0.20
2.0.10
2.0.00
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i wpify-scripts

Weekly Downloads

2

Version

3.0.2

License

GPL-2.0-or-later

Unpacked Size

11.3 kB

Total Files

10

Last publish

Collaborators

  • mejta
  • vaclavgreif