diff --git a/.gitignore b/.gitignore index 31f6f2a..3dfcbfd 100644 --- a/.gitignore +++ b/.gitignore @@ -11,9 +11,8 @@ temp .couscous couscous.phar .okhttpcache -jdeploy-bundle +codeclimate.json +index.js package.json -node_modules package-lock.json - -codeclimate.json +node_modules diff --git a/build.gradle b/build.gradle index c2eec1d..c80a148 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,7 @@ buildscript { } } project.ext.buildConfig = [ + repoType: "COMMAND", publishing: [ relocate: [ "org:org", diff --git a/package.json.orig b/package.json.orig deleted file mode 100644 index eee6e0c..0000000 --- a/package.json.orig +++ /dev/null @@ -1,19 +0,0 @@ -{ - "bin": {"violations-command-line": "jdeploy-bundle/jdeploy.js"}, - "author": "Tomas Bjerre", - "description": "Command line tool that will find report files from static code analysis, present and optionally fail the command.", - "keywords": [ - "violation", "static code analysis", "Checkstyle", "CPPLint", "CPPCheck", "CSSLint", "Findbugs", "Flake8", "PyLint", "Pep8", "Mccabe", "PyFlakes", "JSHint", "Lint", "PerlCritic", "PMD", "ReSharper", "XMLLint" - ], - "homepage": "https://github.com/tomasbjerre/violations-command-line", - "repository": "git@github.com:tomasbjerre/violations-command-line.git", - "main": "index.js", - "preferGlobal": true, - "version": "VERSION", - "jdeploy": {"jar": "build/libs/violations-command-line-VERSION.jar"}, - "dependencies": {"shelljs": "^0.7.5"}, - "license": "Apache 2", - "name": "violations-command-line", - "files": ["jdeploy-bundle"], - "scripts": {"test": "echo \"Error: no test specified\" && exit 1"} -} diff --git a/publish-npm.sh b/publish-npm.sh deleted file mode 100755 index 8031c3e..0000000 --- a/publish-npm.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -sudo rm -rf jdeploy-bundle -version=`cat gradle.properties | grep version | cut -d'=' -f2` -echo "Version is: \"$version\"" -rm -rf package.json -cp package.json.orig package.json -sed -i "s/VERSION/$version/g" package.json -sudo jdeploy publish diff --git a/release.sh b/release.sh deleted file mode 100755 index c09cc66..0000000 --- a/release.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -./gradlew releaseMinor -./publish-npm.sh -