-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Versions upgrade and sandbox cleanup
- Loading branch information
Showing
34 changed files
with
312 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ local.properties | |
apiDiff.api | ||
public/ | ||
node_modules | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# v2.0.4 | ||
## Versions | ||
* Kotlin: 1.5.21 | ||
* Gradle: 7.1.1 | ||
* JDK: 11 | ||
|
||
## Changes | ||
* Updated versions | ||
* Dynamic version ranges for increased compatibility | ||
* Fixed a bug that always expected version to be a string | ||
* Removed some duplicated code in sandbox | ||
* New sandbox module to check that plugin can work with both, nodejs() and browser() flavours at the same time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
# The following property is required to mitigate issue https://github.com/gradle/gradle/issues/11412. | ||
systemProp.org.gradle.internal.publish.checksums.insecure=true | ||
kotlin.code.style=official | ||
kotlin.parallel.tasks.in.project=true | ||
kotlin.js.generate.externals=false | ||
kotlin.js.compiler=ir | ||
kotlin.incremental.js=true | ||
kotlin.mpp.stability.nowarn=true | ||
kotlin.stdlib.default.dependency=false | ||
org.gradle.project.sourceCompatibility=11 | ||
org.gradle.vfs.watch=true | ||
org.gradle.parallel=true | ||
|
||
version=0.0.0 | ||
group=dev.petuska | ||
#publish.all=true | ||
#publish.GitHub=true | ||
#publish.Bintray=true | ||
#publish.skip.all=true | ||
#publish.skip.GitLab=true | ||
#publish.skip.Bintray=true | ||
group=dev.petuska |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
plugins { | ||
kotlin("js") | ||
id("dev.petuska.npm.publish") | ||
} | ||
|
||
kotlin { | ||
js { | ||
nodejs() | ||
browser() | ||
useCommonJs() | ||
binaries.library() | ||
} | ||
dependencies { | ||
implementation(npm("axios", "*")) | ||
api(devNpm("snabbdom", "*")) | ||
implementation("io.ktor:ktor-client-core:_") | ||
} | ||
sourceSets { | ||
all { | ||
languageSettings.useExperimentalAnnotation("kotlin.js.ExperimentalJsExport") | ||
} | ||
} | ||
} | ||
|
||
npmPublishing { | ||
organization = group as String | ||
|
||
publications { | ||
named("js") { | ||
packageJsonTemplateFile = projectDir.resolve("../template.package.json") | ||
packageJson { | ||
author { name = "Martynas Petuška" } | ||
} | ||
} | ||
} | ||
repositories { | ||
repository("GitLab") { | ||
registry = uri("https://gitlab.com/api/v4/projects/${System.getenv("CI_PROJECT_ID")?.trim()}/packages/npm") | ||
authToken = System.getenv("PRIVATE_TOKEN")?.trim() ?: "" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../both/src |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
kotlin.mpp.stability.nowarn=true | ||
org.gradle.vfs.watch=true | ||
npm.publish.dry=true | ||
org.gradle.parallel=true | ||
npm.publish.dry=false | ||
kotlin.js.compiler=ir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../both/src/main/kotlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../both/src/main/resources |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../both/src |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
rootProject.name = "sandbox" | ||
pluginManagement { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
} | ||
plugins { | ||
id("de.fayard.refreshVersions") version "0.10.1" | ||
id("com.gradle.enterprise") version "3.6.3" | ||
} | ||
|
||
include(":node", ":browser", ":mpp") | ||
rootProject.name = "sandbox" | ||
|
||
include(":node", ":browser", ":both", ":mpp") | ||
includeBuild("../") { | ||
dependencySubstitution { | ||
substitute(module("dev.petuska:npm-publish")).with(project(":")) | ||
substitute(module("dev.petuska.npm.publish:dev.petuska.npm.publish.gradle.plugin")).with(project(":")) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "@dev.petuska/ts-consumer", | ||
"main": "src/insex.ts", | ||
"version": "0.0.0", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"clean": "rm -rf node_modules/@dev.petuska", | ||
"start": "ts-node src/index.ts" | ||
}, | ||
"dependencies": { | ||
"@dev.petuska/both": "file:../both/build/publications/npm/dev.petuska-both-0.0.0.tgz", | ||
"@dev.petuska/browser": "file:../browser/build/publications/npm/dev.petuska-browser-0.0.0.tgz", | ||
"@dev.petuska/mpp-browser": "file:../mpp/build/publications/npm/dev.petuska-mpp-browser-0.0.0.tgz", | ||
"@dev.petuska/mpp-node": "file:../mpp/build/publications/npm/dev.petuska-mpp-node-0.0.0.tgz", | ||
"@dev.petuska/node": "file:../node/build/publications/npm/dev.petuska-node-0.0.0.tgz" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.4.0", | ||
"ts-node": "^10.1.0", | ||
"typescript": "^4.3.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import both from '@dev.petuska/both' | ||
import browser from '@dev.petuska/browser' | ||
import node from '@dev.petuska/node' | ||
import mppBrowser from '@dev.petuska/mpp-browser' | ||
import mppNode from '@dev.petuska/mpp-node' | ||
|
||
both.test.sandbox.sayFormalHello({name: 'Both', sureName: 'Simple'}) | ||
browser.test.sandbox.sayFormalHello({name: 'Browser', sureName: 'Simple'}) | ||
node.test.sandbox.sayFormalHello({name: 'Node', sureName: 'Simple'}) | ||
mppBrowser.test.sandbox.sayFormalHello({name: 'Browser', sureName: 'MPP'}) | ||
mppNode.test.sandbox.sayFormalHello({name: 'Node', sureName: 'MPP'}) |
Oops, something went wrong.