Skip to content

Commit

Permalink
refactor: omit unused info
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 20, 2023
1 parent 1cf6530 commit c9fc39e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,24 @@ import {
Object_,
cg,
Block,
Project,
} from "../deps/enz.ts"
import JSON5 from "https://esm.sh/[email protected]?pin=v135"

import { format } from "./util/format.ts"

class PixiVisitor extends Visitor {
getInitData(project: Project) {
return {
...project,
objects: project.objects.map(
({sprite}) => ({sprite})
),
functions: project.functions.map(
({content: _, ...rest}) => rest
),
} as any
}
visitObject(object: Object_): string {
const script = super.visitObject(object)
const {
Expand Down
10 changes: 10 additions & 0 deletions deno.lock

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

0 comments on commit c9fc39e

Please sign in to comment.