Browse Source

update version numbers & publish script

main 0.0.8
James Fenn 4 months ago
parent
commit
24b3e6e186
3 changed files with 22 additions and 17 deletions
  1. +2
    -2
      gitrest/build.gradle
  2. +14
    -14
      npm/package.json
  3. +6
    -1
      npm/publish.sh

+ 2
- 2
gitrest/build.gradle View File

@@ -2,8 +2,8 @@ apply plugin: "com.android.library"
apply plugin: "kotlin-multiplatform"
apply plugin: "kotlinx-serialization"

def libraryVersion = "0.0.7"
def libraryVersionCode = 7
def libraryVersion = "0.0.8"
def libraryVersionCode = 8

apply plugin: 'maven-publish'
group 'gitrest'


+ 14
- 14
npm/package.json View File

@@ -1,6 +1,6 @@
{
"name": "git-rest-wrapper",
"version": "0.0.7",
"version": "0.0.8",
"description": "A \"universal\" / normalized API wrapper for common git hosting services.",
"main": "index.js",
"files": [
@@ -22,26 +22,26 @@
"homepage": "https://code.horrific.dev/james/git-rest-wrapper#user-content-git-rest-api-wrapper",
"dependencies": {
"abort-controller": "^3.0.0",
"node-fetch": "^2.6.0",
"text-encoding": "^0.7.0",
"node-persist": "^3.1.0"
"node-fetch": "^2.6.1",
"node-persist": "^3.1.0",
"text-encoding": "^0.7.0"
},
"bundledDependencies": [
"kotlin",
"kotlin-source-map-loader",
"kotlin-test",
"kotlin-test-js-runner",
"kotlinx-atomicfu",
"kotlinx-coroutines-core",
"kotlinx-html-js",
"kotlinx-serialization-kotlinx-serialization-runtime",
"ktor-ktor-client-core",
"ktor-ktor-client-js",
"ktor-ktor-client-json",
"ktor-ktor-client-serialization",
"ktor-ktor-http",
"ktor-ktor-http-cio",
"ktor-ktor-io",
"ktor-ktor-utils"
"kotlinx-serialization-kotlinx-serialization-core-jsLegacy",
"kotlinx-serialization-kotlinx-serialization-json-jsLegacy",
"ktor-ktor-client-core-jsLegacy",
"ktor-ktor-client-js-jsLegacy",
"ktor-ktor-client-json-jsLegacy",
"ktor-ktor-client-serialization-jsLegacy",
"ktor-ktor-http-cio-jsLegacy",
"ktor-ktor-http-jsLegacy",
"ktor-ktor-io-jsLegacy",
"ktor-ktor-utils-jsLegacy"
]
}

+ 6
- 1
npm/publish.sh View File

@@ -1,6 +1,11 @@
#!/bin/bash
set -e

# Update version number in package.json (to match build.gradle def)
PACKAGE_VERSION=$( cd .. && ./gradlew :gitrest:properties | grep -oP '(?<=^version: )[0-9\.]+' )
PACKAGE_JSON=$(jq --arg version "$PACKAGE_VERSION" '.version = $version' package.json)
echo "$PACKAGE_JSON" > package.json

# Build JS file (ignore browser tests...)
( cd .. && ./gradlew :gitrest:build -x :gitrest:jsBrowserTest )

@@ -29,7 +34,7 @@ install_bundled_packages
# Update 'bundledDependencies' value in package.json
PACKAGE_DEPENDENCIES=$(echo "${BUNDLE_PACKAGES[@]}" | jq -s '.')
PACKAGE_JSON=$(jq --argjson dependencies "$PACKAGE_DEPENDENCIES" '.bundledDependencies = $dependencies' package.json)
echo $PACKAGE_JSON > package.json
echo "$PACKAGE_JSON" > package.json

# Install regular NPM dependencies for testing
NPM_PACKAGES=$(jq '.dependencies | to_entries | map("\(.key)@\(.value|tostring)") | .[]' package.json)


Loading…
Cancel
Save