This repository has been archived by the owner on Mar 19, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a test. It adds only a test. (#614)
* upgrade editor to a recent Rug version and some formatting * a test for a language extension I'm attempting to make this simple but it is not. I can work from here on making it a little simpler.
- Loading branch information
Showing
9 changed files
with
236 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
group: atomist | ||
artifact: rug | ||
version: "0.2.0" | ||
requires: "[0.13.0,1.0.0)" | ||
version: "0.3.0" | ||
requires: "[1.0.0-m.3,2.0.0)" | ||
dependencies: | ||
extensions: |
4 changes: 3 additions & 1 deletion
4
src/test/resources/META-INF/services/com.atomist.rug.spi.Typed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
com.atomist.rug.kind.test.ReplacerType | ||
|
||
com.atomist.rug.kind.test.ReplacerCljType | ||
com.atomist.rug.kind.test.ReplacerCljType | ||
|
||
com.atomist.rug.kind.PandaRugLanguageExtension |
26 changes: 26 additions & 0 deletions
26
src/test/resources/com/atomist/rug/kind/PandaParsingTypeScriptTest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Project, File } from '@atomist/rug/model/Core' | ||
import { Editor } from '@atomist/rug/operations/Decorators' | ||
import { PathExpressionEngine, TextTreeNode } from '@atomist/rug/tree/PathExpression' | ||
import { Parameter } from "@atomist/rug/operations/Decorators"; | ||
import { Pattern } from "@atomist/rug/operations/RugOperation"; | ||
|
||
@Editor("PandaParsingTypeScriptTest", "Uses PandaParsing from TypeScript") | ||
class PandaParsingTypeScriptTest { | ||
|
||
@Parameter({ pattern: Pattern.any }) | ||
changePandasInCurliesTo: string; | ||
|
||
edit(project: Project) { | ||
|
||
let eng : PathExpressionEngine = project.context.pathExpressionEngine; | ||
|
||
let pandafile = eng.scalar<Project, File>(project, `/my.panda`); | ||
let parsedPanda = eng.scalar<File, TextTreeNode>(pandafile, "/Panda()"); | ||
|
||
eng.with<TextTreeNode>(parsedPanda, `/curly/word`, pandaWord => { | ||
pandaWord.update(this.changePandasInCurliesTo); | ||
}) | ||
|
||
} | ||
} | ||
export let editor = new PandaParsingTypeScriptTest(); |
77 changes: 0 additions & 77 deletions
77
src/test/resources/com/atomist/rug/runtime/js/interop/MutatingBanana.js
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
src/test/resources/com/atomist/rug/runtime/js/interop/SimpleBanana.js
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
src/test/resources/com/atomist/rug/ts/SampleTypeScriptTest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.