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

Run app without "compiling" #182

Open
4 tasks
jwkvam opened this issue Jan 4, 2018 · 1 comment
Open
4 tasks

Run app without "compiling" #182

jwkvam opened this issue Jan 4, 2018 · 1 comment

Comments

@jwkvam
Copy link
Owner

jwkvam commented Jan 4, 2018

I tried to follow best practices when creating Bowtie which led me down the path of using yarn and webpack to fetch and bundle up the app. I don't necessarily want to deviate too much from this but it does create a poorer user experience compared to a package that just let's you run the app directly.

I am thinking that if I can just translate *.jsx files and grab js libraries from cdns that this could be possible.

  • create a new command e.g. run
  • create links for packages in packages.json from unpkg.com
  • translate jsx to js with babel
  • insert sources into index.html

Update: Putting this on hold for now, since I'm not sure how technically feasible it is. In the mean time building apps has been optimized, especially for subsequent builds. I've also added a run command that combines building and serving into one command.

@jwkvam jwkvam added this to the 1.0 milestone Jan 4, 2018
@jwkvam jwkvam removed this from the 1.0 milestone Feb 9, 2018
@jwkvam
Copy link
Owner Author

jwkvam commented Feb 19, 2018

Thought about this again. I think the best thing to do is compile a HUGE bundle that combines all the js libraries used by bowtie. It would be a little ugly having a 1mb binary blob in the repo, but I think the overall ux outweighs that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant