├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.yml ├── dependabot.yml ├── stale.yml └── workflows │ ├── build.yml │ ├── changelog.yml │ ├── git-flow.yml │ ├── release.yml │ └── run-ui-tests.yml ├── .gitignore ├── .run ├── Run Plugin Verification.run.xml ├── Run Plugin.run.xml ├── Run Tests.run.xml └── Run Verifications.run.xml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── build.gradle.kts ├── cliff.toml ├── gradle.properties ├── gradle ├── libs.versions.toml └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── qodana.yml ├── settings.gradle.kts └── src └── main ├── kotlin └── com │ └── nekofar │ └── milad │ └── intellij │ └── nuxtjs │ ├── NuxtBundle.kt │ ├── NuxtFileType.kt │ ├── NuxtIcons.kt │ ├── cli │ ├── NuxtCliProjectGenerator.kt │ ├── NuxtCliProjectModuleBuilder.kt │ └── NuxtProjectTemplateFactory.kt │ └── diagnostic │ └── NuxtErrorReportSubmitter.kt └── resources ├── META-INF ├── plugin.xml └── pluginIcon.svg ├── icons ├── nuxt.svg └── type.svg └── messages └── NuxtBundle.properties /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: nekofar 4 | custom: https://ud.me/nekofar.crypto 5 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.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/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/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 | -------------------------------------------------------------------------------- /.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 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 | # Check out the current repository 59 | - name: Fetch Sources 60 | uses: actions/checkout@v4.2.2 61 | 62 | # Validate wrapper 63 | - name: Gradle Wrapper Validation 64 | uses: gradle/actions/wrapper-validation@v4.3.1 65 | 66 | # Set up Java environment for the next steps 67 | - name: Setup Java 68 | uses: actions/setup-java@v4.7.1 69 | with: 70 | distribution: zulu 71 | java-version: 17 72 | 73 | # Setup Gradle 74 | - name: Setup Gradle 75 | uses: gradle/actions/setup-gradle@v4.3.1 76 | 77 | # Set environment variables 78 | - name: Export Properties 79 | id: properties 80 | shell: bash 81 | run: | 82 | PROPERTIES="$(./gradlew properties --console=plain -q)" 83 | VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" 84 | NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')" 85 | 86 | echo "version=$VERSION" >> $GITHUB_OUTPUT 87 | echo "name=$NAME" >> $GITHUB_OUTPUT 88 | echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT 89 | 90 | # Extract changelog information 91 | - name: Prepare Changelog 92 | id: changelog 93 | shell: bash 94 | run: | 95 | GRADLE_PARAMS=(--no-header --console=plain --quiet) 96 | if [[ $GITHUB_REF == refs/heads/release/* || $GITHUB_REF == refs/pull/* ]]; then 97 | GRADLE_PARAMS+=(--unreleased) 98 | fi 99 | 100 | CHANGELOG="$(./gradlew getChangelog ${GRADLE_PARAMS[@]})" 101 | echo "changelog<> $GITHUB_OUTPUT 102 | echo "$CHANGELOG" >> $GITHUB_OUTPUT 103 | echo "EOF" >> $GITHUB_OUTPUT 104 | 105 | # Build plugin 106 | - name: Build plugin 107 | run: ./gradlew buildPlugin 108 | 109 | # Prepare plugin archive content for creating artifact 110 | - name: Prepare Plugin Artifact 111 | id: artifact 112 | shell: bash 113 | run: | 114 | cd ${{ github.workspace }}/build/distributions 115 | FILENAME=`ls *.zip` 116 | unzip "$FILENAME" -d content 117 | 118 | echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT 119 | 120 | # Store already-built plugin as an artifact for downloading 121 | - name: Upload artifact 122 | uses: actions/upload-artifact@v4.6.2 123 | with: 124 | name: ${{ steps.artifact.outputs.filename }} 125 | path: ./build/distributions/content/*/* 126 | 127 | # Run tests and upload a code coverage report 128 | test: 129 | name: Test 130 | needs: [ build ] 131 | runs-on: ubuntu-latest 132 | steps: 133 | 134 | # Check out the current repository 135 | - name: Fetch Sources 136 | uses: actions/checkout@v4.2.2 137 | 138 | # Set up Java environment for the next steps 139 | - name: Setup Java 140 | uses: actions/setup-java@v4.7.1 141 | with: 142 | distribution: zulu 143 | java-version: 17 144 | 145 | # Setup Gradle 146 | - name: Setup Gradle 147 | uses: gradle/actions/setup-gradle@v4.3.1 148 | 149 | # Run tests 150 | - name: Run Tests 151 | run: ./gradlew check 152 | 153 | # Collect Tests Result of failed tests 154 | - name: Collect Tests Result 155 | if: ${{ failure() }} 156 | uses: actions/upload-artifact@v4.6.2 157 | with: 158 | name: tests-result 159 | path: ${{ github.workspace }}/build/reports/tests 160 | 161 | # Upload the Kover report to CodeCov 162 | - name: Upload Code Coverage Report 163 | uses: codecov/codecov-action@v5.4.0 164 | with: 165 | files: ${{ github.workspace }}/build/reports/kover/report.xml 166 | 167 | # Run Qodana inspections and provide report 168 | inspectCode: 169 | name: Inspect code 170 | needs: [ build ] 171 | runs-on: ubuntu-latest 172 | permissions: 173 | contents: write 174 | checks: write 175 | pull-requests: write 176 | steps: 177 | 178 | # Free GitHub Actions Environment Disk Space 179 | - name: Maximize Build Space 180 | uses: jlumbroso/free-disk-space@main 181 | with: 182 | tool-cache: false 183 | large-packages: false 184 | 185 | # Check out the current repository 186 | - name: Fetch Sources 187 | uses: actions/checkout@v4.2.2 188 | with: 189 | ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit 190 | fetch-depth: 0 # a full history is required for pull request analysis 191 | 192 | # Set up Java environment for the next steps 193 | - name: Setup Java 194 | uses: actions/setup-java@v4.7.1 195 | with: 196 | distribution: zulu 197 | java-version: 17 198 | 199 | # Run Qodana inspections 200 | - name: Qodana - Code Inspection 201 | uses: JetBrains/qodana-action@v2024.3.4 202 | with: 203 | cache-default-branch-only: true 204 | 205 | # Run plugin structure verification along with IntelliJ Plugin Verifier 206 | verify: 207 | name: Verify plugin 208 | needs: [ build ] 209 | runs-on: ubuntu-latest 210 | steps: 211 | 212 | # Free GitHub Actions Environment Disk Space 213 | - name: Maximize Build Space 214 | uses: jlumbroso/free-disk-space@main 215 | with: 216 | tool-cache: false 217 | large-packages: false 218 | 219 | # Check out the current repository 220 | - name: Fetch Sources 221 | uses: actions/checkout@v4.2.2 222 | 223 | # Set up Java environment for the next steps 224 | - name: Setup Java 225 | uses: actions/setup-java@v4.7.1 226 | with: 227 | distribution: zulu 228 | java-version: 17 229 | 230 | # Setup Gradle 231 | - name: Setup Gradle 232 | uses: gradle/actions/setup-gradle@v4.3.1 233 | 234 | # Cache Plugin Verifier IDEs 235 | - name: Setup Plugin Verifier IDEs Cache 236 | uses: actions/cache@v4.2.3 237 | with: 238 | path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides 239 | key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} 240 | 241 | # Run Verify Plugin task and IntelliJ Plugin Verifier tool 242 | - name: Run Plugin Verification tasks 243 | run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }} -Dorg.gradle.jvmargs="-Xmx4096m" 244 | 245 | # Collect Plugin Verifier Result 246 | - name: Collect Plugin Verifier Result 247 | if: ${{ always() }} 248 | uses: actions/upload-artifact@v4.6.2 249 | with: 250 | name: pluginVerifier-result 251 | path: ${{ github.workspace }}/build/reports/pluginVerifier 252 | 253 | # Prepare a draft release for GitHub Releases page for the manual verification 254 | # If accepted and published, release workflow would be triggered 255 | releaseDraft: 256 | name: Release draft 257 | if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/support/') 258 | needs: [ build, test, inspectCode, verify ] 259 | runs-on: ubuntu-latest 260 | permissions: 261 | contents: write 262 | steps: 263 | 264 | # Check out the current repository 265 | - name: Fetch Sources 266 | uses: actions/checkout@v4.2.2 267 | 268 | # Remove old release drafts by using the curl request for the available releases with a draft flag 269 | - name: Remove Old Release Drafts 270 | env: 271 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 272 | run: | 273 | gh api repos/{owner}/{repo}/releases \ 274 | --jq '.[] | select(.draft == true) | .id' \ 275 | | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{} 276 | 277 | # Create a new release draft which is not publicly visible and requires manual acceptance 278 | - name: Create Release Draft 279 | uses: nekofar/create-github-release@v1.0.14 280 | with: 281 | tag: v${{ needs.build.outputs.version }} # The name of the tag to be released 282 | title: v${{ needs.build.outputs.version }} # The title for the release 283 | notes: ${{ needs.build.outputs.changelog }} # The release notes generated in the previous step 284 | draft: true # The release will be created as a draft 285 | 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 286 | -------------------------------------------------------------------------------- /.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@v4.2.2 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@v4.7.1 26 | with: 27 | distribution: zulu 28 | java-version: 17 29 | 30 | # Setup Gradle 31 | - name: Setup Gradle 32 | uses: gradle/actions/setup-gradle@v4.3.1 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.4.2 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.8 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 | -------------------------------------------------------------------------------- /.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@v4.2.2 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/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 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 | # Check out the current repository 22 | - name: Fetch Sources 23 | uses: actions/checkout@v4.2.2 24 | with: 25 | ref: ${{ github.event.release.tag_name }} 26 | 27 | # Set up Java environment for the next steps 28 | - name: Setup Java 29 | uses: actions/setup-java@v4.7.1 30 | with: 31 | distribution: zulu 32 | java-version: 17 33 | 34 | # Setup Gradle 35 | - name: Setup Gradle 36 | uses: gradle/actions/setup-gradle@v4.3.1 37 | 38 | # Publish the plugin to JetBrains Marketplace 39 | - name: Publish Plugin 40 | env: 41 | PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} 42 | CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }} 43 | PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} 44 | PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} 45 | run: ./gradlew publishPlugin 46 | 47 | # Upload artifact as a release asset 48 | - name: Upload Release Asset 49 | env: 50 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 51 | run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/* 52 | 53 | concurrency: 54 | group: ${{ github.workflow }}-${{ github.ref }} 55 | cancel-in-progress: true 56 | -------------------------------------------------------------------------------- /.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@v4.2.2 37 | 38 | # Set up Java environment for the next steps 39 | - name: Setup Java 40 | uses: actions/setup-java@v4.7.1 41 | with: 42 | distribution: zulu 43 | java-version: 17 44 | 45 | # Setup Gradle 46 | - name: Setup Gradle 47 | uses: gradle/actions/setup-gradle@v4.3.1 48 | 49 | # Run IDEA prepared for UI testing 50 | - name: Run IDE 51 | run: ${{ matrix.runIde }} 52 | 53 | # Wait for IDEA to be started 54 | - name: Health Check 55 | uses: jtalk/url-health-check-action@v4 56 | with: 57 | url: http://127.0.0.1:8082 58 | max-attempts: 15 59 | retry-delay: 30s 60 | 61 | # Run tests 62 | - name: Tests 63 | run: ./gradlew test 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | .idea 3 | .intellijPlatform 4 | .qodana 5 | build 6 | -------------------------------------------------------------------------------- /.run/Run Plugin Verification.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 17 | 19 | true 20 | true 21 | false 22 | 23 | 25 | 26 | -------------------------------------------------------------------------------- /.run/Run Plugin.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 17 | 19 | true 20 | true 21 | false 22 | false 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /.run/Run Tests.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 17 | 19 | true 20 | true 21 | false 22 | true 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /.run/Run Verifications.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 17 | 19 | true 20 | true 21 | false 22 | false 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | ## [Unreleased] 6 | ## [2.1.9] - 2025-06-09 7 | 8 | ### Bug Fixes 9 | 10 | - Solve some minor issues and update dependencies 11 | 12 | ## [2.1.8] - 2025-04-23 13 | 14 | ### Bug Fixes 15 | 16 | - Solve some minor issues and update dependencies 17 | 18 | ## [2.1.7] - 2025-03-31 19 | 20 | ### Bug Fixes 21 | 22 | - Solve some minor issues and update dependencies 23 | 24 | ## [2.1.6] - 2025-03-31 25 | 26 | ### Bug Fixes 27 | 28 | - Solve some minor issues and update dependencies 29 | 30 | ## [2.1.5] - 2025-03-04 31 | 32 | ### Bug Fixes 33 | 34 | - Solve some minor issues and update dependencies 35 | 36 | ## [2.1.4] - 2025-01-15 37 | 38 | ### Bug Fixes 39 | 40 | - Solve some minor issues and update dependencies 41 | 42 | ## [2.1.3] - 2024-12-12 43 | 44 | ### Bug Fixes 45 | 46 | - Solve some minor issues and update dependencies 47 | 48 | ## [2.1.2] - 2024-12-10 49 | 50 | ### Bug Fixes 51 | 52 | - Solve some minor issues and update dependencies 53 | 54 | ## [2.1.1] - 2024-10-07 55 | 56 | ### Bug Fixes 57 | 58 | - Solve some minor issues and update dependencies 59 | 60 | ## [2.1.0] - 2024-10-07 61 | 62 | ### Features 63 | 64 | - Add `messagePointer` method to `NuxtBundle` 65 | 66 | ## [2.0.14] - 2024-10-05 67 | 68 | ### Bug Fixes 69 | 70 | - Solve some minor issues and update dependencies 71 | 72 | ## [2.0.13] - 2024-07-07 73 | 74 | ### Bug Fixes 75 | 76 | - Solve some minor issues and update dependencies 77 | 78 | ## [2.0.12] - 2024-05-30 79 | 80 | ### Bug Fixes 81 | 82 | - Solve some minor issues and update dependencies 83 | 84 | ## [2.0.11] - 2024-02-29 85 | 86 | ### Bug Fixes 87 | 88 | - Solve some minor issues and update dependencies 89 | 90 | ## [2.0.10] - 2024-01-28 91 | 92 | ### Bug Fixes 93 | 94 | - Solve some minor issues and update dependencies 95 | 96 | ## [2.0.9] - 2023-12-12 97 | 98 | ### Bug Fixes 99 | 100 | - Solve some minor issues and update dependencies 101 | 102 | ## [2.0.8] - 2023-10-29 103 | 104 | ### Bug Fixes 105 | 106 | - Solve some minor issues and update dependencies 107 | 108 | ## [2.0.7] - 2023-10-15 109 | 110 | ### Bug Fixes 111 | 112 | - Solve some minor issues and update dependencies 113 | 114 | ## [2.0.6] - 2023-08-14 115 | 116 | ### Bug Fixes 117 | 118 | - Solve some minor issues and update dependencies 119 | 120 | ## [2.0.5] - 2023-08-14 121 | 122 | ### Bug Fixes 123 | 124 | - Solve some minor issues and update dependencies 125 | 126 | ## [2.0.4] - 2023-08-14 127 | 128 | ### Bug Fixes 129 | 130 | - Solve some minor issues and update dependencies 131 | 132 | ## [2.0.3] - 2023-08-13 133 | 134 | ### Bug Fixes 135 | 136 | - Solve some minor issues and update dependencies 137 | 138 | ## [2.0.2] - 2023-07-22 139 | 140 | ### Bug Fixes 141 | 142 | - Solve some minor issues and update dependencies 143 | 144 | ## [2.0.1] - 2023-07-09 145 | 146 | ### Bug Fixes 147 | 148 | - Solve some minor issues and update dependencies 149 | 150 | ## [2.0.0] - 2023-07-06 151 | 152 | ### Features 153 | 154 | - [**breaking**] Migrate from Nuxt v2 to v3 generator 155 | 156 | ## [1.2.19] - 2023-06-24 157 | 158 | ### Bug Fixes 159 | 160 | - Solve some minor issues and update dependencies 161 | 162 | ## [1.2.18] - 2023-06-17 163 | 164 | ### Bug Fixes 165 | 166 | - Solve some minor issues and update dependencies 167 | 168 | ## [1.2.17] - 2023-06-03 169 | 170 | ### Bug Fixes 171 | 172 | - Solve some minor issues and update dependencies 173 | 174 | ## [1.2.16] - 2023-05-19 175 | 176 | ### Bug Fixes 177 | 178 | - Solve some minor issues and update dependencies 179 | 180 | ## [1.2.15] - 2023-05-18 181 | 182 | ### Bug Fixes 183 | 184 | - Solve some minor issues and update dependencies 185 | 186 | ## [1.2.14] - 2023-05-04 187 | 188 | ### Bug Fixes 189 | 190 | - Solve some minor issues and update dependencies 191 | 192 | ## [1.2.13] - 2023-04-25 193 | 194 | ### Bug Fixes 195 | 196 | - Solve some minor issues and update dependencies 197 | 198 | ## [1.2.12] - 2023-04-01 199 | 200 | ### Bug Fixes 201 | 202 | - Solve some minor issues and update dependencies 203 | 204 | ## [1.2.11] - 2023-03-28 205 | 206 | ### Bug Fixes 207 | 208 | - Solve some minor issues and update dependencies 209 | 210 | ## [1.2.10] - 2023-03-03 211 | 212 | ### Bug Fixes 213 | 214 | - Solve some minor issues and update dependencies 215 | 216 | ## [1.2.9] - 2023-02-14 217 | 218 | ### Bug Fixes 219 | 220 | - Solve some minor issues and update dependencies 221 | 222 | ## [1.2.8] - 2023-02-09 223 | 224 | ### Bug Fixes 225 | 226 | - Solve some minor issues and update dependencies 227 | 228 | ## [1.2.7] - 2023-02-02 229 | 230 | ### Bug Fixes 231 | 232 | - Solve some minor issues and update dependencies 233 | 234 | ## [1.2.6] - 2023-02-01 235 | 236 | ### Bug Fixes 237 | 238 | - Solve some minor issues and update dependencies 239 | 240 | ## [1.2.5] - 2023-01-28 241 | 242 | ### Bug Fixes 243 | 244 | - Solve some minor issues and update dependencies 245 | 246 | ## [1.2.4] - 2023-01-22 247 | 248 | ### Bug Fixes 249 | 250 | - Solve some minor issues and update dependencies 251 | 252 | ## [1.2.3] - 2023-01-02 253 | 254 | ### Bug Fixes 255 | 256 | - Solve some minor issues and update dependencies 257 | 258 | ## [1.2.2] - 2022-12-09 259 | 260 | ### Bug Fixes 261 | 262 | - Solve some minor issues and dependency update 263 | 264 | ## [1.2.1] - 2022-10-26 265 | 266 | ### Bug Fixes 267 | 268 | - Solve some minor issues and dependency update 269 | 270 | ## [1.2.0] - 2022-07-27 271 | 272 | ### Bug Fixes 273 | 274 | - Solve a compatibility issue and update dpendencies 275 | 276 | ## [1.1.1] - 2022-06-23 277 | 278 | ### Features 279 | 280 | - Implement error handle and report through github issues 281 | 282 | ## [1.0.4] - 2022-02-21 283 | 284 | ### Bug Fixes 285 | 286 | - Solve an issue related to generate change notes 287 | 288 | ## [1.0.3] - 2022-02-21 289 | 290 | ### Bug Fixes 291 | 292 | - Update changelog section on plugin description 293 | 294 | ## [1.0.2] - 2022-02-21 295 | 296 | ### Bug Fixes 297 | 298 | - Update changelog section on plugin description 299 | 300 | ## [1.0.0] - 2022-02-19 301 | 302 | ### Features 303 | 304 | - Implement project generation trough `create-nuxt-app` 305 | - Add custom file type and unique icon for `nuxt.config.js` 306 | - Add run configurations after project generation 307 | 308 | 309 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IntelliJ Nuxt Plugin 2 | 3 | [![JetBrains Plugins](https://img.shields.io/jetbrains/plugin/v/18600-nuxt-js)](https://plugins.jetbrains.com/plugin/18600-nuxt-js) 4 | [![JetBrains plugins](https://img.shields.io/jetbrains/plugin/d/18600-nuxt-js)](https://plugins.jetbrains.com/plugin/18600-nuxt-js/versions) 5 | [![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/KartanHQ/intellij-nuxtjs/build.yml?branch=master)](https://github.com/KartanHQ/intellij-nuxtjs/actions/workflows/build.yml) 6 | [![GitHub](https://img.shields.io/github/license/KartanHQ/intellij-nuxtjs)](https://github.com/KartanHQ/intellij-nuxtjs/blob/master/LICENSE) 7 | [![X (formerly Twitter) Follow](https://img.shields.io/badge/follow-%40nekofar-ffffff?logo=x&style=flat)](https://x.com/nekofar) 8 | [![Donate](https://img.shields.io/badge/donate-nekofar.crypto-a2b9bc?logo=ko-fi&logoColor=white)](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 | -------------------------------------------------------------------------------- /build.gradle.kts: -------------------------------------------------------------------------------- 1 | import org.jetbrains.changelog.Changelog 2 | import org.jetbrains.changelog.markdownToHTML 3 | import org.jetbrains.intellij.platform.gradle.TestFrameworkType 4 | 5 | plugins { 6 | id("java") // Java support 7 | alias(libs.plugins.kotlin) // Kotlin support 8 | alias(libs.plugins.intelliJPlatform) // IntelliJ Platform Gradle Plugin 9 | alias(libs.plugins.changelog) // Gradle Changelog Plugin 10 | alias(libs.plugins.qodana) // Gradle Qodana Plugin 11 | alias(libs.plugins.kover) // Gradle Kover Plugin 12 | } 13 | 14 | group = providers.gradleProperty("pluginGroup").get() 15 | version = providers.gradleProperty("pluginVersion").get() 16 | 17 | // Set the JVM language level used to build the project. 18 | kotlin { 19 | jvmToolchain(17) 20 | } 21 | 22 | // Configure project's dependencies 23 | repositories { 24 | mavenCentral() 25 | 26 | // IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html 27 | intellijPlatform { 28 | defaultRepositories() 29 | } 30 | } 31 | 32 | // Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog 33 | dependencies { 34 | testImplementation(libs.junit) 35 | 36 | // IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html 37 | intellijPlatform { 38 | create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion")) 39 | 40 | // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins. 41 | bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') }) 42 | 43 | // Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace. 44 | plugins(providers.gradleProperty("platformPlugins").map { it.split(',') }) 45 | 46 | instrumentationTools() 47 | pluginVerifier(version="1.383") 48 | zipSigner() 49 | testFramework(TestFrameworkType.Platform) 50 | } 51 | } 52 | 53 | // Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html 54 | intellijPlatform { 55 | pluginConfiguration { 56 | version = providers.gradleProperty("pluginVersion") 57 | 58 | // Extract the section from README.md and provide for the plugin's manifest 59 | description = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map { 60 | val start = "" 61 | val end = "" 62 | 63 | with(it.lines()) { 64 | if (!containsAll(listOf(start, end))) { 65 | throw GradleException("Plugin description section not found in README.md:\n$start ... $end") 66 | } 67 | subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML) 68 | } 69 | } 70 | 71 | val changelog = project.changelog // local variable for configuration cache compatibility 72 | // Get the latest available change notes from the changelog file 73 | changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion -> 74 | with(changelog) { 75 | renderItem( 76 | (getOrNull(pluginVersion) ?: getUnreleased()) 77 | .withHeader(false) 78 | .withEmptySections(false), 79 | Changelog.OutputType.HTML, 80 | ) 81 | } 82 | } 83 | 84 | ideaVersion { 85 | sinceBuild = providers.gradleProperty("pluginSinceBuild") 86 | untilBuild = providers.gradleProperty("pluginUntilBuild") 87 | } 88 | } 89 | 90 | signing { 91 | certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN") 92 | privateKey = providers.environmentVariable("PRIVATE_KEY") 93 | password = providers.environmentVariable("PRIVATE_KEY_PASSWORD") 94 | } 95 | 96 | publishing { 97 | token = providers.environmentVariable("PUBLISH_TOKEN") 98 | // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3 99 | // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: 100 | // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel 101 | channels = providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) } 102 | } 103 | 104 | pluginVerification { 105 | ides { 106 | recommended() 107 | } 108 | 109 | freeArgs = listOf( 110 | "-mute", 111 | "TemplateWordInPluginId,ForbiddenPluginIdPrefix" 112 | ) 113 | } 114 | } 115 | 116 | // Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin 117 | changelog { 118 | groups.empty() 119 | repositoryUrl = providers.gradleProperty("pluginRepositoryUrl") 120 | } 121 | 122 | // Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration 123 | kover { 124 | reports { 125 | total { 126 | xml { 127 | onCheck = true 128 | } 129 | } 130 | } 131 | } 132 | 133 | tasks { 134 | wrapper { 135 | gradleVersion = providers.gradleProperty("gradleVersion").get() 136 | } 137 | 138 | publishPlugin { 139 | dependsOn(patchChangelog) 140 | } 141 | } 142 | 143 | intellijPlatformTesting { 144 | runIde { 145 | register("runIdeForUiTests") { 146 | task { 147 | jvmArgumentProviders += CommandLineArgumentProvider { 148 | listOf( 149 | "-Drobot-server.port=8082", 150 | "-Dide.mac.message.dialogs.as.sheets=false", 151 | "-Djb.privacy.policy.text=", 152 | "-Djb.consents.confirmation.enabled=false", 153 | ) 154 | } 155 | } 156 | 157 | plugins { 158 | robotServerPlugin() 159 | } 160 | } 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html 2 | 3 | pluginGroup = com.nekofar.milad 4 | pluginName = IntelliJ Nuxt.js Plugin 5 | pluginRepositoryUrl = https://github.com/KartanHQ/intellij-nuxtjs 6 | 7 | # SemVer format -> https://semver.org 8 | pluginVersion = 2.1.9 9 | 10 | # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html 11 | pluginSinceBuild = 233 12 | pluginUntilBuild = 252.* 13 | 14 | # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension 15 | platformType = IU 16 | platformVersion = 2023.3.8 17 | 18 | # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html 19 | # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 20 | platformPlugins = org.jetbrains.plugins.vue:231.8109.172 21 | # Example: platformBundledPlugins = com.intellij.java 22 | platformBundledPlugins = JavaScript 23 | 24 | # Gradle Releases -> https://github.com/gradle/gradle/releases 25 | gradleVersion = 8.10.2 26 | 27 | # Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib 28 | kotlin.stdlib.default.dependency = false 29 | 30 | # Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html 31 | org.gradle.configuration-cache = true 32 | 33 | # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html 34 | org.gradle.caching = true 35 | -------------------------------------------------------------------------------- /gradle/libs.versions.toml: -------------------------------------------------------------------------------- 1 | [versions] 2 | # libraries 3 | junit = "4.13.2" 4 | 5 | # plugins 6 | changelog = "2.2.0" 7 | intelliJPlatform = "2.5.0" 8 | kotlin = "2.1.20" 9 | kover = "0.9.1" 10 | qodana = "2024.3.4" 11 | 12 | [libraries] 13 | junit = { group = "junit", name = "junit", version.ref = "junit" } 14 | 15 | [plugins] 16 | changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" } 17 | intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" } 18 | kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } 19 | kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" } 20 | qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" } 21 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KartanHQ/intellij-nuxtjs/10814d6e5dbd6836306bf27f7f446a9940b45ba8/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 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 90 | ' "$PWD" ) || exit 91 | 92 | # Use the maximum available, or set MAX_FD != -1 to use that value. 93 | MAX_FD=maximum 94 | 95 | warn () { 96 | echo "$*" 97 | } >&2 98 | 99 | die () { 100 | echo 101 | echo "$*" 102 | echo 103 | exit 1 104 | } >&2 105 | 106 | # OS specific support (must be 'true' or 'false'). 107 | cygwin=false 108 | msys=false 109 | darwin=false 110 | nonstop=false 111 | case "$( uname )" in #( 112 | CYGWIN* ) cygwin=true ;; #( 113 | Darwin* ) darwin=true ;; #( 114 | MSYS* | MINGW* ) msys=true ;; #( 115 | NONSTOP* ) nonstop=true ;; 116 | esac 117 | 118 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 119 | 120 | 121 | # Determine the Java command to use to start the JVM. 122 | if [ -n "$JAVA_HOME" ] ; then 123 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 124 | # IBM's JDK on AIX uses strange locations for the executables 125 | JAVACMD=$JAVA_HOME/jre/sh/java 126 | else 127 | JAVACMD=$JAVA_HOME/bin/java 128 | fi 129 | if [ ! -x "$JAVACMD" ] ; then 130 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 131 | 132 | Please set the JAVA_HOME variable in your environment to match the 133 | location of your Java installation." 134 | fi 135 | else 136 | JAVACMD=java 137 | if ! command -v java >/dev/null 2>&1 138 | then 139 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 140 | 141 | Please set the JAVA_HOME variable in your environment to match the 142 | location of your Java installation." 143 | fi 144 | fi 145 | 146 | # Increase the maximum file descriptors if we can. 147 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 148 | case $MAX_FD in #( 149 | max*) 150 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. 151 | # shellcheck disable=SC2039,SC3045 152 | MAX_FD=$( ulimit -H -n ) || 153 | warn "Could not query maximum file descriptor limit" 154 | esac 155 | case $MAX_FD in #( 156 | '' | soft) :;; #( 157 | *) 158 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. 159 | # shellcheck disable=SC2039,SC3045 160 | ulimit -n "$MAX_FD" || 161 | warn "Could not set maximum file descriptor limit to $MAX_FD" 162 | esac 163 | fi 164 | 165 | # Collect all arguments for the java command, stacking in reverse order: 166 | # * args from the command line 167 | # * the main class name 168 | # * -classpath 169 | # * -D...appname settings 170 | # * --module-path (only if needed) 171 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 172 | 173 | # For Cygwin or MSYS, switch paths to Windows format before running java 174 | if "$cygwin" || "$msys" ; then 175 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 176 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 177 | 178 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 179 | 180 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 181 | for arg do 182 | if 183 | case $arg in #( 184 | -*) false ;; # don't mess with options #( 185 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 186 | [ -e "$t" ] ;; #( 187 | *) false ;; 188 | esac 189 | then 190 | arg=$( cygpath --path --ignore --mixed "$arg" ) 191 | fi 192 | # Roll the args list around exactly as many times as the number of 193 | # args, so each arg winds up back in the position where it started, but 194 | # possibly modified. 195 | # 196 | # NB: a `for` loop captures its iteration list before it begins, so 197 | # changing the positional parameters here affects neither the number of 198 | # iterations, nor the values presented in `arg`. 199 | shift # remove old arg 200 | set -- "$@" "$arg" # push replacement arg 201 | done 202 | fi 203 | 204 | 205 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 206 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 207 | 208 | # Collect all arguments for the java command: 209 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, 210 | # and any embedded shellness will be escaped. 211 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be 212 | # treated as '${Hostname}' itself on the command line. 213 | 214 | set -- \ 215 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 216 | -classpath "$CLASSPATH" \ 217 | org.gradle.wrapper.GradleWrapperMain \ 218 | "$@" 219 | 220 | # Stop when "xargs" is not available. 221 | if ! command -v xargs >/dev/null 2>&1 222 | then 223 | die "xargs is not available" 224 | fi 225 | 226 | # Use "xargs" to parse quoted args. 227 | # 228 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 229 | # 230 | # In Bash we could simply go: 231 | # 232 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 233 | # set -- "${ARGS[@]}" "$@" 234 | # 235 | # but POSIX shell has neither arrays nor command substitution, so instead we 236 | # post-process each arg (as a line of input to sed) to backslash-escape any 237 | # character that might be a shell metacharacter, then use eval to reverse 238 | # that process (while maintaining the separation between arguments), and wrap 239 | # the whole thing up as a single "set" statement. 240 | # 241 | # This will of course break if any of these variables contains a newline or 242 | # an unmatched quote. 243 | # 244 | 245 | eval "set -- $( 246 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 247 | xargs -n1 | 248 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 249 | tr '\n' ' ' 250 | )" '"$@"' 251 | 252 | exec "$JAVACMD" "$@" 253 | -------------------------------------------------------------------------------- /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=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 74 | 75 | 76 | @rem Execute Gradle 77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 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 | -------------------------------------------------------------------------------- /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.2 6 | projectJDK: "17" 7 | profile: 8 | name: qodana.recommended 9 | exclude: 10 | - name: All 11 | paths: 12 | - .qodana 13 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | rootProject.name = "intellij-nuxtjs" 2 | 3 | plugins { 4 | id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0" 5 | } 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/resources/META-INF/pluginIcon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/icons/nuxt.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/icons/type.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | File 4 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------