scout-app / scout-app

Scout-App - The simplest Sass processor
http://scout-app.io
MIT License
693 stars 101 forks source link

Plugin System #316

Open TheJaredWilcurt opened 7 years ago

TheJaredWilcurt commented 7 years ago

General idea

Scout-App could potentially support a plugin system. To allow for easier adding of new features. For example, plugins could be dynamically loaded into the app and shown as tabs:

Mockup showing tabs


Project Structure

I imagine a plugin's folder structure would look like this:

folder structure

The package.json would include specific attributes like:

"scout": {
    "version": "2.12.12",
    "start": "index.html"
},

Acquiring Plugins

There could be a Plugins modal available from the top navigation. It could download a list of available plugins for your version of Scout-App and allow you to download and install them fairly easily.

Alternatively, we could allow users to drag and drop .zip files into the app to have it auto install. However this puts more effort on the part of the user and would require more safety checks and warning messages if the plugin version is not compatible with that version of Scout-App, or if the zip file is not formatted properly.


Potential problems:

Project Management

This would require creating some tutorials and additional documentation to help developers create plugins.

ImSeaWorld commented 5 years ago

Would be nice to make something to add plugins such as https://github.com/postcss/postcss#plugins

The autoprefixer is one of many plugins that would be a great addition. Hopefully this revives it :3