From: Ulrich-Matthias Schäfer Date: Sat, 1 Dec 2018 12:50:17 +0000 (+0100) Subject: add scripts to automatically upload to bower repo when publishing X-Git-Tag: 3.0.0~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99074bd80815d944f5b9c4e388a4203560b0e69e;p=svg.js.git add scripts to automatically upload to bower repo when publishing --- diff --git a/package.json b/package.json index 1ac0436..d37233b 100644 --- a/package.json +++ b/package.json @@ -62,11 +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", + "bower:copy": "cd ../svg.js-bower && git pull && cp ../svg.js/LICENSE.txt ../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 . && cd ../svg.js", + "bower:tag": "cd ../svg.js-bower 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 && cd ../svg.js", + "zip": "zip -j dist/svg.js.zip -- LICENSE.txt README.md CHANGELOG.md dist/svg.js dist/svg.min.js dist/polyfills.js dist/polyfillsIE.js", "prepublishOnly": "npm run build && npm run build:polyfills && npm test", - "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" + "postpublish": "git push && git push --tags && npm run bower:copy && npm run bower:tag && npm run zip" }, "devDependencies": { "@babel/core": "^7.1.2",