Closed kaisermann closed 2 years ago
Thank you for contributing! I think I'm ok with this change but would like to get #509 in and then circle back to this. I need to verify that it's safe to gitignore the built files, for example. I know that many people make the mistake of directly editing page.js. I don't think this necessary solves that issue though (maybe the prepublish script would cause their changes to be overridden and therefore signal that it's the wrong file).
Maybe putting them in a dist/
directory and point the package.json
to them would help 🤔
@matthewp Just wondering if you'd like to revisit this :grin:
I was messing around a little bit with the source code and have noticed that the build step is not clear enough (many PRs have changes only in one of the possible entry files, etc).
es
build torollup.config.js
;makefile
andnpm run make
withnpm run build
andnpm run watch
;prepublishOnly
script to always guarantee builtpage.js
andpage.mjs
files based on the mainindex.js
before publishing a new version;page.js
andpage.mjs
files to the.gitignore
;Contributing:
npm run build
- to build thepage.js
andpage.mjs
;npm run watch
- to build and also watch for file changes;