Comments (4)
Hi @runkelstein,
When you're depending on com.github.cypressious.kotlin-webextensions-declarations:webextensions-declarations
, you're only getting the declarations. They don't have any dependencies on the generator.
from kotlin-webextensions-declarations.
Hi cypressious,
ok than maybee it is a problem with my gradle file or intelijii. I can build it without the generator, but intelijii marks it still red:
That is my build.gradle.kt file:
import org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile
plugins {
id("kotlin2js") version Versions.kotlin apply true
}
repositories {
jcenter()
mavenCentral()
maven("https://www.jitpack.io")
}
dependencies {
compile(kotlin("stdlib-js", Versions.kotlin) )
}
allprojects {
apply {
plugin("kotlin-dce-js")
plugin("kotlin2js")
}
repositories {
jcenter()
mavenCentral()
maven("https://www.jitpack.io")
}
dependencies {
compile(kotlin("stdlib-js", Versions.kotlin))
compile("com.github.cypressious", "kotlin-webextensions-declarations", Versions.kotlinWebextensions);
}
tasks {
compileKotlin2Js {
kotlinOptions {
sourceMap = true
kotlinOptions.sourceMapEmbedSources = "always"
}
}
}
}
from kotlin-webextensions-declarations.
Ok, now I see it, I have to change that line
compile("com.github.cypressious", "kotlin-webextensions-declarations", Versions.kotlinWebextensions);
to
compile("com.github.cypressious.kotlin-webextensions-declarations", "webextensions-declarations", Versions.kotlinWebextensions);
then it is working as expected. Thanks for your reply.
from kotlin-webextensions-declarations.
Perfect, thx for reporting your solution.
from kotlin-webextensions-declarations.
Related Issues (20)
- Types that are string enums shouldn't be generated as classes
- Type descriptions are missing
- Do something with permissions
- Add missing types from toolkit/components/extensions
- Events
- Prevent duplicate type names
- Add descriptions to typealias
- Make optional parameters nullable
- Generate Manifest Types
- Decide between Any and dynamic for undenotable types
- Handle additionalProperties & patternProperties HOT 1
- Generate non-async return types
- contextMenus namespace is empty
- Use external interfaces with factory methods instead of external classes
- webRequest.onAuthRequired.addListener takes multiple arguments HOT 3
- Chrome & webextension-polyfill
- Problem with StorageNameSpace HOT 2
- webRequest.onBeforeRequest.addListener takes multiple params
- Code generation breaks with newer versions of kotlin poet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-webextensions-declarations.