Skip to content

Commit 49d165c

Browse files
committed
fix: fix the Doc exports
1 parent da8cd28 commit 49d165c

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

lib/grammars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as apple from "./grammars/apple"
66
import c from "./grammars/c"
77
import coffeescript from "./grammars/coffeescript"
88
import database from "./grammars/database"
9-
import * as doc from "./grammars/doc"
9+
import doc from "./grammars/doc"
1010
import * as fortran from "./grammars/fortran"
1111
import * as haskell from "./grammars/haskell"
1212
import * as java from "./grammars/java"

lib/grammars/database.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const message =
44
"SQL requires setting 'Script: Run Options' directly. See https://github.com/atom-ide-community/atom-script/tree/master/examples/hello.sql for further information."
55

6-
export default {
6+
const DataBaseGrammars = {
77
"mongoDB (JavaScript)": {
88
"Selection Based": {
99
command: "mongo",
@@ -52,3 +52,4 @@ export default {
5252
},
5353
},
5454
}
55+
export default DataBaseGrammars

lib/grammars/doc.js

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { shell } from "electron"
1010
import GrammarUtils from "../grammar-utils"
1111

12-
export const DOT = {
12+
const DOT = {
1313
"Selection Based": {
1414
command: "dot",
1515
args(context) {
@@ -27,7 +27,7 @@ export const DOT = {
2727
},
2828
}
2929

30-
export const gnuplot = {
30+
const gnuplot = {
3131
"File Based": {
3232
command: "gnuplot",
3333
workingDirectory: __guardMethod__(
@@ -48,7 +48,7 @@ export const gnuplot = {
4848
},
4949
}
5050

51-
exports["Graphviz (DOT)"] = {
51+
const Graphviz = {
5252
"Selection Based": {
5353
command: "dot",
5454
args(context) {
@@ -66,7 +66,7 @@ exports["Graphviz (DOT)"] = {
6666
},
6767
}
6868

69-
export const HTML = {
69+
const HTML = {
7070
"File Based": {
7171
command: "echo",
7272
args({ filepath }) {
@@ -77,7 +77,7 @@ export const HTML = {
7777
},
7878
}
7979

80-
export const LaTeX = {
80+
const LaTeX = {
8181
"File Based": {
8282
command: "latexmk",
8383
args({ filepath }) {
@@ -86,7 +86,7 @@ export const LaTeX = {
8686
},
8787
}
8888

89-
export const ConTeXt = {
89+
const ConTeXt = {
9090
"File Based": {
9191
command: "context",
9292
args({ filepath }) {
@@ -95,9 +95,9 @@ export const ConTeXt = {
9595
},
9696
}
9797

98-
exports["LaTeX Beamer"] = exports.LaTeX
98+
const LaTeXBeamer = LaTeX
9999

100-
exports["Pandoc Markdown"] = {
100+
const PandocMarkdown = {
101101
"File Based": {
102102
command: "panzer",
103103
args({ filepath }) {
@@ -106,7 +106,7 @@ exports["Pandoc Markdown"] = {
106106
},
107107
}
108108

109-
export const Sass = {
109+
const Sass = {
110110
"File Based": {
111111
command: "sass",
112112
args({ filepath }) {
@@ -115,7 +115,7 @@ export const Sass = {
115115
},
116116
}
117117

118-
export const SCSS = exports.Sass
118+
const SCSS = Sass
119119

120120
function __guardMethod__(obj, methodName, transform) {
121121
if (typeof obj !== "undefined" && obj !== null && typeof obj[methodName] === "function") {
@@ -127,3 +127,17 @@ function __guardMethod__(obj, methodName, transform) {
127127
function __guard__(value, transform) {
128128
return typeof value !== "undefined" && value !== null ? transform(value) : undefined
129129
}
130+
131+
const Docs = {
132+
DOT,
133+
GNUPlot: gnuplot,
134+
"Graphviz (DOT)": Graphviz,
135+
HTML,
136+
LaTeX,
137+
ConTeXt,
138+
"LaTeX Beamer": LaTeXBeamer,
139+
"Pandoc Markdown": PandocMarkdown,
140+
Sass,
141+
SCSS,
142+
}
143+
export default Docs

0 commit comments

Comments
 (0)