Skip to content

Commit

Permalink
refactor(molecule): codegen grammar when building to reduce repo size
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Aug 6, 2024
1 parent 5cbcb7f commit 137049c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2,042 deletions.
64 changes: 3 additions & 61 deletions examples/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion packages/molecule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"test": "ava **/*.test.ts --timeout=2m",
"fmt": "prettier --write \"{src,tests,examples}/**/*.ts\" package.json",
"lint": "eslint -c ../../.eslintrc.js \"{src,tests,examples}/**/*.ts\"",
"build": "pnpm run build:types && pnpm run build:js",
"build": "pnpm run build:types && pnpm generate:grammar && pnpm run build:js",
"build:types": "tsc --declaration --emitDeclarationOnly",
"build:js": "babel --root-mode upward src --out-dir lib --extensions .ts -s && pnpm run build:old",
"build:old": "shx mkdir -p lib/grammar && shx cp -r src/grammar/*.js lib/grammar",
Expand Down
1 change: 1 addition & 0 deletions packages/molecule/src/grammar/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
grammar.js
Loading

0 comments on commit 137049c

Please sign in to comment.