Comments (9)
Do you think npm is the right way to consume package.json, or is the format well-described enough that we could use something else if we wanted? Like, if we wanted to write some minimal Python thing to consume those description files and prepare releases, could we? The "sudo sh" part of installing npm and what you're described of their fractious relationship with brew is making me a bit uncomfortable, and I think that Python might be a more universally-usable approach here.
Also ". = _;" is just sad panda.
from modestmaps-js.
npm would only be required for distributing with npm. We can use whatever we like to read package.json and post releases elsewhere. I don't think there's anything fundamentally wrong with npm, I think the author(s) know exactly what they're doing ( I don't think brew is perfect either).
from modestmaps-js.
There isn't much blocking this from happening quickly. Just opened #25 to remove some alert()
calls, and I've got a package.json in the works, though the underlying architecture I'm not sure about yet.
from modestmaps-js.
I've started on a basic package.json and added it to a branch cleverly titled package.json - I'll test it out with some server-side stuff this week and figure what sort of separation between the DOM parts and this should be.
from modestmaps-js.
Okay, the exports branch is ready for a quick test - basically just does a module.exports if module and module.exports is available. The underscore method seems a little more stable, but right now we're doing scoping differently. This branch/commit would precede a push to rename com.modestmaps
to MM
and add noConflict
functionality.
from modestmaps-js.
Looks good... I had wondered if it might be as simple as module.exports = MM
but it's probably better to explicitly export node-compatible things and leave DOM-only code behind for now, as you have. These are the most readily testable classes too, so that's nice.
from modestmaps-js.
Yeah - I think that if we have some way of blocking out server-side use of DOM-stuff, but until then there shouldn't be a hole you can fall down and get an exception because window doesn't exist.
from modestmaps-js.
I've added modestmaps to npm - if you guys have usernames, I can add you as owners.
from modestmaps-js.
I'm randometc
(lowercase) on npm. I just added a node example on master in 8ce3302 and it works very nicely for what I had in mind when I opened this issue, so I'm closing it :)
I also modified package.json just now because npm install
failed for me using the 1.0.x syntax for specifying the version number of uglify. Using the tilde syntax worked so I just went with it.
from modestmaps-js.
Related Issues (20)
- Coordinate -> Extent HOT 3
- anyscale example does not work?
- Remove cache infrastructure HOT 1
- node example broken? HOT 5
- Initialize map without layer HOT 1
- MM.Location bearing method HOT 3
- The example on http://modestmaps.com/ doesn't work now HOT 2
- Latest MM breaks at high zooms in IE8
- Geo code or search by location in modest map HOT 3
- displaying geojson "features" HOT 1
- map.setCenter ignores latitude HOT 7
- map rotation HOT 3
- Tiles disappear when max is hit on very large displays HOT 2
- Easey and setExtent HOT 5
- Center Zoom On Click - Wax and Modest Maps
- CallbackManager#dispatchCallback eats exceptions
- IE10 PointerEvents not working properly HOT 1
- PERSIAN GOULF MARITAM POSIT
- License for modestmaps HOT 2
- Which files need to be hosted?
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 modestmaps-js.