Comments (8)
cc @lazd
I also want make a gulp plugin compliance test suite that actually verifies that a plugin meets the guidelines (passing in streams, buffers, nulls, testing backpressure, etc.). In our search engine it would be cool to shitlist plugins that don't pass the test suite. The plugin guidelines are very strict but this makes testing for compliance extremely simple.
from gulp.
Also cc @hparra since he owns generator-gulp-plugin. We can build the compliance suite into that.
from gulp.
๐ I'm all for that. Better to be overly strict at first than the opposite.
from gulp.
Added it to the plugin guidelines.
We should add a wiki page that covers testing strategies. There's already a short section on testing plugins that deal with streams, but we could do better.
from gulp.
@lazd awesome!
Totally unrelated, but I just published my first gulp plugin and pretty sure it follows all the best practises, but if you have a chance, would love if you could check it out, and let me know if anything could be improved.
from gulp.
@sindresorhus Looks good to me! One pattern I have used for validation plugins is to attach errors to the file object and pass it along. This lets people write their own reporters and stick them in after the validator. You can provide a .reporter() function on the plugin that returns a new reporter stream to exposes built-in reporters.
from gulp.
I'll be glad to merge test suites and commentary into generator.
Also a TODO: notify all pre-gulp3 plugin writers of these new guidelines. Many do not handle streams at all, etc.
from gulp.
Moving this to #68
from gulp.
Related Issues (20)
- TypeScript Module `gulpfile.mts` Not Supported HOT 2
- `npm audit` vulnerability for `glob-parent` package
- Watchers do not detect specific files
- Curly braces in glob without commas do not work HOT 2
- unlink not work HOT 2
- Dependency unset-value has a Prototype Pollution vulnerability
- Upgrade Gupl-cli version to 2.3.0 HOT 1
- gulp.src *.123456 vs *.1234567
- error TS2305: Module '"gulp"' has no exported member 'parallel' HOT 2
- Atualizacao Gulp Util
- gulp does not work if base path has brackets [ ] HOT 1
- Bump glob-watcher to 6.0.0
- Update glob-version to lates major version HOT 1
- Error: Cannot find module 'gulp-cli' HOT 2
- Bun support HOT 2
- Gulp 4: How do I prevent from duplicated dependent task execution? #1392 HOT 1
- Request to provide a more beginner-friendly tutorial on gulp website. HOT 1
- CVE-2020-2869
- Audit Vulnerability , security Report for "glob-parent" Package in `gulp` package
- ่ฟไธช้กน็ฎ่ฟ็ปดๆคๅ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp.