alexmilowski / green-turtle

An RDFa 1.1. implementation for browsers.
MIT License
56 stars 20 forks source link

Support for CommonJS, Node and Npm #3

Closed dynnamitt closed 8 years ago

dynnamitt commented 9 years ago

http://www.mattpalmerlee.com/2013/04/23/create-your-first-node-module-and-publish-it-to-the-npm-registry/

http://nodejs.org/docs/latest/api/modules.html

alexmilowski commented 9 years ago

node.js and other various systems would be interesting. There are some issues with DOM conformance and environment bootstrapping that I need to sort out.

...but, yes, I want to do this soon.

elf-pavlik commented 9 years ago

@alexmilowski jsonld.js supports it with node, i'll try to add package.json in a fork and then help with publishing it to npm! https://github.com/digitalbazaar/jsonld.js/blob/master/js/request.js#L117

ariutta commented 9 years ago

+1

betehess commented 9 years ago

Any chance to fix that? In Scala.js, node.js is the preferred environment for testing.

sballesteros commented 8 years ago

FWIW, I started working on getting green-turtle to work as is in JSDOM in this pull request: https://github.com/alexmilowski/green-turtle/pull/7

sballesteros commented 8 years ago

Ok so I have extracted the GraphRDFaProcessor into its own commonJS module. See https://github.com/scienceai/graph-rdfa-processor. I made additional changes there so that it works both in the browser and JS-DOM.

elf-pavlik commented 8 years ago

@bergos maybe relevant for your

bergos commented 8 years ago

@elf-pavlik I know this issue. I have already a fix for it, but I had problems getting the Green Turtle tests running, even without my changes.

alexmilowski commented 8 years ago

I've merged your pull request.