-
Notifications
You must be signed in to change notification settings - Fork 27
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
Port to browser #51
Comments
This task is just to get tedit basic functionality working in the latest stable browsers. This means for sure, stable Chrome and stable Firefox. Also if it's not too hard, support for IE 11 and latest mobile Safari. (as well as android firefox and chrome). |
I tried to use the Live Export to Disk for the firefox version, but I guess this doesn't work at the moment... ? |
https://tedit.creationix.com/ is a deployment of the web version. There shouldn't be an export to disk option since browsers don't have that API. What are you trying to do exactly? |
Sorry, maybe my explanation wasn't clear. I tried to get the FxOS version
exported, but for some reason this fails. Is this possible?
|
Ahh, the FxOS version wasn't finished if I remember correctly. Also I think the APIs may have changed since I worked on this. |
First thing: Absolutely incredible work with Tedit. I wholeheartedly agree that programming should be much easier to dive into than it is. I've also been trying to build tools to make it easier.
Shouldn't it be possible to somehow form a tarball or something and offer that as a download (all client-side)? Also, I'm a bit confused as to how to hack onto Tedit and export it to the browser. What is the process there? |
The easiest path is to install the chrome app version and then export to disk the version you want to build. To do this, mount the tedit repo in tedit and right click on this folder and export to disk https://github.com/creationix/tedit/tree/master/build/app/fxos |
Cool, thanks!! |
What is the fxos version exactly? When I try to export that version I get the error, "Can't find tedit/build/app/fxos/src/prefs.js". If I want to run this in the browser similarly to https://tedit.creationix.com/, shouldn't I export the |
The web version needs to be hosted from a web server. You can run it as a https://github.com/creationix/wheaty On Thu, May 21, 2015 at 2:47 PM, Tim Burgess [email protected]
|
What would be the easiest way to run this within an existing var httpProxy = require('http-proxy');
var proxy = httpProxy.createProxyServer({});
app.use('/tedit/*', function (req, res, next) {
proxy.web(req, res, {target: 'http://127.0.0.1:8002'});
}); |
Since wheaty is essentially a glorified static site generator, you could just use the export feature and then serve it as a static asset I think. But yes, running wheaty behind a reverse proxy works too. That's how I have it deployed behind nginx currently. |
That's what I figured, but I get this error (in clientside console) when trying to load it: I'm guessing I'm missing some step along the way that properly generates the |
Hmm, maybe tedit was never updated to the new wheaty style of file generation. You can try running a local wheaty server and then capturing all the generated files? There should be a list of everytginh needed in the output of the dynamic appcache. |
How difficult do you think it would be to make |
Also, what is the difference between Sorry for all the questions! As soon as I get a handle on how everything works I should be out of your hair. I think |
wheaty isn't a module loader, it's a build system. You can probably On Thu, May 21, 2015 at 5:31 PM, Tim Burgess [email protected]
|
The src folder is tedit, the others were experimental forks/rewrites that I On Thu, May 21, 2015 at 5:38 PM, Tim Burgess [email protected]
|
No description provided.
The text was updated successfully, but these errors were encountered: