[Gradle, JS] Add NodeJs template plugin

^KT-40527 fixed
This commit is contained in:
Ilya Goncharov
2020-07-20 20:42:35 +03:00
parent 6866fdc3e1
commit 95f6669275
2 changed files with 15 additions and 0 deletions
@@ -30,6 +30,7 @@ object Plugins {
ConsoleJvmApplicationTemplatePlugin(context),
KtorTemplatesPlugin(context),
JsTemplatesPlugin(context),
SimpleNodeJsTemplatesPlugin(context),
NativeConsoleApplicationTemplatePlugin(context)
)
}
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.tools.projectWizard.plugins.templates
import org.jetbrains.kotlin.tools.projectWizard.core.Context
import org.jetbrains.kotlin.tools.projectWizard.templates.SimpleJsClientTemplate
import org.jetbrains.kotlin.tools.projectWizard.templates.SimpleNodeJsTemplate
class SimpleNodeJsTemplatesPlugin(context: Context) : TemplatePlugin(context) {
val addTemplate by addTemplateTask(SimpleNodeJsTemplate())
}