parcel-plugin-custom-dist-structure
Parcel plugin that allows you to specify a custom dist structure.
Last updated a month ago by vladimirmikulic .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parcel-plugin-custom-dist-structure 
SYNC missed versions from official npm registry.

parcel-plugin-custom-dist-structure

Version Downloads License: MIT Twitter: VladoDev

???? Parcel plugin that allows you to specify a custom dist structure.

:package: Installation

# Installs the plugin and saves it as a development dependency
npm i parcel-plugin-custom-dist-structure --save-dev

:cloud: Usage

After you've installed the plugin, you'll need to specify configuration for it in package.json.

The plugin configuration is very simple, but also very flexible.

It will generate the structure you specify in the configuration object while also handle all your imports (css, images, js...) which makes it suitable for all use cases, from simple websites all the way to complex React/Angular/Vue projects.

Example configuration object in package.json:

"customDistStructure": {
  "config": {
    // Output JS files to dist/js folder
    ".js": "js",
    // Output JPG and PNG files to dist/images folder
    "images": [
      ".jpg",
      ".png"
    ],
    // General idea
    ".fileExtension": "folder/in/dist",
    "folder/in/dist": [ ".file", ".extensions" ]
  },
  "options": {
    // Enable plugin in development mode (default: false)
    "development": true
  }
}

⚠️ NOTE: In order for this plugin to work, Parcel needs to be installed as a project dependency (globally installed parcel won't work)

:sparkles: Run tests

The plugin uses Jest for running tests.

Jest will execute all .test.js files in the test folder.

npm test

:man: Author

Vladimir Mikulic

:handshake: Contributing

Contributions, issues and feature requests are welcome!

:pencil: License

This project is licensed under MIT license.

:man_astronaut: Show your support

Give a ⭐️ if this project helped you!

Current Tags

  • 1.1.14                                ...           latest (a month ago)

17 Versions

  • 1.1.14                                ...           a month ago
  • 1.1.13                                ...           2 months ago
  • 1.1.12                                ...           3 months ago
  • 1.1.11                                ...           3 months ago
  • 1.1.10                                ...           3 months ago
  • 1.1.9                                ...           4 months ago
  • 1.1.5                                ...           4 months ago
  • 1.1.3                                ...           4 months ago
  • 1.1.2                                ...           5 months ago
  • 1.1.1                                ...           5 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |