Skip to content

Commit

Permalink
feat: export
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen7 committed Apr 4, 2022
1 parent 6a79a92 commit 44c06d9
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ yarn-error.log*

.vscode

/graph
/parser
/export

.swc
4 changes: 2 additions & 2 deletions scripts/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const React = require("react")
const ReactDOMServer = require("react-dom/server")
const fs = require("fs")
const path = require("path")
const MinimumGraph = require("../graph/index.js").default
const { parse } = require("../parser/index.js")
const MinimumGraph = require("../export/graph.js").default
const { parse } = require("../export/parser.js")
const svgs = require("./svgs")
const assetsDir = path.resolve(__dirname, "../src/assets/")

Expand Down
4 changes: 2 additions & 2 deletions scripts/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildSync({
entryPoints: [
path.resolve(__dirname, "../src/modules/graph/minimum-graph.tsx"),
],
outfile: path.resolve(__dirname, "../graph/index.js"),
outfile: path.resolve(__dirname, "../export/graph.js"),
bundle: true,
define: { "process.env.EXPORT": "true" },
external: ["react", "react-dom", "styled-jsx", "canvas"],
Expand All @@ -16,7 +16,7 @@ buildSync({

buildSync({
entryPoints: [path.resolve(__dirname, "../src/parser/index.ts")],
outfile: path.resolve(__dirname, "../parser/index.js"),
outfile: path.resolve(__dirname, "../export/parser.js"),
bundle: true,
define: { "process.env.EXPORT": "true" },
external: ["react", "react-dom", "styled-jsx", "canvas"],
Expand Down
2 changes: 1 addition & 1 deletion src/assets/back-reference.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/beginning-assertion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/capturing-group.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/characters.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/choice.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/class.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 44c06d9

Please sign in to comment.