svgedit/package.json

233 lines
10 KiB
JSON
Raw Normal View History

{
"name": "svgedit",
"version": "6.0.0",
"description": "Powerful SVG-Editor for your browser ",
"main": "dist/index-umd.js",
"module": "dist/index-es.js",
"directories": {
"doc": "docs",
"example": "examples",
"test": "test"
},
"engines": {
2020-07-26 18:11:18 +00:00
"node": ">=10"
},
"scripts": {
2020-08-28 22:07:07 +00:00
"lint": "eslint --ext js,html,md .",
2020-09-17 03:11:01 +00:00
"lint-arg": "eslint --ext js,html,md",
2020-08-28 22:07:07 +00:00
"test": "run-s cypress:instrument test-only",
"build": "rollup -c",
2020-09-02 11:59:47 +00:00
"build:watch": "rollup -c --watch",
"start": "echo \"Open file, e.g., to http://localhost:8000/src/editor\" && es-dev-server",
"start:watch": "es-dev-server --watch",
2020-09-08 23:35:47 +00:00
"cypress:open": "run-p start cypress:open-no-start",
"cypress:open-no-start": "cypress open",
"cypress:instrument": "rimraf instrumented && cp-cli src instrumented && nyc instrument --compact=false src instrumented",
"add-release": "git submodule add --depth=1 -b \"release-v$npm_config_release\" -- https://github.com/SVG-Edit/svgedit.git \"releases/svg-edit-$npm_config_release\"",
"add-new-release": "cross-var npm run add-release --release=$npm_package_version && cross-var git config --file=.gitmodules submodule.releases/latest.branch \"release-v$npm_package_version\"",
"remove-release": "git submodule deinit -f \"releases/svg-edit-$npm_config_release\" && rm -rf .git/modules/releases/svg-edit-$npm_config_release && git rm -f releases/svg-edit-$npm_config_release",
"submodules": "run-s submodules-init submodules-update",
"submodules-init": "echo \"Performing non-recursive init as don't want submodules to have their own releases!\" && git submodule update --init",
"submodules-update": "echo \"Performing non-recursive fetch as don't want submodules to have their own releases!\" && git submodule foreach git fetch && git submodule update --remote && git submodule foreach git merge origin master",
"start-allow-origin": "static -p 8001 -H '{\"Access-Control-Allow-Origin\": \"*\"}'",
"start-embedded": "run-p start start-allow-origin",
"open-docs-no-start": "open-cli http://localhost:8000/docs/jsdoc/",
"open-docs": "run-p start open-docs-no-start",
"build-docs-remove": "rimraf \"docs/jsdoc/*\"",
"build-docs-create": "jsdoc --pedantic -c docs/jsdoc-config.js src",
"build-docs": "run-s -c build-docs-remove build-docs-create",
"build-and-open-docs-no-start": "run-s build-docs open-docs-no-start",
"build-and-open-docs": "run-s build-docs open-docs",
"open-embedded-no-start": "open-cli http://localhost:8000/editor/embedapi.html",
"open-embedded": "run-p start-embedded open-embedded-no-start",
2020-07-24 14:18:43 +00:00
"open-all-ext-no-start": "open-cli http://localhost:8000/src/editor/svg-editor-es.html?extensions=ext-arrows.js,ext-closepath.js,ext-foreignobject.js,ext-helloworld.js,ext-mathjax.js,ext-php_savefile.js,ext-server_moinsave.js,ext-server_opensave.js,ext-webappfind.js,ext-xdomain-messaging.js",
"open-all-ext": "run-p start open-all-ext-no-start",
2020-07-24 14:18:43 +00:00
"open-compiled-no-start": "open-cli http://localhost:8000/src/editor/svg-editor.html",
"open-compiled": "run-p start open-compiled-no-start",
2020-07-24 14:18:43 +00:00
"open-no-start": "open-cli http://localhost:8000/src/editor/svg-editor-es.html",
"open": "run-p start open-no-start",
"open-cov-no-start": "open-cli http://localhost:8000/coverage/",
"open-cov": "run-p start open-cov-no-start",
"report": "run-s report-no-mochawesome mochawesome-cli",
"report-summary": "run-s report-text-summary mochawesome-cli-dot",
"license-badge": "license-badger --uncategorizedLicenseTemplate \"\\${license} (\\${name} (\\${version}))\" --filteredTypes=nonempty --textTemplate \"License types\n(project, deps, and bundled devDeps)\" --packageJson --production badges/licenses-badge.svg",
"license-badge-dev": "license-badger --corrections --filteredTypes=nonempty --textTemplate \"License types\n(all devDeps)\" --allDevelopment badges/licenses-badge-dev.svg",
"license-badges": "run-s license-badge license-badge-dev",
"coverage-badge": "coveradge badges/coverage-badge",
"imageoptim": "imageoptim",
"compress-images": "imageoptim \"src/editor/extensions/*.png\" \"src/editor/spinbtn/*.png\" \"src/editor/jgraduate/images/*.{png,gif}\" \"src/editor/images/*.png\"",
"remark": "remark -q -f .",
2020-08-05 10:04:07 +00:00
"install-offline": "npm install --prefer-offline --no-audit",
2020-04-03 00:20:54 +00:00
"prepublishOnly": "run-s license-badges copy prep build-docs",
2020-07-26 18:11:18 +00:00
"open-tests": "run-s cypress:instrument cypress:open",
"cypress:merge": "mochawesome-merge \"cypress/results/mochaw*.json\" > mochawesome.json && marge mochawesome.json && mbg --file ./mochawesome.json --badge_output badges/tests-badge.svg",
2020-09-13 21:56:45 +00:00
"cypress:run-only": "rimraf \"cypress/results/mochaw*.json\" && rimraf \".nyc_output/*\" && cypress run -q",
"cypress:run-no-badge": "run-s -c cypress:run-only cypress:merge",
"cypress:run": "run-s -n -c cypress:run-no-badge report-summary-mocha-full coverage-badge",
"mochawesome-cli": "node tools/mochawesome-cli.js",
"mochawesome-cli-dot": "npm run mochawesome-cli -- --dot",
"report-no-mochawesome": "nyc report",
"report-text-summary": "nyc report --reporter=text-summary",
"report-summary-mocha-full": "run-s report-text-summary mochawesome-cli",
"test-only-no-report": "run-p start cypress:run",
"test-only": "run-s -c test-only-no-report report",
"test-no-cov-no-core-rollup": "run-s eslint prep-no-core-rollup test-only",
"test-no-cov": "run-s prep test-only",
2020-08-28 22:07:07 +00:00
"test-no-core-rollup": "run-s eslint cypress:instrument test-no-cov-no-core-rollup"
},
"lint-staged": {
2020-08-28 22:07:07 +00:00
".eslintignore": "npm run lint",
".eslintrc.js": "npm run lint",
2020-09-17 03:11:01 +00:00
"src/**/*.{js,md,html}": "npm run lint-arg --",
"src/editor/images/*.png": "npm run imageoptim --"
},
"run-if-changed": {
"src": "npm run prep-no-eslint",
".babelrc.json": "npm run prep-no-eslint",
"rollup.config.js": "npm run prep-no-eslint",
"rollup-config.config.js": "npm run prep-no-eslint",
2020-08-05 09:36:33 +00:00
"build": "npm run build-html",
"docs": "npm run build-docs",
"licenseInfo.json": "npm run license-badges",
"package-lock.json": "run-s install-offline license-badges copy prep-no-eslint build-docs"
2020-08-05 09:36:33 +00:00
},
"husky": {
"hooks": {
2020-08-05 09:59:33 +00:00
"post-commit": "run-if-changed",
"post-checkout": "run-if-changed",
"post-merge": "run-if-changed",
"post-rewrite": "run-if-changed",
"pre-commit": "lint-staged"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/SVG-Edit/svgedit.git"
},
"keywords": [
"svg-editor",
"javascript",
"svg-edit",
"svg"
],
"author": "Narendra Sisodiya",
"contributors": [
"Pavol Rusnak",
"Jeff Schiller",
"Vidar Hokstad",
"Alexis Deveria",
2018-05-29 08:45:45 +00:00
"Brett Zamir",
"Fabien Jacq"
],
"license": "(MIT AND Apache-2.0 AND ISC AND LGPL-3.0-or-later AND X11)",
"bugs": {
"url": "https://github.com/SVG-Edit/svgedit/issues"
},
"homepage": "https://github.com/SVG-Edit/svgedit#readme",
"browserslist": [
2020-07-26 18:11:18 +00:00
">0%",
"not Opera < 59",
"not IE < 12",
"not Chrome < 75",
"not FireFox < 68",
"not Safari < 10",
"not ios_saf < 10"
],
"dependencies": {
2020-10-16 21:50:25 +00:00
"@babel/polyfill": "^7.12.1",
"canvg": "^3.0.6",
"core-js": "^3.6.5",
2020-09-09 22:51:34 +00:00
"jspdf": "^2.1.1",
"pathseg": "^1.2.0",
"regenerator-runtime": "^0.13.7",
"svg2pdf.js": "^2.0.0"
},
"devDependencies": {
2020-10-16 21:50:25 +00:00
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@babel/register": "^7.12.1",
"@babel/runtime-corejs3": "^7.12.1",
"@cypress/code-coverage": "^3.8.1",
2020-10-16 21:50:25 +00:00
"@cypress/fiddle": "^1.18.3",
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
"@hkdobrev/run-if-changed": "^0.3.1",
"@mysticatea/eslint-plugin": "^13.0.0",
2020-09-09 22:51:34 +00:00
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-dynamic-import-vars": "^1.1.0",
2020-08-28 23:20:37 +00:00
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-url": "^5.0.1",
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
"copyfiles": "^2.4.0",
"core-js-bundle": "^3.6.5",
"coveradge": "^0.6.0",
"cp-cli": "^2.0.0",
"cross-var": "^1.1.0",
2020-10-16 21:50:25 +00:00
"cypress": "^5.4.0",
"cypress-axe": "^0.8.1",
"cypress-multi-reporters": "^1.4.0",
2020-09-12 23:32:13 +00:00
"cypress-plugin-snapshots": "^1.4.4",
"deparam": "git+https://github.com/brettz9/deparam.git#updates",
"es-dev-commonjs-transformer": "^0.2.0",
2020-10-16 21:50:25 +00:00
"es-dev-server": "^1.57.8",
"es-dev-server-rollup": "0.0.8",
2020-10-16 21:50:25 +00:00
"eslint": "^7.11.0",
"eslint-config-ash-nazg": "^22.8.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-array-func": "^3.1.7",
2020-07-14 15:55:02 +00:00
"eslint-plugin-chai-expect": "^2.2.0",
"eslint-plugin-chai-expect-keywords": "^2.0.1",
"eslint-plugin-chai-friendly": "^0.6.0",
"eslint-plugin-compat": "^3.8.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-eslint-comments": "^3.2.0",
2020-09-09 22:51:34 +00:00
"eslint-plugin-html": "^6.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.3",
"eslint-plugin-markdown": "^1.0.2",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-mocha-cleanup": "^1.8.0",
"eslint-plugin-no-unsanitized": "^3.1.4",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-unicorn": "^22.0.0",
2020-09-09 22:51:34 +00:00
"husky": "^4.3.0",
"imageoptim-cli": "^3.0.2",
"jamilih": "^0.53.2",
"jsdoc": "^3.6.6",
2020-07-25 17:40:40 +00:00
"license-badger": "^0.18.0",
2020-10-16 21:50:25 +00:00
"lint-staged": "^10.4.1",
"mocha": "^8.2.0",
"mocha-badge-generator": "^0.8.0",
"mochawesome": "^6.1.1",
2020-09-23 19:18:28 +00:00
"mochawesome-merge": "^4.2.0",
"mochawesome-report-generator": "^5.1.0",
2018-09-25 03:25:19 +00:00
"node-static": "^0.7.11",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"open-cli": "^6.0.1",
"promise-fs": "^2.1.1",
"qr-manipulation": "git+https://github.com/brettz9/qr-manipulation.git",
"query-result": "git+https://github.com/WebReflection/query-result.git",
2020-10-16 21:50:25 +00:00
"remark-cli": "^9.0.0",
"remark-lint-ordered-list-marker-value": "^2.0.1",
2020-08-23 23:23:00 +00:00
"requirejs": "^2.3.6",
2020-02-12 02:48:10 +00:00
"rimraf": "^3.0.2",
2020-10-16 21:50:25 +00:00
"rollup": "2.32.0",
"rollup-plugin-copy": "^3.3.0",
2020-09-12 23:32:13 +00:00
"rollup-plugin-filesize": "^9.0.2",
"rollup-plugin-node-polyfills": "^0.2.1",
2020-09-12 23:32:13 +00:00
"rollup-plugin-progress": "^1.1.2",
- Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); also expect one directory higher; incorporates #207 (@iuyiuy) - Breaking change: Separate `extIconsPath` from `extPath` (not copying over icons) - Breaking change: Don't reference `custom.css` in HTML; can instead be referenced in JavaScript through the config file (provided in `svgedit-config-sample-iife.js`/`svgedit-config-sample-es.js` as `svgedit-custom.css` for better namespacing); incorporates #207 (@iuyiuy) - Breaking change: Remove minified jgraduate/spinbtn files (minified within Rollup routine) - Fix: Zoom when scrolled; incorporates #169 (@AndrolGenhald), adapting for conventions; also allow avoidance when shift key pressed - Fix: Update Atom feed reference in HTML - Fixes related to recent commits: Some path and method name fixes needed, function order, missing methods, variable scope declaration, no need for DOMContentLoaded listeners in modules, switch back to non-default export, avoid trimming nullish, deal with mock tests, fix `math.matrixMultiply`, use jquery-svg where needed for array/SVG attributes; add babel-polyfill and defer script to imagelib; other misc. fixes - Enhancement: Move config-sample.js out of `editor` directory - Enhancement: For `callback`-style extensions, also provide config object; add following to that object: buildCanvgCallback, canvg, decode64, encode64, executeAfterLoads, getTypeMap, isChrome, ieIE, NS, text2xml - Enhancement: Complete ES6 modules work (extensions, locales, tests), along with Babel; make Node build routine for converting modular source to non-modular, use `loadStylesheets` for modular stylehsheet defining (but parallel loading); - Enhancement: Add `stylesheets` config for modular but parallel stylesheet loading with `@default` option for simple inclusion/exclusion of defaults (if not going with default). - Refactoring: Clean up `svg-editor.html`: consistent indents; avoid extra lbs, avoid long lines - Refactoring: Avoid embedded API adding inline JavaScript listener - Refactoring: Move layers and context code to `draw.js` - Refactoring: Move `pathActions` from `svgcanvas.js` (though preserve aliases to these methods on `canvas`) and `convertPath` from `svgutils.js` to `path.js` - Refactoring: Move `getStrokedBBox` from `svgcanvas.js` (while keeping an alias) to `svgutils.js` (as `getStrokedBBoxDefaultVisible` to avoid conflict with existing) - Docs: Remove "dependencies" comments in code except where summarizing role of jQuery or a non-obvious dependency - Refactoring/Linting: Enfore `no-extra-semi` and `quote-props` rules - Refactoring: Further avoidance of quotes on properties (as possible) - Refactoring: Use `class` in place of functions where intended as classes - Refactoring: Consistency and granularity in extensions imports - Testing: Update QUnit to 2.6.1 (node_modules) and Sinon to 5.0.8 (and add sinon-test at 2.1.3) and enforce eslint-plugin-qunit linting rules; update custom extensions - Testing: Add node-static for automating (and accessing out-of-directory contents) - Testing: Avoid HTML attributes for styling - Testing: Add npm `test` script - Testing: Comment out unused jQuery SVG test - Testing: Add test1 and svgutils_performance_test to all tests page - Testing: Due apparently to Path having not been a formal class, the test was calling it without `new`; refactored now with sufficient mock data to take into account it is a class - npm: Update devDeps - npm: Add html modules and config build to test script
2018-05-22 10:03:16 +00:00
"rollup-plugin-re": "^1.0.7",
2020-09-06 10:28:26 +00:00
"rollup-plugin-terser": "^7.0.2",
2020-08-28 23:20:37 +00:00
"stackblur-canvas": "^2.4.0",
2020-10-16 21:50:25 +00:00
"systemjs": "^6.7.1",
2020-09-18 20:26:13 +00:00
"typescript": "^4.0.3",
"underscore": "^1.11.0"
}
}