mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
* Switched qunit dependency to npm * Fixed testem not working * Switched test.js build to use node-qunit. As stated in the QUnit docs: The qunit package prior to 2.4.1 is an alternative CLI that is now published as node-qunit. * Introduced qunit 2.4.1, with an npm script for running node tests * Switched testem page fixture to use qunit package instead of qunitjs * Configured testem to run in headless mode, and use new npm node test script for "Node" launcher configuration. This means that individual tests will show up in testem output via the the `tap` test protocol. * Made canvas_static 'toDataURL cropping' test asynchronous. * Configured QUnit testTimeout and enabled 'noglobals' config * Updated .travis.yml config to do cross-browser/env testing via Testem * Specify qunit binary directly to fix confict with binary from node-qunit * Avoid test hanging by aborting the animated cursor * Firefox test fix, and enabled in Testem config
75 lines
2.3 KiB
JSON
75 lines
2.3 KiB
JSON
{
|
|
"name": "fabric",
|
|
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
|
|
"homepage": "http://fabricjs.com/",
|
|
"version": "2.0.0-rc.4",
|
|
"author": "Juriy Zaytsev <kangax@gmail.com>",
|
|
"contributors": [
|
|
{
|
|
"name": "Andrea Bogazzi",
|
|
"email": "andreabogazzi79@gmail.com"
|
|
}
|
|
],
|
|
"keywords": [
|
|
"canvas",
|
|
"graphic",
|
|
"graphics",
|
|
"SVG",
|
|
"node-canvas",
|
|
"parser",
|
|
"HTML5",
|
|
"object model"
|
|
],
|
|
"browser": {
|
|
"canvas": false,
|
|
"fs": false,
|
|
"jsdom": false,
|
|
"jsdom/lib/jsdom/living/generated/utils": false,
|
|
"jsdom/lib/jsdom/utils": false,
|
|
"http": false,
|
|
"https": false,
|
|
"xmldom": false,
|
|
"url": false
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/kangax/fabric.js"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/kangax/fabric.js/issues"
|
|
},
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "node build.js modules=ALL exclude=gestures,accessors",
|
|
"build:watch": "onchange 'src/**/**' 'HEADER.js' 'lib/**/**' -- npm run build_export",
|
|
"build_with_gestures": "node build.js modules=ALL exclude=json",
|
|
"build_export": "npm run build && npm run export_dist_to_site",
|
|
"test": "node test.js",
|
|
"lint": "eslint --config .eslintrc.json src",
|
|
"lint_tests": "eslint test/unit --config .eslintrc_tests",
|
|
"export_dist_to_site": "cp dist/fabric.js ../fabricjs.com/lib/fabric.js && cp package.json ../fabricjs.com/lib/package.json && cp -r src HEADER.js lib ../fabricjs.com/build/files/",
|
|
"export_tests_to_site": "cp test/unit/*.js ../fabricjs.com/test/unit",
|
|
"all": "npm run build && npm run test && npm run lint && npm run lint_tests && npm run export_dist_to_site && npm run export_tests_to_site",
|
|
"test:node": "./node_modules/qunit/bin/qunit test/node_test_setup.js test/lib test/unit",
|
|
"testem": "testem .",
|
|
"testem:ci": "testem ci"
|
|
},
|
|
"optionalDependencies": {
|
|
"canvas": "1.6.x",
|
|
"jsdom": "9.x.x",
|
|
"xmldom": "0.1.x"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "4.7.x",
|
|
"istanbul": "0.4.x",
|
|
"node-qunit": "^1.0.0",
|
|
"onchange": "^3.x.x",
|
|
"qunit": "^2.4.1",
|
|
"testem": "^1.18.4",
|
|
"uglify-js": "3.1.x"
|
|
},
|
|
"engines": {
|
|
"node": ">=4.0.0"
|
|
},
|
|
"main": "./dist/fabric.js"
|
|
}
|