Skip to content

Commit

Permalink
export parser and generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jul 18, 2018
1 parent 7c7bef3 commit 4960970
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,8 @@
components[name] = component(name, options);
};

Moon.parse = parse;
Moon.generate = generate;
Moon.compile = compile;
Moon.config = config;

Expand Down
2 changes: 1 addition & 1 deletion packages/moon/dist/moon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/moon/src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { parse } from "./compiler/parser/parser";
import { generate } from "./compiler/generator/generator";
import { compile } from "./compiler/compiler";
import { component } from "./component/component";
import { components } from "./component/components";
Expand All @@ -24,5 +26,7 @@ Moon.extend = (name, options) => {
components[name] = component(name, options);
};

Moon.parse = parse;
Moon.generate = generate;
Moon.compile = compile;
Moon.config = config;

0 comments on commit 4960970

Please sign in to comment.