Comments (6)
http://wiki.commonjs.org/wiki/CommonJS
from bbop-js.
A slightly hybrid style seems to work (contrib/commonjs), but given the amount of interconnectedness at the core, will have to commit more fully to work it out. Branch for "issue20".
This will necessarily change the testing and inclusion workflows a bit, but should greatly simplify scripting and cross-platform usability.
from bbop-js.
Pretty much done and pushed. Still looking at some of the console script examples.
from bbop-js.
A little public explanation for the way I did it from my notes:
---
just to clarify the rational for:
var bbop = require('bbop').bbop;
instead of the more common (and correct?)
var bbop = require('bbop');
1) if bundle bbop.js in with amigo.js, we could then have:
var bbop = require('amigo').bbop;
or something
2) more importantly, the exports assumption in the typical server/common environment
would want us to write our code like
---
exports.core.chop = function(x,y,z){ ... };
...
return exports;
...
---
that would allow us to do it the expected way on the server,
but it would introduce a lot of browser-side issues with
namespaces when it came to amigo and bbop playing together, etc.
and more overhead in dealing with that (external libs, etc.)
so we have a hybrid solution which should technically be
commonjs modules 1.0, but still tries to behave like normal
browser JS. This is only possible because we build single files
instead of having interdependent modules in different files
from bbop-js.
Appropriate changes made to the amigo JS libraries as well.
from bbop-js.
The server side stuff has proved to work a lot more sensibly, and node no longer needs a wrapper runner to create the environment. Done then (although a lot of the scripts will remain borked until I freshen them at some point).
from bbop-js.
Related Issues (20)
- migrate to Solr 6.x, improve search HOT 5
- make the filter accordion an independent widget HOT 2
- certain queries return unexpected results HOT 1
- allow user filter callback in autocomplete
- Sugiyama layout can error on some (likely valid) input HOT 6
- Switch all widgets over to Bootstrap 3
- get_assemble fails on some input
- Shared annotation checks improvements HOT 2
- Exploration autocomplete widget
- Tree/graph structure browsing in facet filters
- Need better algorithm in set_comfy_query (getting inconsistent autocomplete results)
- GOlr manager should support prerun/postrun hooks like bbopx-js's minerva manager
- Documentation for Computed Relationship HOT 5
- Some indication in search_box when there are more results not visible HOT 1
- Migrate code to use underscore.js (core and testing are meh) HOT 2
- Widget interfaces (handlers, linkers, table renderers, etc.) should have access to more than ID and field names HOT 2
- Add bbop.min.js to NPM HOT 4
- Plan for migration to bbop-graph and other libraries HOT 1
- Remove reference to dead modules HOT 5
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 bbop-js.