broccolijs / broccolijs.github.io Goto Github PK
View Code? Open in Web Editor NEWWebsite code. Master branch contains generated html, code contains the code
Home Page: https://broccoli.build
License: MIT License
Website code. Master branch contains generated html, code contains the code
Home Page: https://broccoli.build
License: MIT License
The Getting Started guide says:
For this example, we’re going to keep it relatively simple and just build Sass into CSS and Coffeescript into Javascript.
But there are no pages about this; the content ends after the end of the first page.
Additionally, it is missing some content—the very next sentence reads:
We’re also going to assume your project structure looks like:
But there is nothing there; it jumps right into describing the package.json
file.
I've been following the guide on the getting started page and I noticed an error.
(I'm sorry if this isn't the correct repo, but it seems like it would be the right place)
The page says the following:
To run a build, run
yarn build
(if you added the script) orbroccoli build --overwrite
(note: without--overwrite
the contents of the output directorydist
will NOT be overwritten and produce an error).
I tried running npx broccoli build --overwrite
yarn broccoli build --overwrite
and yarn build --overwrite
yet they all have approximately this output:
yarn run v1.17.3
warning package.json: No license field
$ broccoli build --overwrite
error: unknown option `--overwrite'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
My hunch is that this command was deprecated, and the guide hasn't been updated yet.
Here's a list of different independent possible solutions.
My personal opinion is that the argument should be ignored, for compatibility, and should be removed from the doc.
(My reason the tsc
compilation command automatically replaces any file effected by the source change. I really like this approach.)
Note: I had previously opened the issue on this repository,
but I did a bit more digging, and this may be the one to propose the issue too.I'll close the issue on the other one for now, at least.
List of use cases for the different types of plugin you might want to build...
We want people to think about a broccoli plugin in the right way.
It's kind of like a component.
Does not break encapsulation.
Has defined inputs and output.
It should be isolated.
Errors.
Debugging, broccoli test helper
Encapsulation, what you get/write
Why/how do I use multiple inputNodes?
How do you go from naive plugin, to cached and/or persisted
What hooks need to be implemented? Build and constructor
What do I export? How do I compose/inherit?
Use cases: building a pipeline, extending a plugin (authorship)
Explain why with below:
// MyPlugin.js
module.exports = myPlugin(...params) => {
return new MyPlugin(...params);
}
module.exports.Plugin = MyPlugin;
// consumption
const oliPlugin = require('oli-plugin');
oliPlugin(previousNode);
// extension
const { Plugin: OliPlugin } = require('oli-plugin');
class OtherPlugin extends OliPlugin{}
Constructor: https://github.com/broccolijs/broccoli-plugin#new-plugininputnodes-options
Build:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.