From 2d3929ee58662c52866c5e2d1f94cdd316ce0033 Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Wed, 11 Oct 2017 15:02:12 +0300 Subject: [PATCH] JS: add ant tasks for publishing kotlin-test-js to NPM (KT-19682) --- js/npm.templates/kotlin-test/README.md | 32 +++++++++++++++++++++++ js/npm.templates/kotlin-test/package.json | 23 ++++++++++++++++ node_utils.xml | 13 +++++++++ 3 files changed, 68 insertions(+) create mode 100644 js/npm.templates/kotlin-test/README.md create mode 100644 js/npm.templates/kotlin-test/package.json diff --git a/js/npm.templates/kotlin-test/README.md b/js/npm.templates/kotlin-test/README.md new file mode 100644 index 00000000000..24faf2af066 --- /dev/null +++ b/js/npm.templates/kotlin-test/README.md @@ -0,0 +1,32 @@ +# Kotlin Test + +Module `kotlin-test` is used by the [Kotlin/JS](https://kotlinlang.org/docs/tutorials/javascript/kotlin-to-javascript/kotlin-to-javascript.html) +compiler output for performing assertions in tests, independently of the test framework being used. + +The library includes out-of-the-box support for [Jasmine](https://jasmine.github.io/), +[Mocha](https://mochajs.org/), [Jest](https://facebook.github.io/jest/), +and [QUnit](http://qunitjs.com). + +Try out the [examples](https://github.com/JetBrains/kotlin-examples/tree/master/gradle/js-tests), +read the [forum post](https://discuss.kotlinlang.org/t/unit-testing-in-kotlin-js/3943) +and the [library documentation](https://kotlinlang.org/api/latest/kotlin.test/kotlin.test/index.html) +for more information. + +## Handy links + + * [Kotlin Site](http://kotlinlang.org/) + * [Getting Started Guide](http://kotlinlang.org/docs/tutorials/javascript/getting-started-idea/getting-started-with-intellij-idea.html) + * [Try Kotlin](http://try.kotlinlang.org/) + * [Kotlin Standard Library](http://kotlinlang.org/api/latest/jvm/stdlib/index.html) + * [Issue Tracker](http://youtrack.jetbrains.com/issues/KT) + * [Forum](http://devnet.jetbrains.net/community/kotlin?view=discussions) + * [Kotlin Blog](http://blog.jetbrains.com/kotlin/) + * [Follow Kotlin on Twitter](https://twitter.com/kotlin) + * [Public Slack channel](http://slack.kotlinlang.org/) + * [TeamCity CI build](https://teamcity.jetbrains.com/project.html?tab=projectOverview&projectId=Kotlin) + +## Editing Kotlin + + * [Kotlin IntelliJ IDEA Plugin](https://kotlinlang.org/docs/tutorials/getting-started.html) + * [Kotlin Eclipse Plugin](http://kotlinlang.org/docs/tutorials/getting-started-eclipse.html) + * [Kotlin TextMate Bundle](https://github.com/vkostyukov/kotlin-sublime-package) diff --git a/js/npm.templates/kotlin-test/package.json b/js/npm.templates/kotlin-test/package.json new file mode 100644 index 00000000000..65ad334a0de --- /dev/null +++ b/js/npm.templates/kotlin-test/package.json @@ -0,0 +1,23 @@ +{ + "name": "kotlin-test", + "version": "1.0.0", + "description": "Standard Testing Library for Kotlin Applications", + "main": "kotlin-test.js", + "repository": { + "type": "git", + "url": "git+https://git@github.com/JetBrains/kotlin.git" + }, + "keywords": [ + "Kotlin", + "Language", + "Testing", + "JavaScript", + "JetBrains" + ], + "author": "JetBrains", + "license": "Apache-2.0", + "bugs": { + "url": "kotl.in/issue" + }, + "homepage": "kotlinlang.org" +} diff --git a/node_utils.xml b/node_utils.xml index 1dfdd6908af..f7fd33af685 100644 --- a/node_utils.xml +++ b/node_utils.xml @@ -124,11 +124,24 @@ + + + + + + + + + + + + +