Commit Graph

54820 Commits

Author SHA1 Message Date
Sergey Rostov 6388cdc3b7 Gradle, js, npm: skip KotlinProjectExtensions from different class loaders 2019-05-20 09:55:37 +03:00
Sergey Rostov 9a90627b32 Gradle, js: fix supporting sub targets DSL in build.gradle.kts 2019-05-20 09:55:36 +03:00
Sergey Rostov 3a9f3525f1 Gradle, js, npm: skip old Kotlin2JsPlugin compilations 2019-05-20 09:55:36 +03:00
Sergey Rostov 7589d89a59 Gradle, js: create run task only when project evaluated
As it may be created after js target configuration by java application plugin
2019-05-20 09:55:36 +03:00
Sergey Rostov 15e0d6af92 Gradle, js, npm: fix case when resolver visits dependents projects first 2019-05-20 09:55:36 +03:00
Sergey Rostov 52f01ef43f Gradle, js: implement NpmSimpleLinker for cases when there are no npm dependencies 2019-05-20 09:55:36 +03:00
Sergey Rostov 75708dad87 Gradle, js: fix task input annotations 2019-05-20 09:55:36 +03:00
Sergey Rostov 48fd3b6b87 Gradle, tests: don't use gradle testing internals by default 2019-05-20 09:55:35 +03:00
Ting-Yuan Huang 75646f97a4 MoveCompanionObjectFields: copy constants into interfaces
Fields having const attribute in companion objects are observable in
Java and should be copied to outer interfaces.
2019-05-20 08:43:00 +02:00
Toshiaki Kameyama 6ff776ba65 Convert property to function: fix incorrectly conversion when property has explicit generic type
#KT-29192 Fixed
2019-05-19 14:57:25 +07:00
Toshiaki Kameyama 354f8f0bf1 Redundant 'suspend' modifier inspection: don't report when function has suspend operator invoke
#KT-25465 Fixed
2019-05-18 11:54:57 +03:00
Sergey Rostov cf5577dfa6 Gradle, tests: fix cleanAllTests task name 2019-05-18 08:15:43 +03:00
Sergey Rostov cec2e8c61a Gradle, js: update npm packages versions 2019-05-18 08:15:42 +03:00
Sergey Rostov 775ed2f9e5 Gradle: introduce "target" DSL function for single platform plugins 2019-05-18 08:15:42 +03:00
Sergey Rostov b8fd4f56bb Gradle, js: introduce commonJs() dsl function 2019-05-18 08:15:42 +03:00
Sergey Rostov 83042afd5c Gradle, js, webpack: report progress
#KT-31013
2019-05-18 08:15:41 +03:00
Sergey Rostov 77dd806742 Gradle, js, yarn: split into workspaces and simple implementations
#KT-31018
	#KT-31017
2019-05-18 08:15:41 +03:00
Sergey Rostov fab879bf33 Gradle, js, npm: store imported packages as yarn workspaces
#KT-30530
2019-05-18 08:15:41 +03:00
Sergey Rostov 64f997daa4 Gradle, tests: fix type in "prepend" 2019-05-18 08:15:40 +03:00
Sergey Rostov 68cb28d76f Gradle, js, karma: source maps support
#KT-31478
	#KT-31011
	#KT-30573
2019-05-18 08:15:40 +03:00
Sergey Rostov 9a6a2e14a5 Gradle, js, tests: don't add prefix if platform and/or sub target name is null 2019-05-18 08:15:39 +03:00
Sergey Rostov 5d8f2acf5f Gradle, js: create npm packages per compilation
#KT-30530
2019-05-18 08:15:39 +03:00
Sergey Rostov b195d18d2d Gradle, js: resolve npm dependencies without task only during IDEA import
#KT-30530
2019-05-18 08:15:39 +03:00
Sergey Rostov 09e81ddd21 Gradle, js: create one npmResolve per build (share between subprojects)
#KT-30530
2019-05-18 08:15:38 +03:00
Sergey Rostov 8166cfb054 Gradle, js, npm: remove hoisted gradle node modules. Split results collection from shared cache.
#KT-30530
2019-05-18 08:15:38 +03:00
Sergey Rostov eb3c701040 Gradle, js, npm: resolver between projects
#KT-30530
2019-05-18 08:15:38 +03:00
Sergey Rostov 5cfe117fd7 Gradle, js: use project.whenEvaluated instead of project.afterEvaluate 2019-05-18 08:15:37 +03:00
Sergey Rostov 2d51e2bca5 Gradle, js, dsl: use ConfigureUtil.configure for Groovy compatibility 2019-05-18 08:15:37 +03:00
Sergey Rostov 04a5b5a367 Gradle, js, krama: use web pack config directory
#KT-31011
2019-05-18 08:15:37 +03:00
Sergey Rostov c2a6654194 Gradle, js: don't use any subtarget by default 2019-05-18 08:15:36 +03:00
Sergey Rostov 2a2f59ae1c Gradle, js, run: fix run dependencies on browserRun and nodeRun 2019-05-18 08:15:36 +03:00
Sergey Rostov 156d50646d Gradle, js, test: add basic @Input for test frameworks settings 2019-05-18 08:15:36 +03:00
Sergey Rostov e435b9352a Gradle, js: aggregate jsTest task should work the same way as all tests aggregator
E.g: individual test tasks should not fail build, aggregate reports should be created.
Also this task should not be included in check (as all tests should be already executed
from the all tests aggregated task).
2019-05-18 08:15:35 +03:00
Sergey Rostov 26c2afd8d5 Gradle, js, karma: show output as progress 2019-05-18 08:15:35 +03:00
Sergey Rostov c7d52331f7 Gradle, js, yarn: remove outdated warning about yarn workspaces
#KT-31018
	#KT-31017
2019-05-18 08:15:35 +03:00
Sergey Rostov 3ede15b2b2 Gradle, js: fixes for groovy dsl 2019-05-18 08:15:34 +03:00
Sergey Rostov 7e4eaa8210 Gradle, js, browser: best effort for parsing karma suite names
#KT-31011
2019-05-18 08:15:34 +03:00
Sergey Rostov 236dfa98b6 Gradle, js, browser: fix karma.conf.js writer
#KT-31011
2019-05-18 08:15:34 +03:00
Sergey Rostov 14d399e9ab Gradle, js, browser: fix run 2019-05-18 08:15:33 +03:00
Sergey Rostov 422ad763e4 Gradle, js: fix resolving required dependencies
#KT-31011
2019-05-18 08:15:33 +03:00
Sergey Rostov 9610c60b17 Gradle, nodeJs: fix tests 2019-05-18 08:15:33 +03:00
Sergey Rostov a13a86a543 Gradle, js: revert to storing compile output inside node_modules
#KT-30530
Currently kotlin JS compiler generated `require('a.js')` for test -> main
dependencies. This is not worked in layout with compile output at project
work dir (will work if compiler will generate `require('a_test.js')`).
2019-05-18 08:15:32 +03:00
Sergey Rostov b9f69ffe79 Gradle, js: extract NpmProjectModules to separate file
#KT-30530
2019-05-18 08:15:32 +03:00
Sergey Rostov e2aafd5512 Gradle, js, node: fix source map support configuration
#KT-30573 Fixed
2019-05-18 08:15:31 +03:00
Sergey Rostov 1c3bb8529a Gradle, js: fix nodejs run target 2019-05-18 08:15:31 +03:00
Sergey Rostov c8e8224005 Gradle, js: restore umd by default 2019-05-18 08:15:31 +03:00
Sergey Rostov 6229b8682e Gradle, js: fix karma.conf.js by wrapping config in function
#KT-31011
2019-05-18 08:15:30 +03:00
Sergey Rostov 8e2075ebcc Gradle, js: implement resolving node modules according to https://nodejs.org/api/modules.html
#KT-30530
2019-05-18 08:15:30 +03:00
Sergey Rostov d08402a00c Gradle, js: fix requiredDependencies resolve 2019-05-18 08:15:30 +03:00
Sergey Rostov 1fe84c71e4 Gradle, js: fix NodeJsExec 2019-05-18 08:15:29 +03:00