Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Oct 13, 2019
1 parent bd951af commit 611ae16
Show file tree
Hide file tree
Showing 13 changed files with 166 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Created by .ignore support plugin (hsz.mobi)
### Scala template
*.class
*.log

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

4 changes: 4 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version = "2.1.0"
style = defaultWithAlign
maxColumn = 120
align.openParenDefnSite = true
17 changes: 17 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
intellijPluginName in ThisBuild := "IntelliJ-Smashtest"
intellijBuild in ThisBuild := "192.6817.14"
intellijDownloadSources in ThisBuild := true
intellijInternalPlugins += "java"

lazy val intellijSmashtest = (project in file("."))
.enablePlugins(SbtIdeaPlugin)
.settings(
name := "IntelliJ Smashtest",
version := "0.1.0",
scalaVersion := "2.13.1",
javacOptions in Global ++= Seq("-source", "1.8", "-target", "1.8"),
scalacOptions in Global ++= Seq("-target:jvm-1.8", "-deprecation", "-feature"),
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % Test
)
)
1 change: 1 addition & 0 deletions hoge.smash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fff
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.3.2
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.3.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.7")
16 changes: 16 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude">
<id>net.exoego.intellij.smashtest</id>
<name>Smashtest</name>
<description><![CDATA[
Adds support for the Smash, a language for rapidly describing and deploying test cases.
]]></description>
<version>0.1.0</version>
<vendor url="https://github.com/exoego">TATSUNO Yasuhiro</vendor>
<idea-version since-build="192.6817.14" until-build="194.0"/>
<extensions defaultExtensionNs="com.intellij">
<!-- <fileTypeFactory implementation="net.exoego.intellij.smashtest.SmashtestFileTypeFactory"/>-->

<fileType name="Simple file" implementationClass="net.exoego.intellij.smashtest.SmashtestFileType$"
language="Smashtest" extensions="smash"/>
</extensions>
</idea-plugin>
11 changes: 11 additions & 0 deletions src/main/resources/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package net.exoego.intellij.smashtest

import com.intellij.openapi.fileTypes.LanguageFileType
import javax.swing.Icon
import org.jetbrains.annotations.NotNull

object SmashtestFileType extends LanguageFileType(SmashtestLanguage) {
@NotNull def getName = "Smashtest"

override def getDescription: String = "A language for rapidly describing and deploying test cases."

override def getDefaultExtension: String = "smash"

override def getIcon: Icon = SmashtestIcons.SmashtestFileType
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package net.exoego.intellij.smashtest

import com.intellij.openapi.fileTypes.{FileTypeConsumer, FileTypeFactory}

class SmashtestFileTypeFactory extends FileTypeFactory {
override def createFileTypes(fileTypeConsumer: FileTypeConsumer): Unit = {
fileTypeConsumer.consume(SmashtestFileType)
}
}
10 changes: 10 additions & 0 deletions src/main/scala/net/exoego/intellij/smashtest/SmashtestIcons.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package net.exoego.intellij.smashtest

import com.intellij.openapi.util.IconLoader
import javax.swing.Icon
import org.jetbrains.annotations.NotNull

object SmashtestIcons {
@NotNull def SmashtestLogo: Icon = IconLoader.getIcon("/icons/[email protected]");
@NotNull def SmashtestFileType: Icon = IconLoader.getIcon("/icons/[email protected]");
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.exoego.intellij.smashtest

import com.intellij.lang.Language

object SmashtestLanguage extends Language("Smashtest") {}

0 comments on commit 611ae16

Please sign in to comment.