Skip to content

All source files in one branch #135

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

Merged
merged 114 commits into from
Feb 26, 2020

Conversation

gabejohnson
Copy link
Contributor

@gabejohnson gabejohnson commented Feb 18, 2020

See #132

We would like to keep all source files in a single branch and use gh-pages purely for hosting
build artifacts.

Going forward we would build the PS source and push it (along with the html, css, other js dependencies, README.md, etc.) to gh-pages. No edits would happen directly in gh-pages.

So far I've done the minimum to move the frontend files into the mainline branch and get the Core backend working with v0.13.6. Much of the work was already done by @natefaubion
in #127 which I've merged into this branch. The other backends still need updating and there are none of the scripts mentioned in #132 (comment).

I've forked the Core gist and the example gists to which it points to get them working with Effect and pointed Try.API to that fork. Going forward it may make sense to have those gists live under the purescript org.

I'm open to adding more to this PR (backend updates, build scripts) but wanted to keep it minimal and spur discussion concerning what needs to be done to get https://try.purescript.org up-to-date.

paf31 and others added 14 commits September 5, 2017 14:14
* setQueryStrings should replace existing parameters

* Update JS
In preparation for merging `gh-pages` into `master`, we move everything into a
`client` directory to avoid merge conflicts and preserve git history. See
purescript#132
See purescript#132. We would like to
keep all source files in a single branch and use `gh-pages` purely for hosting
build artifacts.

Going forward we would build the PS source and push it (along with the html,
css, other js dependencies, README.md, etc.) to `gh-pages`. No edits would
happen directly in `gh-pages`.
I've updated dependencies by major version only for those that require it to
compile against the v0.13.x version of the compiler (I bumped the compiler to
the latest at the time of writing - v0.13.6).

When running `bower install`, I had to do some interactive module resolutions.
I think it makes sense to move to psc-package (whether in this PR or a
follow-up) and potentially `spago` in the future.
There was a missing step to install npm dependencies and the instructions for
`psc-package` were out-of-date.
Phil's gist was targeted < v0.12.x so I forked it and made the required updates
at https://gist.github.com/gabejohnson/e1d317102aad40207309d8873e301273
Copy link
Collaborator

@hdgarrood hdgarrood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks very much! Nice job preserving the git history too. I'll try to set aside some time to check this out locally and play with it soon.

@@ -0,0 +1,6231 @@
// Generated by purs bundle 0.12.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be ignored?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had just added a it to .gitignore right before opening the PR, but forgot to remove it. Fixed.

@hdgarrood
Copy link
Collaborator

hdgarrood commented Feb 18, 2020

I'm very much in favour of keeping this PR minimal, by the way. 👍

We no longer want to track build artifacts in the mainline branch.
@gabejohnson gabejohnson force-pushed the all-source-files-in-one-branch branch 2 times, most recently from 1df65d9 to 9a2530e Compare February 18, 2020 15:47
Copy link
Collaborator

@hdgarrood hdgarrood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Some things that occur to me that I think would be nice to do next:

  • Have the client use spago rather than bower for its PureScript dependencies
  • Have the client use npm for its JS dependencies, and avoid having react and mathbox checked in
  • Merge README.md and client/README.md into a single file, and make some minor updates
  • Move client configuration out of the source files

But I think all of these can happen separately. As far as I'm concerned I'm happy to go ahead and merge this now.

@gabejohnson
Copy link
Contributor Author

Those all sound like reasonable changes. I think replacing the thermite backend with react-basic also makes sense while updating the other backends.

Since I incorporated the changes from #127, that can probably be closed as well.

@natefaubion
Copy link
Contributor

I don't think it's worth updating backends. I would much rather merge up #128 and obviate the need for backends.

@gabejohnson
Copy link
Contributor Author

I would much rather merge up #128 and obviate the need for backends.

That makes sense. I guess just updating some gists then.

@hdgarrood hdgarrood merged commit 09b47fe into purescript:master Feb 26, 2020
@hdgarrood hdgarrood mentioned this pull request Mar 15, 2020
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.