Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presets for common use cases #18

Open
FND opened this issue Jan 5, 2018 · 0 comments
Open

presets for common use cases #18

FND opened this issue Jan 5, 2018 · 0 comments

Comments

@FND
Copy link
Contributor

FND commented Jan 5, 2018

It would be nice if getting started was a simple two-step process:

$ npm install faucet-pipeline faucet-pipeline-js faucet-pipeline-sass
$ faucet --presets=js,sass,manifest --fingerprint

Thus --presets would replace faucet.config.js for common use cases, reducing infrastructure, moving parts, maintenance burden, cognitive load etc.

However, presets would not allow for any customization; if that's required, faucet.config.js should be used.

In the example above, the presets would result in the following configuration:

{
    sass: [{
        source: "./src/index.sass",
        target: "./dist/bundle.css"
    }],
    js: [{
        source: "./src/index.js",
        target: "./dist/bundle.js"
    }],
    manifest: {
        file: "./dist/manifest.json",
        baseURI: 🤔 // not sure how this would work
    }
}
@FND FND added the enhancement label Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant