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

Switch to static for frontend #1301

Open
XhmikosR opened this issue Mar 12, 2019 · 4 comments
Open

Switch to static for frontend #1301

XhmikosR opened this issue Mar 12, 2019 · 4 comments

Comments

@XhmikosR
Copy link
Collaborator

XhmikosR commented Mar 12, 2019

This is something we discussed internally on Slack, but I'd like us to come to a consensus before I start working on it.

  1. We can still use Heroku as long someone sets up branch/PR previews. Not sure if we can control the response headers with Heroku. An alternative is Netlify which allows us to do redirects, customize the headers, etc.
  2. Which tool should we use? I personally like tools with less dependencies so I wouldn't go with Jekyll (Ruby, and also slow in general). Hugo is another alternative, we can load it through npm via the hugo-bin package
  3. Regarding the current data/bootstrapcdn.json, I guess we can generate it on build time. Hugo should make this easy, see https://gohugo.io/templates/files/.
  4. Regarding testing the frontend, we could just use the tool's we go with, built-in server, minus the redirects maybe. Otherwise we need to look into using something else for frontend testing

Note that with Hugo, we can use Sass, minify files, generate SRI hashes etc. I haven't really done this yet with Hugo myself, but it shouldn't be too hard.

/CC @jdorfman @jmervine @Johann-S

@Johann-S
Copy link
Contributor

Johann-S commented Mar 12, 2019

An other solution would be to use a framework like React with Gasby for example, we'll find the same advantages:

@XhmikosR
Copy link
Collaborator Author

I personally don't like React and co, because a site IMO shouldn't need JS to operate in a basic form.

When I say static, I personally mean really static, well except the collapsed panes we have.

@Johann-S
Copy link
Contributor

I can understand, the main feature with React and co, it's you can create dumb components which can be used accross your website, it's very usefull when you have contents which look the same or with some differences

@XhmikosR
Copy link
Collaborator Author

XhmikosR commented Mar 12, 2019

Which I can already do with CSS and HTML and static a site generator :)

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

No branches or pull requests

2 participants