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

Create a vanilla development environment #10

Open
celian-garcia opened this issue May 3, 2020 · 5 comments
Open

Create a vanilla development environment #10

celian-garcia opened this issue May 3, 2020 · 5 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@celian-garcia
Copy link
Contributor

Requirements

Would like to have a dev environment ultra easy to run, without any heavy framework to run like angular or react.

  • easy to run : as easy as open an index.html file in a browser.
  • compiling fastly : I'm tired of waiting for a life all the internet to be downloaded into this node_modules zorglub...
  • easy to understand : the more easy to understand the less scary are the people to create PR

More discussion

Being not an expert on how the web is really working (without everything hidden in a framework), it would be a very good opportunity to learn more about it.

Maybe we need at least a typescript -> javascript compilation with tsc command ?
Maybe we can take this opportunity to make a bundled js file with bundle technology like webpack ?

@celian-garcia celian-garcia added documentation Improvements or additions to documentation good first issue Good for newcomers labels May 3, 2020
@Nexucis
Copy link
Contributor

Nexucis commented May 3, 2020

Webpack is basically all you need normally. It should handle the typescript transpilation and also the web dev server. Same that you have in Angular

@Nexucis
Copy link
Contributor

Nexucis commented May 3, 2020

And fyi this dev vanilla env was something I was planning to do for codeMirror ;). In case you are wondering where does it Come from

@celian-garcia
Copy link
Contributor Author

Yeah webpack seems a good candidate, I'm just planning to learn more on what is under the hood.

It has chances to end with webpack because of how it is easy to use. Hoping it's not too heavy to download let's see.
Indeed webpack has this fancy webpack-dev-server component which permit to run a bundled js file easily.

At the end everything is possible, I assume that we can run a tsc command and a tiny web server as well. Let's see what is the easier and faster to run.

@Nexucis
Copy link
Contributor

Nexucis commented May 12, 2020

@celian-garcia I linked a PR from codemirror-promql that is doing that.
If you want I can do the same here

@celian-garcia
Copy link
Contributor Author

Yeah I saw it.
I already know webpack so it's not fun, I want to use this issue to make a study and see what is existing else.
There is no urgence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants