julienma / bridget Goto Github PK
View Code? Open in Web Editor NEWBridge Template Upload. Watch local template folder for changes, and auto-upload template to an associated Bridge dev server, through Bridge API.
Bridge Template Upload. Watch local template folder for changes, and auto-upload template to an associated Bridge dev server, through Bridge API.
Is it possible to launch the process (zip & upload) after 5 seconds instead of launging it immediately ?
This happens when downloading a zipped template from Bridge BO (/templates), which has been previously uploaded with Bridget (win32).
Chosen path was C:\Users\Test\Desktop\my-template
Json has been saved like this:
{
"C": {
"\\Users\\Test\\Desktop\\my-template": {
"c": {
"apikey": "XXX",
"template": {
"id": "1",
"name": "Template 1 (1)"
}
}
}
}
}
For easier debug :)
When I launch Bridget, I have this error:
Uncaught node.js Error
Error: The response was invalid GNTP.
at Socket. (/Users/bpetit/Desktop/Bridget-1.app/Contents/Resources/app.nw/node_modules/growler/lib/growler.js:375:23)
at Socket.g (events.js:192:14)
at Socket.EventEmitter.emit (events.js:96:17)
at net.js:358:10
at process._tickCallback (node.js:180:9)
Possible Leads:
Using a version.json file hosted on GH, pulled once a day to compare against running version?
Could be:
{
version: "1.0",
message: "blabliblo"
}
Dear julienma,
I tried to use the .command file at the same time, resulting in the creation of an Archive.zip file. The app crashed.
Can you able to fix this?
-Bastien
You already have "Bridget | Add" on the window title...
And Un-watch to Remove
And make API keys clickable from BO with "bridget:://" kind of URLs.
This would open the Add window of Bridget with the API field already filled in.
See if we can get this info from the API?
If we add a new folder, save it (the window closes itself), and then open this window to add a new folder, the state of the elements are kept the same.
It should reset so we start from fresh (as on OSX).
I have 2 watched paths:
When I do a change on the 2nd directory, it's detected, but it's the 1st template which is uploaded.
Fix: make sure that we compare the whole path.
Need to find workarounds for OS-specific features, like current use of cURL and zip.
Also check how to package node-webkit for windows.
OS: Win7 x64
In the "Bridget Add" window, after clicking save, the 1st message box displays this error:
Error: ENOENT, open 'S:\Temp\nw3808_14093\undefined\.bridget_settings.json'
So we can reduce the size of uploaded zip.
With usage instructions and download links.
Ex. http://apps.shopify.com/desktop-theme-editor
It will be nice to add an option to enable/disabled auto zipping & uploading (like a checkbox or something else to check if we want to auto uploading&zipping or not).
Thanks
However it works fine when using the .nw through latest node-webkit.app.
Have reported the issue to node-webkit, waiting for a comment: nwjs/nw.js#335
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.