crim-ca / brat-frontend-editor

BRAT Editor standalone frontend library
27 stars 5 forks source link

Export library as an npm package #2

Closed Renaud009 closed 8 years ago

Renaud009 commented 8 years ago

package.json with dependencies that could be imported in any kind of application

Renaud009 commented 8 years ago

In the end, I expect to be able to use this library by importing the npm package in the app using a module manager like import { BratFrontendEditor } from 'brat-frontend-editor' var editor = new BratFrontendEditor(container, collData, docData, webFonts, options like width and heigth, etc.);

Renaud009 commented 8 years ago

These two tasks will definitly be challeging considering targetted librairies are outdated and most (specific versions or librairies themselves) aren't provided by npm at the moment.

At the moment: found: "dependencies": { "headjs": "^1.0.3", "jquery": "^1.6.3", "jquery-bbq": "^1.0.0", "jquery-ui": "^1.10.4", "sprintf-js": "^1.0.3" } not found: jquery.json, jquery.svg, jquery.svgdom, webfont