aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-01 13:32:23 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-01 13:32:23 +0100
commit637039fbde6a68f18f89ce8677f6b8ca667ba689 (patch)
tree25538f2650623b9636958119d0a169c9780f5ae2 /package.json
parent998b422fa24c4f45b0265779cdf4d0833788040a (diff)
downloadsvg.js-637039fbde6a68f18f89ce8677f6b8ca667ba689.tar.gz
svg.js-637039fbde6a68f18f89ce8677f6b8ca667ba689.zip
dont generate esm bundle anymore and link to src/main.js directly. Move bower to its own repo
rename makeNode back to create
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 6 insertions, 3 deletions
diff --git a/package.json b/package.json
index 8fc5e37..1ac0436 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"unpkg": "dist/svg.min.js",
"jsdelivr": "dist/svg.min.js",
"browser": "dist/svg.min.js",
- "module": "dist/svg.js",
+ "module": "src/main.js",
"maintainers": [
{
"name": "Wout Fierens",
@@ -53,7 +53,7 @@
"scripts": {
"build": "npm run fix && npm run rollup",
"build:polyfills": "npx rollup -c .config/rollup.polyfills.js",
- "build:tests": "npx rollup -c rollup.tests.js",
+ "build:tests": "npx rollup -c .config/rollup.tests.js",
"fix": "npx eslint ./src --fix",
"lint": "eslint ./src",
"rollup": "rollup -c .config/rollup.config.js",
@@ -62,8 +62,11 @@
"test:ci": "karma start .config/karma.conf.saucelabs.js",
"test:svgdom": "node -r esm ./spec/runSVGDomTest.js || true",
"test:es6": "npx karma start .config/karma.es6.js --single-run",
+ "bower:copy": "cp ../svg.js/LICENSE ../svg.js/README.md ../svg.js/dist/svg.js ../svg.js/dist/svg.min.js ../svg.js/dist/polyfills.js ../svg.js/dist/polyfillsIE.js .",
+ "bower:tag": "git add -- LICENSE README.md svg.js svg.min.js && git commit -m \"${npm_package_version}\" && git tag -am \"${npm_package_version}\" v${npm_package_version} && git push && git push --tags",
+ "zip": "zip -j dist/svg.js.zip -- LICENSE README.md API.md CHANGELOG.md dist/svg.js.js dist/svg.min.js dist/polyfills.js dist/polyfillsIE.js",
"prepublishOnly": "npm run build && npm run build:polyfills && npm test",
- "postPublish": "echo Please upload a zip to the github release containing the dist, license and changelog"
+ "postpublish": "git push && git push --tags && cd ../svg.js-bower && git pull && npm run bower:copy && npm run bower:tag && cd ../svg.js && npm run zip"
},
"devDependencies": {
"@babel/core": "^7.1.2",