Clipped.js | 令開新項目成爲享受

196 阅读1分钟
原文链接: medium.com

Jointed.js: an Introduction

Make configuration jointed

ost build tools have a Javascript API accepting a plain Object as configuration.

In Javascript, it is easy to read Object, but difficult to modify one reliably, as explained here:

Why use jointed?
Clipped.js is directly integrated with Jointed.js , and recommends user to faciliate it. Reason to use jointed In…clippedjs.github.io

Jointed.js applies proxy on clipped.config , which makes it fully jointed. You can still use it like a normal Object

Direct assign

But it really shines when you start making modifications later:

Chaining
Not deep enough? ;)
Deep chaining

It makes configuration a lot more maintainable, since you will know setting target to ‘node’ and externals to nodeExternals() is for targetting Webpack towards Node.js

Conclusion

Even more features such as schema validation support, dotenv are still under development.

All official presets are under the ‘presets’ folder of the official repo.
Be sure to check out more about Clipped.js on its documentation website!

Give our repo a star if you found it useful :)

The project is open-source and we welcome any contributions ;)