Remove bower support
This commit is contained in:
parent
bae73b15a2
commit
ed942a8f85
3 changed files with 1 additions and 79 deletions
52
bower.json
52
bower.json
|
|
@ -1,52 +0,0 @@
|
|||
{
|
||||
"name": "diff2html",
|
||||
"version": "2.4.0",
|
||||
"homepage": "https://diff2html.xyz",
|
||||
"description": "Fast Diff to colorized HTML",
|
||||
"keywords": [
|
||||
"git",
|
||||
"diff",
|
||||
"pretty",
|
||||
"side",
|
||||
"line",
|
||||
"side-by-side",
|
||||
"line-by-line",
|
||||
"character",
|
||||
"highlight",
|
||||
"pretty",
|
||||
"color",
|
||||
"html",
|
||||
"diff2html",
|
||||
"difftohtml",
|
||||
"colorized"
|
||||
],
|
||||
"authors": [
|
||||
"Rodrigo Fernandes <rtfrodrigo@gmail.com>"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/rtfpessoa/diff2html.git"
|
||||
},
|
||||
"main": [
|
||||
"./dist/diff2html.js",
|
||||
"./dist/diff2html.css"
|
||||
],
|
||||
"license": "MIT",
|
||||
"moduleType": [
|
||||
"globals",
|
||||
"node"
|
||||
],
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"docs",
|
||||
"scripts",
|
||||
"src",
|
||||
"test",
|
||||
"typescript",
|
||||
"circle.yml",
|
||||
"CONTRIBUTING.md",
|
||||
"CREDITS.md",
|
||||
"npm-shrinkwrap.json",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
|
|
@ -38,7 +38,6 @@
|
|||
"scripts": {
|
||||
"release": "./scripts/release.sh",
|
||||
"release-website": "./scripts/release-website.sh",
|
||||
"release-bower": "./scripts/update-bower-version.sh",
|
||||
"templates": "./scripts/hulk.js --wrapper node --variable 'browserTemplates' ./src/templates/*.mustache > ./src/templates/diff2html-templates.js",
|
||||
"style": "yarn run lint",
|
||||
"lint": "eslint .",
|
||||
|
|
@ -47,7 +46,7 @@
|
|||
"test": "yarn run coverage && yarn run check-coverage",
|
||||
"codacy": "cat ./coverage/lcov.info | codacy-coverage",
|
||||
"preversion": "yarn run release && yarn run release-website && yarn run lint && yarn test",
|
||||
"version": "yarn run release-bower && git add -A src dist docs package.json bower.json",
|
||||
"version": "git add -A src dist docs package.json",
|
||||
"postversion": "git push && git push --tags"
|
||||
},
|
||||
"main": "./src/diff2html.js",
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# diff2html update bower version
|
||||
# by rtfpessoa
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
echo "diff2html updating bower version..."
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
SED_BIN=sed
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
SED_BIN=gsed
|
||||
else
|
||||
echo "Cannot run this script in ${OSTYPE}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RELEASE_VERSION=$(cat package.json | grep "version" | head -1 | $SED_BIN -e 's/ "version": "\(.*\)",/\1/')
|
||||
|
||||
$SED_BIN -i 's/.*"version".*/ "version": "'${RELEASE_VERSION}'",/' bower.json
|
||||
|
||||
echo "diff2html updated bower version successfully!"
|
||||
Loading…
Reference in a new issue