kitajchuk / hobo Goto Github PK
View Code? Open in Web Editor NEWA very small, modular DOM utility for modern web apps.
License: MIT License
A very small, modular DOM utility for modern web apps.
License: MIT License
Either replace inner workings of $.ajax()
or upgrade to $.fetch
.
I've done my best to get things running as you describe them in the docs, but I'm having trouble getting to the extended functions.
I've added a postinstall script into the package.json and ran it, but for some reason it doesn't want to work.
Any suggestions?
edit: I don't know if the build function is just not working as expected, but I ended up opening the hobo.js
file myself and adding this Hobo.prototype.eq = require("./lib/extended/eq");
That seemed to do the trick!
Found a little bug in this method. To duplicate, you can use removeClass()
followed by `addClass("test"), and the result should be something like:
<div class=" test"></div>
Looks like if you don't pass a class to the method it will return an error due to an undefined
classes argument.
Currently using:
element.className = "";
to handle removal of classes for now.
Getting a build error ever since upgrading to the latest version.
npm run build
> [email protected] build /Users/j/Dropbox/projects/dev/personal/squarefront/node_modules/properjs-hobo
> node build.js
> [Hobo] Specify modules to custom build or just use hobo core.
> [email protected] postbuild /Users/j/Dropbox/projects/dev/personal/squarefront/node_modules/properjs-hobo
> webpack dist/hobo.build.js dist/hobo.build.dist.js && ./node_modules/.bin/webpack hobo.js dist/hobo.dist.js && npm run min && npm run doc
Hash: 8f371a4d9917b1a128b6
Version: webpack 1.13.0
Time: 25ms
ERROR in Entry module not found: Error: Cannot resolve module 'dist/hobo.build.js' in /Users/j/Dropbox/projects/dev/personal/squarefront/node_modules/properjs-hobo
Hash: 24e8184aa5a87e571c83
Version: webpack 1.13.0
Time: 127ms
Asset Size Chunks Chunk Names
hobo.dist.js 26.8 kB 0 [emitted] main
+ 11 hidden modules
> [email protected] min /Users/j/Dropbox/projects/dev/personal/squarefront/node_modules/properjs-hobo
> uglifyjs dist/hobo.build.dist.js -c -m -o dist/hobo.build.dist.min.js && uglifyjs dist/hobo.dist.js -c -m -o dist/hobo.dist.min.js
ERROR: can't read file: dist/hobo.build.dist.js
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.