├── .github
├── ISSUE_TEMPLATE
│ ├── config.yml
│ ├── feature_request.yml
│ └── bug_report.yml
├── FUNDING.yml
├── workflows
│ ├── junie.yml
│ ├── git-flow.yml
│ ├── run-ui-tests.yml
│ ├── release.yml
│ ├── changelog.yml
│ └── build.yml
├── stale.yml
└── dependabot.yml
├── .gitignore
├── gradle
├── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
└── libs.versions.toml
├── settings.gradle.kts
├── codecov.yml
├── qodana.yml
├── .devcontainer
└── devcontainer.json
├── src
└── main
│ ├── resources
│ ├── messages
│ │ └── NuxtBundle.properties
│ ├── icons
│ │ ├── nuxt.svg
│ │ └── type.svg
│ └── META-INF
│ │ ├── pluginIcon.svg
│ │ └── plugin.xml
│ └── kotlin
│ └── com
│ └── nekofar
│ └── milad
│ └── intellij
│ └── nuxtjs
│ ├── NuxtIcons.kt
│ ├── cli
│ ├── NuxtCliProjectModuleBuilder.kt
│ ├── NuxtProjectTemplateFactory.kt
│ └── NuxtCliProjectGenerator.kt
│ ├── NuxtFileType.kt
│ ├── NuxtBundle.kt
│ └── diagnostic
│ └── NuxtErrorReportSubmitter.kt
├── CONTRIBUTING.md
├── .run
├── Run Tests.run.xml
├── Run Plugin.run.xml
├── Run Verifications.run.xml
└── Run Plugin Verification.run.xml
├── gradle.properties
├── README.md
├── cliff.toml
├── gradlew.bat
├── CHANGELOG.md
├── gradlew
└── LICENSE
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .gradle
3 | .idea
4 | .intellijPlatform
5 | .kotlin
6 | .qodana
7 | build
8 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KartanHQ/intellij-nuxtjs/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: nekofar
4 | custom: https://ud.me/nekofar.crypto
5 |
--------------------------------------------------------------------------------
/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | rootProject.name = "intellij-nuxtjs"
2 |
3 | plugins {
4 | id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
5 | }
6 |
--------------------------------------------------------------------------------
/codecov.yml:
--------------------------------------------------------------------------------
1 | coverage:
2 | status:
3 | project:
4 | default:
5 | informational: true
6 | threshold: 0%
7 | base: auto
8 | patch:
9 | default:
10 | informational: true
11 |
--------------------------------------------------------------------------------
/qodana.yml:
--------------------------------------------------------------------------------
1 | # Qodana configuration:
2 | # https://www.jetbrains.com/help/qodana/qodana-yaml.html
3 |
4 | version: "1.0"
5 | linter: jetbrains/qodana-jvm-community:2024.3
6 | projectJDK: "21"
7 | profile:
8 | name: qodana.recommended
9 | exclude:
10 | - name: All
11 | paths:
12 | - .qodana
13 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/.devcontainer/devcontainer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Java",
3 | "image": "mcr.microsoft.com/devcontainers/java:1-21",
4 | "features": {
5 | "ghcr.io/devcontainers/features/java:1": {
6 | "version": "none",
7 | "installMaven": "true",
8 | "mavenVersion": "3.8.6",
9 | "installGradle": "true"
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/src/main/resources/messages/NuxtBundle.properties:
--------------------------------------------------------------------------------
1 | nuxt.project.generator.name=Nuxt.js
2 | nuxt.project.generator.description=Create a new project using Nuxt.js official scaffolding tool .
3 | nuxt.project.generator.presentable.package.name=Create Nuxt App
4 | nuxt.file.type.name=Nuxt.js
5 | nuxt.file.type.description=Nuxt.js configuration
6 |
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/NuxtIcons.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs
2 |
3 | import com.intellij.openapi.util.IconLoader
4 |
5 | object NuxtIcons {
6 | @JvmField
7 | val FileType = IconLoader.getIcon("/icons/type.svg", javaClass)
8 |
9 | @JvmField
10 | val ProjectGenerator = IconLoader.getIcon("/icons/nuxt.svg", javaClass)
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/cli/NuxtCliProjectModuleBuilder.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs.cli
2 |
3 | import com.intellij.ide.util.projectWizard.WebTemplateNewProjectWizard
4 | import com.intellij.ide.wizard.GeneratorNewProjectWizardBuilderAdapter
5 |
6 | class NuxtCliProjectModuleBuilder :
7 | GeneratorNewProjectWizardBuilderAdapter(WebTemplateNewProjectWizard(NuxtCliProjectGenerator()))
8 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # How to Contribute
2 |
3 | ## Pull Requests
4 |
5 | 1. Fork the repository
6 | 2. Create a new branch for each feature or improvement
7 | 3. Send a pull request from each branch to the **develop** branch
8 |
9 | It is very important to separate new features or improvements into separate branches and to send a
10 | pull request for each branch. This allows reviewing and pulling in new features or improvements individually.
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/cli/NuxtProjectTemplateFactory.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs.cli
2 |
3 | import com.intellij.ide.util.projectWizard.WizardContext
4 | import com.intellij.lang.javascript.boilerplate.JavaScriptNewTemplatesFactoryBase
5 |
6 | class NuxtProjectTemplateFactory : JavaScriptNewTemplatesFactoryBase() {
7 | override fun createTemplates(context: WizardContext?) = arrayOf(NuxtCliProjectGenerator())
8 | }
9 |
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/NuxtFileType.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs
2 |
3 | import com.intellij.lang.javascript.JavascriptLanguage
4 | import com.intellij.openapi.fileTypes.LanguageFileType
5 |
6 | object NuxtFileType : LanguageFileType(JavascriptLanguage.INSTANCE) {
7 | override fun getIcon() = NuxtIcons.FileType
8 | override fun getName() = NuxtBundle.message("nuxt.file.type.name")
9 | override fun getDescription() = NuxtBundle.message("nuxt.file.type.description")
10 | override fun getDefaultExtension() = "js"
11 | }
12 |
--------------------------------------------------------------------------------
/.github/workflows/junie.yml:
--------------------------------------------------------------------------------
1 | name: Junie
2 | run-name: Junie run ${{ inputs.run_id }}
3 |
4 | permissions:
5 | contents: write
6 |
7 | on:
8 | workflow_dispatch:
9 | inputs:
10 | run_id:
11 | description: "id of workflow process"
12 | required: true
13 | workflow_params:
14 | description: "stringified params"
15 | required: true
16 |
17 | jobs:
18 | call-workflow-passing-data:
19 | uses: jetbrains-junie/junie-workflows/.github/workflows/ej-issue.yml@main
20 | with:
21 | workflow_params: ${{ inputs.workflow_params }}
22 |
--------------------------------------------------------------------------------
/src/main/resources/icons/nuxt.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/src/main/resources/META-INF/pluginIcon.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/NuxtBundle.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs
2 |
3 | import com.intellij.DynamicBundle
4 | import org.jetbrains.annotations.NonNls
5 | import org.jetbrains.annotations.PropertyKey
6 |
7 | @NonNls
8 | private const val BUNDLE = "messages.NuxtBundle"
9 |
10 | object NuxtBundle : DynamicBundle(BUNDLE) {
11 | @JvmStatic
12 | fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
13 | getMessage(key, *params)
14 |
15 | @Suppress("unused")
16 | @JvmStatic
17 | fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) =
18 | getLazyMessage(key, *params)
19 | }
20 |
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 60
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 7
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - pinned
8 | - security
9 | # Label to use when marking an issue as stale
10 | staleLabel: wontfix
11 | # Comment to post when marking an issue as stale. Set to `false` to disable
12 | markComment: >
13 | This issue has been automatically marked as stale because it has not had
14 | recent activity. It will be closed if no further activity occurs. Thank you
15 | for your contributions.
16 | # Comment to post when closing a stale issue. Set to `false` to disable
17 | closeComment: false
18 |
--------------------------------------------------------------------------------
/gradle/libs.versions.toml:
--------------------------------------------------------------------------------
1 | [versions]
2 | # libraries
3 | junit = "4.13.2"
4 | opentest4j = "1.3.0"
5 |
6 | # plugins
7 | changelog = "2.4.0"
8 | intelliJPlatform = "2.10.5"
9 | kotlin = "2.2.21"
10 | kover = "0.9.4"
11 | qodana = "2025.1.1"
12 |
13 | [libraries]
14 | junit = { group = "junit", name = "junit", version.ref = "junit" }
15 | opentest4j = { group = "org.opentest4j", name = "opentest4j", version.ref = "opentest4j" }
16 |
17 | [plugins]
18 | changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
19 | intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }
20 | kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
21 | kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
22 | qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }
23 |
--------------------------------------------------------------------------------
/.run/Run Tests.run.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
17 |
18 |
19 | true
20 | true
21 | false
22 | true
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/.run/Run Plugin.run.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | true
20 | true
21 | false
22 | false
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/.run/Run Verifications.run.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | true
20 | true
21 | false
22 | false
23 |
24 |
25 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.yml:
--------------------------------------------------------------------------------
1 | name: Feature request
2 | description: Suggest an idea for this project
3 |
4 | labels:
5 | - enhancement
6 | assignees:
7 | - nekofar
8 |
9 | body:
10 | - type: textarea
11 | attributes:
12 | label: Is your feature request related to a problem? Please describe.
13 | description: A clear and concise description of what the problem is. Ex. I'm always frustrated when ...
14 | placeholder: Describe the problem here.
15 |
16 | - type: textarea
17 | attributes:
18 | label: Describe the solution you'd like
19 | description: A clear and concise description of what you want to happen.
20 | placeholder: Describe the solution you'd like here.
21 |
22 | - type: textarea
23 | attributes:
24 | label: Describe alternatives you've considered
25 | description: A clear and concise description of any alternative solutions or features you've considered.
26 | placeholder: Describe alternatives here.
27 |
28 | - type: textarea
29 | attributes:
30 | label: Additional context
31 | description: Add any other context or screenshots about the feature request here.
32 | placeholder: Add any additional context or screenshots here.
33 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.yml:
--------------------------------------------------------------------------------
1 | name: Bug report
2 | description: Create a report to help us improve
3 |
4 | labels:
5 | - bug
6 | assignees:
7 | - nekofar
8 |
9 | body:
10 | - type: textarea
11 | attributes:
12 | label: Describe the bug
13 | description: A clear and concise description of what the bug is.
14 | placeholder: Describe the bug here.
15 |
16 | - type: textarea
17 | attributes:
18 | label: Steps to reproduce the behavior
19 | description: List the steps to reproduce the behavior, including any necessary environment details.
20 | placeholder: List the steps to reproduce here.
21 |
22 | - type: textarea
23 | attributes:
24 | label: Expected behavior
25 | description: A clear and concise description of what you expected to happen.
26 | placeholder: Describe the expected behavior here.
27 |
28 | - type: textarea
29 | attributes:
30 | label: Screenshots
31 | description: If applicable, add screenshots to help explain the problem.
32 | placeholder: Add any relevant screenshots here.
33 |
34 | - type: textarea
35 | attributes:
36 | label: Additional context
37 | description: Add any other context about the problem here.
38 | placeholder: Add any additional context here.
39 |
--------------------------------------------------------------------------------
/.run/Run Plugin Verification.run.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | true
20 | true
21 | false
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/main/resources/icons/type.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
2 |
3 | pluginGroup = com.nekofar.milad
4 | pluginName = Nuxt.js
5 | pluginRepositoryUrl = https://github.com/KartanHQ/intellij-nuxtjs
6 |
7 | # SemVer format -> https://semver.org
8 | pluginVersion = 2.1.14
9 |
10 | # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
11 | pluginSinceBuild = 243
12 |
13 | # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
14 | platformType = IU
15 | platformVersion = 2024.3.6
16 |
17 | # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
18 | # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
19 | platformPlugins = org.jetbrains.plugins.vue:231.8109.172
20 | # Example: platformBundledPlugins = com.intellij.java
21 | platformBundledPlugins = JavaScript
22 |
23 | # Gradle Releases -> https://github.com/gradle/gradle/releases
24 | gradleVersion = 9.0.0
25 |
26 | # Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
27 | kotlin.stdlib.default.dependency = false
28 |
29 | # Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
30 | org.gradle.configuration-cache = true
31 |
32 | # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
33 | org.gradle.caching = true
34 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # IntelliJ Nuxt Plugin
2 |
3 | [](https://plugins.jetbrains.com/plugin/18600-nuxt-js)
4 | [](https://plugins.jetbrains.com/plugin/18600-nuxt-js/versions)
5 | [](https://github.com/KartanHQ/intellij-nuxtjs/actions/workflows/build.yml)
6 | [](https://github.com/KartanHQ/intellij-nuxtjs/blob/master/LICENSE)
7 | [](https://x.com/nekofar)
8 | [](https://ud.me/nekofar.crypto)
9 |
10 |
11 |
12 | [Nuxt](https://nuxt.com) is a free and open-source web development framework. It offers an intuitive and extendable
13 | approach for creating type-safe, performant, and production-grade full-stack web applications and websites
14 | using `Vue.js`.
15 |
16 | This tool enables developers to initialize an app quickly and configure the project using the official scaffolding aid.
17 | It significantly accelerates the application development setup phase, catering to both novice and experienced
18 | developers.
19 |
20 |
21 | ## Installation
22 |
23 | For plugin installation, navigate to `Preferences`, then `Plugins`, and finally `Marketplace`. In the search bar, enter `Nuxt`.
24 |
25 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | # Maintain dependencies for GitHub Actions
4 | - package-ecosystem: "github-actions"
5 | # Files stored in repository root
6 | directory: "/"
7 | # Check for updates every weekday
8 | schedule:
9 | interval: "daily"
10 | time: "00:00"
11 | timezone: "UTC"
12 | # Add assignees
13 | assignees:
14 | - "nekofar"
15 | # Include a list of updated dependencies
16 | commit-message:
17 | prefix: "ci"
18 | include: "scope"
19 | # Specify labels for pull requests
20 | labels:
21 | - "dependencies"
22 | # Allow up to 10 open pull requests for dependencies
23 | open-pull-requests-limit: 20
24 | # Add reviewers
25 | reviewers:
26 | - "nekofar"
27 | # Raise pull requests against the `develop` branch
28 | target-branch: "develop"
29 |
30 | # Maintain dependencies for Gradle
31 | - package-ecosystem: "gradle"
32 | # Files stored in repository root
33 | directory: "/"
34 | # Check for updates every weekday
35 | schedule:
36 | interval: "daily"
37 | time: "00:00"
38 | timezone: "UTC"
39 | # Add assignees
40 | assignees:
41 | - "nekofar"
42 | # Include a list of updated dependencies
43 | commit-message:
44 | prefix: "build"
45 | include: "scope"
46 | # Specify labels for pull requests
47 | labels:
48 | - "dependencies"
49 | # Allow up to 10 open pull requests for dependencies
50 | open-pull-requests-limit: 20
51 | # Add reviewers
52 | reviewers:
53 | - "nekofar"
54 | # Raise pull requests against the `develop` branch
55 | target-branch: "develop"
56 |
57 |
--------------------------------------------------------------------------------
/.github/workflows/git-flow.yml:
--------------------------------------------------------------------------------
1 | # Name of the workflow
2 | name: Git Flow
3 |
4 | # Defines the event that triggers the workflow
5 | on:
6 | push:
7 | branches:
8 | - 'feature/*' # Trigger for pushes to feature branches
9 | - 'bugfix/*' # Trigger for pushes to bugfix branches
10 | - 'release/*' # Trigger for pushes to release branches
11 | - 'hotfix/*' # Trigger for pushes to hotfix branches
12 |
13 | # Jobs are a set of steps that execute on the same runner
14 | jobs:
15 | create-pull-request:
16 | # Specifies the runner environment, using the latest Ubuntu
17 | runs-on: ubuntu-latest
18 | name: Create Pull Request
19 | permissions: write-all
20 |
21 | # Steps are individual tasks that run commands in a job
22 | steps:
23 | # Checks out the repository code under $GITHUB_WORKSPACE, so the job can access it
24 | - name: Checkout Repository Code
25 | uses: actions/checkout@v6
26 |
27 | # This step uses the Git Flow Action to create PRs based on branch types
28 | - name: Execute Git Flow Action
29 | uses: nekofar/git-flow-action@develop # Specifies the Git Flow Action to use and the branch
30 | with:
31 | # The GitHub Token for authentication with GitHub API
32 | github-token: ${{ secrets.GITHUB_TOKEN }}
33 | # The branch to target for release and hotfix PRs
34 | master-branch: 'master'
35 | # The branch to target for feature and bugfix PRs
36 | develop-branch: 'develop'
37 | # Prefix for feature branches
38 | feature-prefix: 'feature/'
39 | # Prefix for bugfix branches
40 | bugfix-prefix: 'bugfix/'
41 | # Prefix for release branches
42 | release-prefix: 'release/'
43 | # Prefix for hotfix branches
44 | hotfix-prefix: 'hotfix/'
45 |
--------------------------------------------------------------------------------
/.github/workflows/run-ui-tests.yml:
--------------------------------------------------------------------------------
1 | # GitHub Actions Workflow for launching UI tests on Linux, Windows, and Mac in the following steps:
2 | # - Prepare and launch IDE with your plugin and robot-server plugin, which is needed to interact with the UI.
3 | # - Wait for IDE to start.
4 | # - Run UI tests with a separate Gradle task.
5 | #
6 | # Please check https://github.com/JetBrains/intellij-ui-test-robot for information about UI tests with IntelliJ Platform.
7 | #
8 | # Workflow is triggered manually.
9 |
10 | name: Run UI Tests
11 | on:
12 | workflow_dispatch
13 |
14 | jobs:
15 |
16 | testUI:
17 | runs-on: ${{ matrix.os }}
18 | strategy:
19 | fail-fast: false
20 | matrix:
21 | include:
22 | - os: ubuntu-latest
23 | runIde: |
24 | export DISPLAY=:99.0
25 | Xvfb -ac :99 -screen 0 1920x1080x16 &
26 | gradle runIdeForUiTests &
27 | - os: windows-latest
28 | runIde: start gradlew.bat runIdeForUiTests
29 | - os: macos-latest
30 | runIde: ./gradlew runIdeForUiTests &
31 |
32 | steps:
33 |
34 | # Check out the current repository
35 | - name: Fetch Sources
36 | uses: actions/checkout@v6
37 |
38 | # Set up the Java environment for the next steps
39 | - name: Setup Java
40 | uses: actions/setup-java@v5.1.0
41 | with:
42 | distribution: zulu
43 | java-version: 21
44 |
45 | # Setup Gradle
46 | - name: Setup Gradle
47 | uses: gradle/actions/setup-gradle@v4.4.4
48 | with:
49 | cache-read-only: true
50 |
51 | # Run IDEA prepared for UI testing
52 | - name: Run IDE
53 | run: ${{ matrix.runIde }}
54 |
55 | # Wait for IDEA to be started
56 | - name: Health Check
57 | uses: jtalk/url-health-check-action@v4
58 | with:
59 | url: http://127.0.0.1:8082
60 | max-attempts: 15
61 | retry-delay: 30s
62 |
63 | # Run tests
64 | - name: Tests
65 | run: ./gradlew test
66 |
--------------------------------------------------------------------------------
/src/main/resources/META-INF/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | com.nekofar.milad.intellij.nuxtjs
5 |
6 |
8 | Nuxt.js
9 |
10 |
11 | Kartan
12 |
13 |
15 | com.intellij.modules.platform
16 | JavaScript
17 | org.jetbrains.plugins.vue
18 |
19 |
20 | messages.NuxtBundle
21 |
22 |
24 |
25 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/cli/NuxtCliProjectGenerator.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs.cli
2 |
3 | import com.intellij.execution.filters.Filter
4 | import com.intellij.javascript.CreateRunConfigurationUtil
5 | import com.intellij.javascript.nodejs.packages.NodePackageUtil
6 | import com.intellij.lang.javascript.boilerplate.NpmPackageProjectGenerator
7 | import com.intellij.lang.javascript.boilerplate.NpxPackageDescriptor
8 | import com.intellij.openapi.project.Project
9 | import com.intellij.openapi.roots.ContentEntry
10 | import com.intellij.openapi.vfs.VirtualFile
11 | import com.intellij.util.PathUtil
12 | import com.nekofar.milad.intellij.nuxtjs.NuxtBundle
13 | import com.nekofar.milad.intellij.nuxtjs.NuxtIcons
14 |
15 | class NuxtCliProjectGenerator : NpmPackageProjectGenerator() {
16 | private val packageName = "nuxi"
17 | private val npxCommand = "nuxi"
18 |
19 | override fun getName() = NuxtBundle.message("nuxt.project.generator.name")
20 |
21 | override fun getDescription() = NuxtBundle.message("nuxt.project.generator.description")
22 |
23 | override fun getIcon() = NuxtIcons.ProjectGenerator
24 |
25 | override fun filters(project: Project, baseDir: VirtualFile) = emptyArray()
26 |
27 | override fun generatorArgs(project: Project, baseDir: VirtualFile) = arrayOf("init", project.name)
28 |
29 | override fun customizeModule(baseDir: VirtualFile, entry: ContentEntry?) { /* Do nothing */ }
30 |
31 | override fun packageName() = packageName
32 |
33 | override fun presentablePackageName() = NuxtBundle.message("nuxt.project.generator.presentable.package.name")
34 |
35 | override fun getNpxCommands() = listOf(NpxPackageDescriptor.NpxCommand(packageName, npxCommand))
36 |
37 | override fun onGettingSmartAfterProjectGeneration(project: Project, baseDir: VirtualFile) {
38 | super.onGettingSmartAfterProjectGeneration(project, baseDir)
39 | CreateRunConfigurationUtil.npmConfiguration(project, "build")
40 | CreateRunConfigurationUtil.npmConfiguration(project, "dev")
41 | CreateRunConfigurationUtil.npmConfiguration(project, "generate")
42 | CreateRunConfigurationUtil.npmConfiguration(project, "preview")
43 | }
44 |
45 | override fun generateInTemp() = true
46 | }
47 |
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | # GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow.
2 | # Running the publishPlugin task requires all the following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN.
3 | # See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information.
4 |
5 | name: Release & Publish
6 | on:
7 | release:
8 | types: [prereleased, released]
9 |
10 | jobs:
11 |
12 | # Prepare and publish the plugin to JetBrains Marketplace repository
13 | release:
14 | name: Publish Plugin
15 | runs-on: ubuntu-latest
16 | permissions:
17 | contents: write
18 | pull-requests: write
19 | steps:
20 |
21 | # Free GitHub Actions Environment Disk Space
22 | - name: Maximize Build Space
23 | uses: jlumbroso/free-disk-space@v1.3.1
24 | with:
25 | tool-cache: false
26 | large-packages: false
27 |
28 | # Check out the current repository
29 | - name: Fetch Sources
30 | uses: actions/checkout@v6
31 | with:
32 | ref: ${{ github.event.release.tag_name }}
33 |
34 | # Set up the Java environment for the next steps
35 | - name: Setup Java
36 | uses: actions/setup-java@v5.1.0
37 | with:
38 | distribution: zulu
39 | java-version: 21
40 |
41 | # Setup Gradle
42 | - name: Setup Gradle
43 | uses: gradle/actions/setup-gradle@v4.4.4
44 |
45 | # Publish the plugin to JetBrains Marketplace
46 | - name: Publish Plugin
47 | env:
48 | PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
49 | CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
50 | PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
51 | PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
52 | run: ./gradlew publishPlugin
53 |
54 | # Upload an artifact as a release asset
55 | - name: Upload Release Asset
56 | env:
57 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58 | run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
59 |
60 | concurrency:
61 | group: ${{ github.workflow }}-${{ github.ref }}
62 | cancel-in-progress: true
63 |
--------------------------------------------------------------------------------
/.github/workflows/changelog.yml:
--------------------------------------------------------------------------------
1 | name: Changelog
2 | on:
3 | # Trigger the workflow on pushes to only the 'hotfix' and 'release' branches
4 | push:
5 | branches:
6 | - hotfix/*
7 | - release/*
8 | # Trigger the workflow on manual dispatch
9 | workflow_dispatch:
10 |
11 | jobs:
12 | changelog:
13 | name: Update Changelog
14 | runs-on: ubuntu-latest
15 | steps:
16 |
17 | # Check out current repository
18 | - name: Fetch Sources
19 | uses: actions/checkout@v6
20 | with:
21 | fetch-depth: 0
22 |
23 | # Set up Java environment for the next steps
24 | - name: Setup Java
25 | uses: actions/setup-java@v5.1.0
26 | with:
27 | distribution: zulu
28 | java-version: 17
29 |
30 | # Setup Gradle
31 | - name: Setup Gradle
32 | uses: gradle/actions/setup-gradle@v4.4.4
33 |
34 | # Set environment variables
35 | - name: Export Properties
36 | id: properties
37 | shell: bash
38 | run: |
39 | PROPERTIES="$(./gradlew properties --console=plain -q)"
40 | VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
41 |
42 | echo "version=$VERSION" >> $GITHUB_OUTPUT
43 |
44 | # Generate a changelog
45 | - name: Generate a changelog
46 | uses: orhun/git-cliff-action@v4.6.0
47 | id: git-cliff
48 | with:
49 | config: cliff.toml
50 | args: --verbose
51 | env:
52 | OUTPUT: CHANGELOG.md
53 | GIT_CLIFF_TAG: "${{ steps.properties.outputs.version }}"
54 |
55 | # Print the changelog
56 | - name: Print the changelog
57 | run: cat "${{ steps.git-cliff.outputs.changelog }}"
58 |
59 | # Create pull request
60 | - name: Create Pull Request
61 | uses: peter-evans/create-pull-request@v7.0.11
62 | with:
63 | delete-branch: true
64 | branch-suffix: short-commit-hash
65 | commit-message: |
66 | docs(changelog): update the changelog file
67 |
68 | [skip ci]
69 | title: "docs(changelog): update the changelog file"
70 | body: "Current pull request contains patched `CHANGELOG.md` file."
71 | labels: documentation
72 |
73 | concurrency:
74 | group: ${{ github.workflow }}-${{ github.ref }}
75 | cancel-in-progress: true
76 |
--------------------------------------------------------------------------------
/cliff.toml:
--------------------------------------------------------------------------------
1 | # configuration file for git-cliff (0.1.0)
2 |
3 | [changelog]
4 | # changelog header
5 | header = """
6 | # Changelog\n
7 | All notable changes to this project will be documented in this file.\n
8 | ## [Unreleased]
9 | """
10 | # template for the changelog body
11 | # https://tera.netlify.app/docs/#introduction
12 | body = """
13 | {% if version %}\
14 | ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
15 | {% endif %}\
16 | {% for group, commits in commits | group_by(attribute="group") %}
17 | ### {{ group | upper_first }}
18 | {% for commit in commits %}
19 | - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
20 | {% endfor %}
21 | {% endfor %}\n
22 | """
23 | # remove the leading and trailing whitespace from the template
24 | trim = true
25 | # changelog footer
26 | footer = """
27 |
28 | """
29 |
30 | [git]
31 | # parse the commits based on https://www.conventionalcommits.org
32 | conventional_commits = true
33 | # filter out the commits that are not conventional
34 | filter_unconventional = true
35 | # regex for preprocessing the commit messages
36 | commit_preprocessors = [
37 | { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"},
38 | ]
39 | # regex for parsing and grouping commits
40 | commit_parsers = [
41 | { message = "^feat", group = "Features"},
42 | { message = "^fix", group = "Bug Fixes"},
43 | { message = "^docs\\(changelog\\): ", skip = true},
44 | { message = "^doc", group = "Documentation", skip = true},
45 | { message = "^perf", group = "Performance", skip = true},
46 | { message = "^refactor", group = "Refactor", skip = true},
47 | { message = "^style", group = "Styling", skip = true},
48 | { message = "^test", group = "Testing", skip = true},
49 | { message = "^chore\\(release\\): ", skip = true},
50 | { message = "^chore", group = "Miscellaneous Tasks", skip = true},
51 | { body = ".*security", group = "Security"},
52 | ]
53 | # filter out the commits that are not matched by commit parsers
54 | filter_commits = true
55 | # glob pattern for matching git tags
56 | tag_pattern = "v[0-9]*"
57 | # regex for skipping tags
58 | skip_tags = "v0.1.0-beta.1"
59 | # regex for ignoring tags
60 | ignore_tags = "(1.1.0$|-(alpha|beta|erp))"
61 | # sort the tags chronologically
62 | date_order = false
63 | # sort the commits inside sections by oldest/newest order
64 | sort_commits = "oldest"
65 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 | @rem SPDX-License-Identifier: Apache-2.0
17 | @rem
18 |
19 | @if "%DEBUG%"=="" @echo off
20 | @rem ##########################################################################
21 | @rem
22 | @rem Gradle startup script for Windows
23 | @rem
24 | @rem ##########################################################################
25 |
26 | @rem Set local scope for the variables with windows NT shell
27 | if "%OS%"=="Windows_NT" setlocal
28 |
29 | set DIRNAME=%~dp0
30 | if "%DIRNAME%"=="" set DIRNAME=.
31 | @rem This is normally unused
32 | set APP_BASE_NAME=%~n0
33 | set APP_HOME=%DIRNAME%
34 |
35 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
36 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
37 |
38 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
39 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
40 |
41 | @rem Find java.exe
42 | if defined JAVA_HOME goto findJavaFromJavaHome
43 |
44 | set JAVA_EXE=java.exe
45 | %JAVA_EXE% -version >NUL 2>&1
46 | if %ERRORLEVEL% equ 0 goto execute
47 |
48 | echo. 1>&2
49 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50 | echo. 1>&2
51 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52 | echo location of your Java installation. 1>&2
53 |
54 | goto fail
55 |
56 | :findJavaFromJavaHome
57 | set JAVA_HOME=%JAVA_HOME:"=%
58 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
59 |
60 | if exist "%JAVA_EXE%" goto execute
61 |
62 | echo. 1>&2
63 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64 | echo. 1>&2
65 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66 | echo location of your Java installation. 1>&2
67 |
68 | goto fail
69 |
70 | :execute
71 | @rem Setup the command line
72 |
73 | set CLASSPATH=
74 |
75 |
76 | @rem Execute Gradle
77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
78 |
79 | :end
80 | @rem End local scope for the variables with windows NT shell
81 | if %ERRORLEVEL% equ 0 goto mainEnd
82 |
83 | :fail
84 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
85 | rem the _cmd.exe /c_ return code!
86 | set EXIT_CODE=%ERRORLEVEL%
87 | if %EXIT_CODE% equ 0 set EXIT_CODE=1
88 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
89 | exit /b %EXIT_CODE%
90 |
91 | :mainEnd
92 | if "%OS%"=="Windows_NT" endlocal
93 |
94 | :omega
95 |
--------------------------------------------------------------------------------
/src/main/kotlin/com/nekofar/milad/intellij/nuxtjs/diagnostic/NuxtErrorReportSubmitter.kt:
--------------------------------------------------------------------------------
1 | package com.nekofar.milad.intellij.nuxtjs.diagnostic
2 |
3 | import com.intellij.ide.BrowserUtil
4 | import com.intellij.ide.plugins.PluginManagerCore
5 | import com.intellij.openapi.application.ApplicationInfo
6 | import com.intellij.openapi.diagnostic.ErrorReportSubmitter
7 | import com.intellij.openapi.diagnostic.IdeaLoggingEvent
8 | import com.intellij.openapi.diagnostic.SubmittedReportInfo
9 | import com.intellij.openapi.extensions.PluginId
10 | import com.intellij.util.Consumer
11 | import org.apache.commons.lang.StringUtils
12 | import org.apache.http.client.utils.URIBuilder
13 | import java.awt.Component
14 | import java.io.BufferedReader
15 | import java.io.StringReader
16 | import java.net.URI
17 | import java.util.stream.Collectors
18 |
19 |
20 | class NuxtErrorReportSubmitter : ErrorReportSubmitter() {
21 |
22 | private val packageAbbreviation: Map? = null
23 |
24 | override fun getReportActionText(): String {
25 | return "Report to Kartan"
26 | }
27 |
28 | override fun submit(
29 | events: Array,
30 | additionalInfo: String?,
31 | parentComponent: Component,
32 | consumer: Consumer
33 | ): Boolean {
34 | getReportIssueUrl(
35 | getReportTitle(events),
36 | getReportBody(events, additionalInfo)
37 | )?.let {
38 | BrowserUtil.browse(it)
39 | }
40 | return true
41 | }
42 |
43 | private fun getReportTitle(events: Array): String {
44 | val event = events.firstOrNull()
45 | return event?.throwableText?.lineSequence()?.first()
46 | ?: event?.message
47 | ?: "Report bug"
48 | }
49 |
50 | private fun getReportBody(events: Array, additionalInfo: String?): String {
51 | val javaVendor = System.getProperty("java.vendor")
52 | val javaVersion = System.getProperty("java.version")
53 |
54 | val osName = System.getProperty("os.name")
55 | val osArch = System.getProperty("os.arch")
56 |
57 | val appName = ApplicationInfo.getInstance().fullApplicationName
58 |
59 | val plugin = PluginManagerCore.getPlugin(PluginId.getId("com.nekofar.milad.intellij.nuxtjs"))
60 | val pluginVersion = plugin?.version
61 |
62 | val stackTrace = null
63 | for (event in events) {
64 | val message = event.message
65 | if (message?.isNotEmpty() == true) {
66 | stackTrace.plus(message).plus("\n")
67 | }
68 | val throwableText = event.throwableText
69 | if (!throwableText.isNullOrBlank()) {
70 | stackTrace.plus("\n```\n")
71 | stackTrace.plus(
72 | BufferedReader(StringReader(throwableText)).lines()
73 | .map { line ->
74 | var abbreviated = line
75 | packageAbbreviation?.entries?.forEach { entry ->
76 | abbreviated = StringUtils.replace(abbreviated, entry.key, entry.value)
77 | }
78 | abbreviated
79 | }.collect(Collectors.joining("\n"))
80 | )
81 | stackTrace.plus("\n```\n\n")
82 | }
83 | }
84 |
85 | return """
86 | |**Describe the bug**
87 | |A clear and concise description of what the bug is.
88 | |
89 | |**To Reproduce**
90 | |Steps to reproduce the behavior:
91 | |1. Go to '...'
92 | |2. Click on '....'
93 | |3. Scroll down to '....'
94 | |4. See error
95 | |
96 | |**Expected behavior**
97 | |A clear and concise description of what you expected to happen.
98 | |
99 | |**Screenshots**
100 | |If applicable, add screenshots to help explain your problem.
101 | |
102 | |**Environment**
103 | |* Java: $javaVendor $javaVersion
104 | |* OS: $osName $osArch
105 | |* IDE: $appName
106 | |* Version: $pluginVersion
107 | |
108 | |**Additional context**
109 | |${additionalInfo ?: "Add any other context about the problem here."}
110 | |
111 | |**Stacktrace**
112 | |$stackTrace
113 | """.trimMargin()
114 | }
115 |
116 | private fun getReportIssueUrl(title: String, body: String): URI? {
117 | val uriBuilder = URIBuilder("https://github.com/KartanHQ/intellij-nuxtjs/issues/new")
118 | uriBuilder.addParameter("title", title)
119 | uriBuilder.addParameter("labels", "bug")
120 | if (body.isNotBlank()) {
121 | uriBuilder.addParameter("body", body)
122 | } else {
123 | uriBuilder.addParameter("template", "bug_report.md")
124 | }
125 | return uriBuilder.build()
126 | }
127 |
128 | }
129 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file.
4 |
5 | ## [Unreleased]
6 | ## [2.1.14] - 2025-12-13
7 |
8 | ### Bug Fixes
9 |
10 | - Solve some minor issues and update dependencies
11 |
12 | ## [2.1.13] - 2025-11-29
13 |
14 | ### Bug Fixes
15 |
16 | - Solve some minor issues and update dependencies
17 |
18 | ## [2.1.12] - 2025-10-27
19 |
20 | ### Bug Fixes
21 |
22 | - Solve some minor issues and update dependencies
23 |
24 | ## [2.1.11] - 2025-09-17
25 |
26 | ### Bug Fixes
27 |
28 | - Solve some minor issues and update dependencies
29 |
30 | ## [2.1.10] - 2025-08-06
31 |
32 | ### Bug Fixes
33 |
34 | - Solve some minor issues and update dependencies
35 |
36 | ## [2.1.9] - 2025-06-09
37 |
38 | ### Bug Fixes
39 |
40 | - Solve some minor issues and update dependencies
41 |
42 | ## [2.1.8] - 2025-04-23
43 |
44 | ### Bug Fixes
45 |
46 | - Solve some minor issues and update dependencies
47 |
48 | ## [2.1.7] - 2025-03-31
49 |
50 | ### Bug Fixes
51 |
52 | - Solve some minor issues and update dependencies
53 |
54 | ## [2.1.6] - 2025-03-31
55 |
56 | ### Bug Fixes
57 |
58 | - Solve some minor issues and update dependencies
59 |
60 | ## [2.1.5] - 2025-03-04
61 |
62 | ### Bug Fixes
63 |
64 | - Solve some minor issues and update dependencies
65 |
66 | ## [2.1.4] - 2025-01-15
67 |
68 | ### Bug Fixes
69 |
70 | - Solve some minor issues and update dependencies
71 |
72 | ## [2.1.3] - 2024-12-12
73 |
74 | ### Bug Fixes
75 |
76 | - Solve some minor issues and update dependencies
77 |
78 | ## [2.1.2] - 2024-12-10
79 |
80 | ### Bug Fixes
81 |
82 | - Solve some minor issues and update dependencies
83 |
84 | ## [2.1.1] - 2024-10-07
85 |
86 | ### Bug Fixes
87 |
88 | - Solve some minor issues and update dependencies
89 |
90 | ## [2.1.0] - 2024-10-07
91 |
92 | ### Features
93 |
94 | - Add `messagePointer` method to `NuxtBundle`
95 |
96 | ## [2.0.14] - 2024-10-05
97 |
98 | ### Bug Fixes
99 |
100 | - Solve some minor issues and update dependencies
101 |
102 | ## [2.0.13] - 2024-07-07
103 |
104 | ### Bug Fixes
105 |
106 | - Solve some minor issues and update dependencies
107 |
108 | ## [2.0.12] - 2024-05-30
109 |
110 | ### Bug Fixes
111 |
112 | - Solve some minor issues and update dependencies
113 |
114 | ## [2.0.11] - 2024-02-29
115 |
116 | ### Bug Fixes
117 |
118 | - Solve some minor issues and update dependencies
119 |
120 | ## [2.0.10] - 2024-01-28
121 |
122 | ### Bug Fixes
123 |
124 | - Solve some minor issues and update dependencies
125 |
126 | ## [2.0.9] - 2023-12-12
127 |
128 | ### Bug Fixes
129 |
130 | - Solve some minor issues and update dependencies
131 |
132 | ## [2.0.8] - 2023-10-29
133 |
134 | ### Bug Fixes
135 |
136 | - Solve some minor issues and update dependencies
137 |
138 | ## [2.0.7] - 2023-10-15
139 |
140 | ### Bug Fixes
141 |
142 | - Solve some minor issues and update dependencies
143 |
144 | ## [2.0.6] - 2023-08-14
145 |
146 | ### Bug Fixes
147 |
148 | - Solve some minor issues and update dependencies
149 |
150 | ## [2.0.5] - 2023-08-14
151 |
152 | ### Bug Fixes
153 |
154 | - Solve some minor issues and update dependencies
155 |
156 | ## [2.0.4] - 2023-08-14
157 |
158 | ### Bug Fixes
159 |
160 | - Solve some minor issues and update dependencies
161 |
162 | ## [2.0.3] - 2023-08-13
163 |
164 | ### Bug Fixes
165 |
166 | - Solve some minor issues and update dependencies
167 |
168 | ## [2.0.2] - 2023-07-22
169 |
170 | ### Bug Fixes
171 |
172 | - Solve some minor issues and update dependencies
173 |
174 | ## [2.0.1] - 2023-07-09
175 |
176 | ### Bug Fixes
177 |
178 | - Solve some minor issues and update dependencies
179 |
180 | ## [2.0.0] - 2023-07-06
181 |
182 | ### Features
183 |
184 | - [**breaking**] Migrate from Nuxt v2 to v3 generator
185 |
186 | ## [1.2.19] - 2023-06-24
187 |
188 | ### Bug Fixes
189 |
190 | - Solve some minor issues and update dependencies
191 |
192 | ## [1.2.18] - 2023-06-17
193 |
194 | ### Bug Fixes
195 |
196 | - Solve some minor issues and update dependencies
197 |
198 | ## [1.2.17] - 2023-06-03
199 |
200 | ### Bug Fixes
201 |
202 | - Solve some minor issues and update dependencies
203 |
204 | ## [1.2.16] - 2023-05-19
205 |
206 | ### Bug Fixes
207 |
208 | - Solve some minor issues and update dependencies
209 |
210 | ## [1.2.15] - 2023-05-18
211 |
212 | ### Bug Fixes
213 |
214 | - Solve some minor issues and update dependencies
215 |
216 | ## [1.2.14] - 2023-05-04
217 |
218 | ### Bug Fixes
219 |
220 | - Solve some minor issues and update dependencies
221 |
222 | ## [1.2.13] - 2023-04-25
223 |
224 | ### Bug Fixes
225 |
226 | - Solve some minor issues and update dependencies
227 |
228 | ## [1.2.12] - 2023-04-01
229 |
230 | ### Bug Fixes
231 |
232 | - Solve some minor issues and update dependencies
233 |
234 | ## [1.2.11] - 2023-03-28
235 |
236 | ### Bug Fixes
237 |
238 | - Solve some minor issues and update dependencies
239 |
240 | ## [1.2.10] - 2023-03-03
241 |
242 | ### Bug Fixes
243 |
244 | - Solve some minor issues and update dependencies
245 |
246 | ## [1.2.9] - 2023-02-14
247 |
248 | ### Bug Fixes
249 |
250 | - Solve some minor issues and update dependencies
251 |
252 | ## [1.2.8] - 2023-02-09
253 |
254 | ### Bug Fixes
255 |
256 | - Solve some minor issues and update dependencies
257 |
258 | ## [1.2.7] - 2023-02-02
259 |
260 | ### Bug Fixes
261 |
262 | - Solve some minor issues and update dependencies
263 |
264 | ## [1.2.6] - 2023-02-01
265 |
266 | ### Bug Fixes
267 |
268 | - Solve some minor issues and update dependencies
269 |
270 | ## [1.2.5] - 2023-01-28
271 |
272 | ### Bug Fixes
273 |
274 | - Solve some minor issues and update dependencies
275 |
276 | ## [1.2.4] - 2023-01-22
277 |
278 | ### Bug Fixes
279 |
280 | - Solve some minor issues and update dependencies
281 |
282 | ## [1.2.3] - 2023-01-02
283 |
284 | ### Bug Fixes
285 |
286 | - Solve some minor issues and update dependencies
287 |
288 | ## [1.2.2] - 2022-12-09
289 |
290 | ### Bug Fixes
291 |
292 | - Solve some minor issues and dependency update
293 |
294 | ## [1.2.1] - 2022-10-26
295 |
296 | ### Bug Fixes
297 |
298 | - Solve some minor issues and dependency update
299 |
300 | ## [1.2.0] - 2022-07-27
301 |
302 | ### Bug Fixes
303 |
304 | - Solve a compatibility issue and update dpendencies
305 |
306 | ## [1.1.1] - 2022-06-23
307 |
308 | ### Features
309 |
310 | - Implement error handle and report through github issues
311 |
312 | ## [1.0.4] - 2022-02-21
313 |
314 | ### Bug Fixes
315 |
316 | - Solve an issue related to generate change notes
317 |
318 | ## [1.0.3] - 2022-02-21
319 |
320 | ### Bug Fixes
321 |
322 | - Update changelog section on plugin description
323 |
324 | ## [1.0.2] - 2022-02-21
325 |
326 | ### Bug Fixes
327 |
328 | - Update changelog section on plugin description
329 |
330 | ## [1.0.0] - 2022-02-19
331 |
332 | ### Features
333 |
334 | - Implement project generation trough `create-nuxt-app`
335 | - Add custom file type and unique icon for `nuxt.config.js`
336 | - Add run configurations after project generation
337 |
338 |
339 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015 the original authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 | # SPDX-License-Identifier: Apache-2.0
19 | #
20 |
21 | ##############################################################################
22 | #
23 | # Gradle start up script for POSIX generated by Gradle.
24 | #
25 | # Important for running:
26 | #
27 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
28 | # noncompliant, but you have some other compliant shell such as ksh or
29 | # bash, then to run this script, type that shell name before the whole
30 | # command line, like:
31 | #
32 | # ksh Gradle
33 | #
34 | # Busybox and similar reduced shells will NOT work, because this script
35 | # requires all of these POSIX shell features:
36 | # * functions;
37 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
38 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
39 | # * compound commands having a testable exit status, especially «case»;
40 | # * various built-in commands including «command», «set», and «ulimit».
41 | #
42 | # Important for patching:
43 | #
44 | # (2) This script targets any POSIX shell, so it avoids extensions provided
45 | # by Bash, Ksh, etc; in particular arrays are avoided.
46 | #
47 | # The "traditional" practice of packing multiple parameters into a
48 | # space-separated string is a well documented source of bugs and security
49 | # problems, so this is (mostly) avoided, by progressively accumulating
50 | # options in "$@", and eventually passing that to Java.
51 | #
52 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
53 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
54 | # see the in-line comments for details.
55 | #
56 | # There are tweaks for specific operating systems such as AIX, CygWin,
57 | # Darwin, MinGW, and NonStop.
58 | #
59 | # (3) This script is generated from the Groovy template
60 | # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
61 | # within the Gradle project.
62 | #
63 | # You can find Gradle at https://github.com/gradle/gradle/.
64 | #
65 | ##############################################################################
66 |
67 | # Attempt to set APP_HOME
68 |
69 | # Resolve links: $0 may be a link
70 | app_path=$0
71 |
72 | # Need this for daisy-chained symlinks.
73 | while
74 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
75 | [ -h "$app_path" ]
76 | do
77 | ls=$( ls -ld "$app_path" )
78 | link=${ls#*' -> '}
79 | case $link in #(
80 | /*) app_path=$link ;; #(
81 | *) app_path=$APP_HOME$link ;;
82 | esac
83 | done
84 |
85 | # This is normally unused
86 | # shellcheck disable=SC2034
87 | APP_BASE_NAME=${0##*/}
88 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89 | APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH="\\\"\\\""
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | if ! command -v java >/dev/null 2>&1
137 | then
138 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
139 |
140 | Please set the JAVA_HOME variable in your environment to match the
141 | location of your Java installation."
142 | fi
143 | fi
144 |
145 | # Increase the maximum file descriptors if we can.
146 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
147 | case $MAX_FD in #(
148 | max*)
149 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
150 | # shellcheck disable=SC2039,SC3045
151 | MAX_FD=$( ulimit -H -n ) ||
152 | warn "Could not query maximum file descriptor limit"
153 | esac
154 | case $MAX_FD in #(
155 | '' | soft) :;; #(
156 | *)
157 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
158 | # shellcheck disable=SC2039,SC3045
159 | ulimit -n "$MAX_FD" ||
160 | warn "Could not set maximum file descriptor limit to $MAX_FD"
161 | esac
162 | fi
163 |
164 | # Collect all arguments for the java command, stacking in reverse order:
165 | # * args from the command line
166 | # * the main class name
167 | # * -classpath
168 | # * -D...appname settings
169 | # * --module-path (only if needed)
170 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
171 |
172 | # For Cygwin or MSYS, switch paths to Windows format before running java
173 | if "$cygwin" || "$msys" ; then
174 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
175 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
176 |
177 | JAVACMD=$( cygpath --unix "$JAVACMD" )
178 |
179 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
180 | for arg do
181 | if
182 | case $arg in #(
183 | -*) false ;; # don't mess with options #(
184 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
185 | [ -e "$t" ] ;; #(
186 | *) false ;;
187 | esac
188 | then
189 | arg=$( cygpath --path --ignore --mixed "$arg" )
190 | fi
191 | # Roll the args list around exactly as many times as the number of
192 | # args, so each arg winds up back in the position where it started, but
193 | # possibly modified.
194 | #
195 | # NB: a `for` loop captures its iteration list before it begins, so
196 | # changing the positional parameters here affects neither the number of
197 | # iterations, nor the values presented in `arg`.
198 | shift # remove old arg
199 | set -- "$@" "$arg" # push replacement arg
200 | done
201 | fi
202 |
203 |
204 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
205 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206 |
207 | # Collect all arguments for the java command:
208 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209 | # and any embedded shellness will be escaped.
210 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211 | # treated as '${Hostname}' itself on the command line.
212 |
213 | set -- \
214 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
215 | -classpath "$CLASSPATH" \
216 | -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217 | "$@"
218 |
219 | # Stop when "xargs" is not available.
220 | if ! command -v xargs >/dev/null 2>&1
221 | then
222 | die "xargs is not available"
223 | fi
224 |
225 | # Use "xargs" to parse quoted args.
226 | #
227 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
228 | #
229 | # In Bash we could simply go:
230 | #
231 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
232 | # set -- "${ARGS[@]}" "$@"
233 | #
234 | # but POSIX shell has neither arrays nor command substitution, so instead we
235 | # post-process each arg (as a line of input to sed) to backslash-escape any
236 | # character that might be a shell metacharacter, then use eval to reverse
237 | # that process (while maintaining the separation between arguments), and wrap
238 | # the whole thing up as a single "set" statement.
239 | #
240 | # This will of course break if any of these variables contains a newline or
241 | # an unmatched quote.
242 | #
243 |
244 | eval "set -- $(
245 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
246 | xargs -n1 |
247 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
248 | tr '\n' ' '
249 | )" '"$@"'
250 |
251 | exec "$JAVACMD" "$@"
252 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | # GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps:
2 | # - Validate Gradle Wrapper.
3 | # - Run 'test' and 'verifyPlugin' tasks.
4 | # - Run Qodana inspections.
5 | # - Run the 'buildPlugin' task and prepare artifact for further tests.
6 | # - Run the 'runPluginVerifier' task.
7 | # - Create a draft release.
8 | #
9 | # The workflow is triggered on push and pull_request events.
10 | #
11 | # GitHub Actions reference: https://help.github.com/en/actions
12 | #
13 | ## JBIJPPTPL
14 |
15 | name: Build
16 | on:
17 | # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests)
18 | push:
19 | branches:
20 | - master
21 | - support/*
22 | - release/*
23 | # Trigger the workflow on any pull request
24 | pull_request:
25 | types: [ opened, reopened ]
26 | # Trigger the workflow on manual dispatch
27 | workflow_dispatch:
28 |
29 | concurrency:
30 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
31 | cancel-in-progress: true
32 |
33 | jobs:
34 | guard:
35 | name: Usage guard
36 | runs-on: ubuntu-latest
37 | steps:
38 | # Uses the action-usage-guard action
39 | - name: Run Action Usage Guard
40 | uses: nekofar/action-usage-guard@develop
41 | with:
42 | # GitHub access token for authentication.
43 | token: ${{ secrets.ACCESS_TOKEN }}
44 | # Defines the threshold for the usage guard.
45 | threshold: 70
46 |
47 | # Prepare the environment and build the plugin
48 | build:
49 | name: Build
50 | runs-on: ubuntu-latest
51 | needs: [ guard ]
52 | outputs:
53 | version: ${{ steps.properties.outputs.version }}
54 | changelog: ${{ steps.changelog.outputs.changelog }}
55 | pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
56 | steps:
57 |
58 | # Free GitHub Actions Environment Disk Space
59 | - name: Maximize Build Space
60 | uses: jlumbroso/free-disk-space@v1.3.1
61 | with:
62 | tool-cache: false
63 | large-packages: false
64 |
65 | # Check out the current repository
66 | - name: Fetch Sources
67 | uses: actions/checkout@v6
68 |
69 | # Set up the Java environment for the next steps
70 | - name: Setup Java
71 | uses: actions/setup-java@v5.1.0
72 | with:
73 | distribution: zulu
74 | java-version: 21
75 |
76 | # Setup Gradle
77 | - name: Setup Gradle
78 | uses: gradle/actions/setup-gradle@v4.4.4
79 |
80 | # Set environment variables
81 | - name: Export Properties
82 | id: properties
83 | shell: bash
84 | run: |
85 | PROPERTIES="$(./gradlew properties --console=plain -q)"
86 | VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
87 | NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')"
88 |
89 | echo "version=$VERSION" >> $GITHUB_OUTPUT
90 | echo "name=$NAME" >> $GITHUB_OUTPUT
91 | echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
92 |
93 | # Extract changelog information
94 | - name: Prepare Changelog
95 | id: changelog
96 | shell: bash
97 | run: |
98 | GRADLE_PARAMS=(--no-header --console=plain --quiet)
99 | if [[ $GITHUB_REF == refs/heads/release/* || $GITHUB_REF == refs/pull/* ]]; then
100 | GRADLE_PARAMS+=(--unreleased)
101 | fi
102 |
103 | CHANGELOG="$(./gradlew getChangelog ${GRADLE_PARAMS[@]})"
104 | echo "changelog<> $GITHUB_OUTPUT
105 | echo "$CHANGELOG" >> $GITHUB_OUTPUT
106 | echo "EOF" >> $GITHUB_OUTPUT
107 |
108 | # Build plugin
109 | - name: Build plugin
110 | run: ./gradlew buildPlugin
111 |
112 | # Prepare plugin archive content for creating artifact
113 | - name: Prepare Plugin Artifact
114 | id: artifact
115 | shell: bash
116 | run: |
117 | cd ${{ github.workspace }}/build/distributions
118 | FILENAME=`ls *.zip`
119 | unzip "$FILENAME" -d content
120 |
121 | echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
122 |
123 | # Store an already-built plugin as an artifact for downloading
124 | - name: Upload artifact
125 | uses: actions/upload-artifact@v4.6.2
126 | with:
127 | name: ${{ steps.artifact.outputs.filename }}
128 | path: ./build/distributions/content/*/*
129 |
130 | # Run tests and upload a code coverage report
131 | test:
132 | name: Test
133 | needs: [ build ]
134 | runs-on: ubuntu-latest
135 | steps:
136 |
137 | # Free GitHub Actions Environment Disk Space
138 | - name: Maximize Build Space
139 | uses: jlumbroso/free-disk-space@v1.3.1
140 | with:
141 | tool-cache: false
142 | large-packages: false
143 |
144 | # Check out the current repository
145 | - name: Fetch Sources
146 | uses: actions/checkout@v6
147 |
148 | # Set up the Java environment for the next steps
149 | - name: Setup Java
150 | uses: actions/setup-java@v5.1.0
151 | with:
152 | distribution: zulu
153 | java-version: 21
154 |
155 | # Setup Gradle
156 | - name: Setup Gradle
157 | uses: gradle/actions/setup-gradle@v4.4.4
158 |
159 | # Run tests
160 | - name: Run Tests
161 | run: ./gradlew check
162 |
163 | # Collect Tests Result of failed tests
164 | - name: Collect Tests Result
165 | if: ${{ failure() }}
166 | uses: actions/upload-artifact@v4.6.2
167 | with:
168 | name: tests-result
169 | path: ${{ github.workspace }}/build/reports/tests
170 |
171 | # Upload the Kover report to CodeCov
172 | - name: Upload Code Coverage Report
173 | uses: codecov/codecov-action@v5.5.1
174 | with:
175 | files: ${{ github.workspace }}/build/reports/kover/report.xml
176 | token: ${{ secrets.CODECOV_TOKEN }}
177 |
178 | # Run Qodana inspections and provide a report
179 | inspectCode:
180 | name: Inspect code
181 | needs: [ build ]
182 | runs-on: ubuntu-latest
183 | permissions:
184 | contents: write
185 | checks: write
186 | pull-requests: write
187 | steps:
188 |
189 | # Free GitHub Actions Environment Disk Space
190 | - name: Maximize Build Space
191 | uses: jlumbroso/free-disk-space@v1.3.1
192 | with:
193 | tool-cache: false
194 | large-packages: false
195 |
196 | # Check out the current repository
197 | - name: Fetch Sources
198 | uses: actions/checkout@v6
199 | with:
200 | ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
201 | fetch-depth: 0 # a full history is required for pull request analysis
202 |
203 | # Set up the Java environment for the next steps
204 | - name: Setup Java
205 | uses: actions/setup-java@v5.1.0
206 | with:
207 | distribution: zulu
208 | java-version: 21
209 |
210 | # Run Qodana inspections
211 | - name: Qodana - Code Inspection
212 | uses: JetBrains/qodana-action@v2025.2.4
213 | with:
214 | cache-default-branch-only: true
215 |
216 | # Run plugin structure verification along with IntelliJ Plugin Verifier
217 | verify:
218 | name: Verify plugin
219 | needs: [ build ]
220 | runs-on: ubuntu-latest
221 | steps:
222 |
223 | # Free GitHub Actions Environment Disk Space
224 | - name: Maximize Build Space
225 | uses: jlumbroso/free-disk-space@v1.3.1
226 | with:
227 | tool-cache: false
228 | large-packages: false
229 |
230 | # Check out the current repository
231 | - name: Fetch Sources
232 | uses: actions/checkout@v6
233 |
234 | # Set up the Java environment for the next steps
235 | - name: Setup Java
236 | uses: actions/setup-java@v5.1.0
237 | with:
238 | distribution: zulu
239 | java-version: 21
240 |
241 | # Setup Gradle
242 | - name: Setup Gradle
243 | uses: gradle/actions/setup-gradle@v4.4.4
244 | with:
245 | cache-read-only: true
246 |
247 | # Run Verify Plugin task and IntelliJ Plugin Verifier tool
248 | - name: Run Plugin Verification tasks
249 | run: ./gradlew verifyPlugin
250 |
251 | # Collect Plugin Verifier Result
252 | - name: Collect Plugin Verifier Result
253 | if: ${{ always() }}
254 | uses: actions/upload-artifact@v4.6.2
255 | with:
256 | name: pluginVerifier-result
257 | path: ${{ github.workspace }}/build/reports/pluginVerifier
258 |
259 | # Prepare a draft release for GitHub Releases page for the manual verification
260 | # If accepted and published, the release workflow would be triggered
261 | releaseDraft:
262 | name: Release draft
263 | if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/support/')
264 | needs: [ build, test, inspectCode, verify ]
265 | runs-on: ubuntu-latest
266 | permissions:
267 | contents: write
268 | steps:
269 |
270 | # Check out the current repository
271 | - name: Fetch Sources
272 | uses: actions/checkout@v6
273 |
274 | # Remove old release drafts by using the curl request for the available releases with a draft flag
275 | - name: Remove Old Release Drafts
276 | env:
277 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
278 | run: |
279 | gh api repos/{owner}/{repo}/releases \
280 | --jq '.[] | select(.draft == true) | .id' \
281 | | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
282 |
283 | # Create a new release draft which is not publicly visible and requires manual acceptance
284 | - name: Create Release Draft
285 | uses: nekofar/create-github-release@v1.0.14
286 | with:
287 | tag: v${{ needs.build.outputs.version }} # The name of the tag to be released
288 | title: v${{ needs.build.outputs.version }} # The title for the release
289 | notes: ${{ needs.build.outputs.changelog }} # The release notes generated in the previous step
290 | draft: true # The release will be created as a draft
291 | prerelease: ${{ contains(needs.build.outputs.version, '-rc') || contains(needs.build.outputs.version, '-beta') || contains(needs.build.outputs.version, '-alpha') }} # Conditions to mark the release as a pre-release
292 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | APPENDIX: How to apply the Apache License to your work.
180 |
181 | To apply the Apache License to your work, attach the following
182 | boilerplate notice, with the fields enclosed by brackets "[]"
183 | replaced with your own identifying information. (Don't include
184 | the brackets!) The text should be enclosed in the appropriate
185 | comment syntax for the file format. We also recommend that a
186 | file or class name and description of purpose be included on the
187 | same "printed page" as the copyright notice for easier
188 | identification within third-party archives.
189 |
190 | Copyright [yyyy] [name of copyright owner]
191 |
192 | Licensed under the Apache License, Version 2.0 (the "License");
193 | you may not use this file except in compliance with the License.
194 | You may obtain a copy of the License at
195 |
196 | http://www.apache.org/licenses/LICENSE-2.0
197 |
198 | Unless required by applicable law or agreed to in writing, software
199 | distributed under the License is distributed on an "AS IS" BASIS,
200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 | See the License for the specific language governing permissions and
202 | limitations under the License.
203 |
--------------------------------------------------------------------------------