Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix paths in npm build #26

Open
wants to merge 42 commits into
base: develop
Choose a base branch
from
Open

Fix paths in npm build #26

wants to merge 42 commits into from

Conversation

bonbud-macryg
Copy link
Collaborator

Updates paths in build script and Vite config for new chess-ui repo.

bonbud-macryg and others added 30 commits February 1, 2023 13:59
There's good reason to keep npm etc. quarantined within Docker, but right now
that workflow comes with a compile times around 100 seconds. Frontend
developers need to make and test changes rapidly, and likely have these
packages installed on their system already.

This commit adds a `webpack.config.nodocker.js` file and
`build-webpack.sh` to easily build with it. Compiling with
`build-webpack.sh` takes around 3 seconds.

A `package-lock.json` file is created by npm [for future developers](https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json#description)
on any installs to manage dependencies, and I have no strong opinion
on whether it should be removed from the GitHub repo. If developers
have to install webpack and its plugins to run `build-webpack.sh`, a
new `package-lock` will be created in their local `/src` folder.

This commit also modifies several frontend files to accommodate the new
webpack workflow, but this doesn't affect the `build-docker` workflow.
Also includes some general amendments to the README. Raymond E. Pasco's
site is linked to in the contributor list, some installation
instructions are clearer, and the README is lightly amended to reflect that
@ashelkovnykov is no longer its sole author.
TypeScript's `tsc -w` command catches compile-time errors in your
TypeScript files as soon as you save the file. This commit amends the
"outDir" option for `tsconfig.json`, making a `tsc -w` compile more
convenient by adding the created `tsc-watch` folder to `.gitignore`.

This doesn't create a glob-ready build. As is, the `tsc -w` compile
is only for catching errors in your `.ts` and `.tsx` files as soon
as you make them, rather than waiting for a "real" compile attempt
to finish.
Bug would kick subscribers before sending game results.
* Install Vite and Urbit's Vite plugins
* Import isValidPatp from urbit-ob — instead of using a require() — and add a type declaration for isValidPatp
@bonbud-macryg bonbud-macryg changed the base branch from develop to master May 26, 2024 12:31
@bonbud-macryg bonbud-macryg changed the base branch from master to develop May 26, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants