Upgrade to backbone 0.9.1 and underscore 1.3.1
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 30/100
- Issue-Typ
- Refactoring
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- express, javascript
- Bereich
- full-stack, web-dev
Rechercherichtung
Überprüfe zuerst package.json, bones.js und plugin.js und untersuche anschließend die Beispielanwendung auf Kompatibilitätsprobleme. Verifiziere die Abhängigkeitsversionen und die drei im Issue beschriebenen Kernänderungen und bestätige, dass die Beispielanwendung mit den aktualisierten Backbone- und Underscore-Versionen funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi - we've just put a few hours into upgrading our forked copy of bones to work with backbone 0.9.1 (latest) and underscore 1.3.1.
I'll attempt to add a patch to this comment, but the highlights follow below:
- Obviously the versions need to be bumped in Package.json
-
"underscore": "1.1.x", -
"underscore": "1.3.x", "express": "2.4.4", -
"backbone": "0.5.1", -
"backbone": "0.9.1",
- in bones.js, set the server side jquery library into the imported backbone. Backbone now requires $ to be set, and the previous version was not loading it.
bones.js:
exports.Backbone = require('bones/server/backbone');
+exports.Backbone.setDomLibrary(exports.$);
- In plugin.js around lines 56/55 templates must now be passed to the client as a variable, as they're hidden using closure in the new _.template method.
-
content: 'template = ' + module.exports + ';' -
// client must now pass escaped template content over, as _ makes it a hidden closure var -
content: 'var content = \''+escape(content)+'\';template = _.template(unescape(content));'
There are some changes to the example app that need to be made to work with these, but these 3 items are the show stoppers and only changes to the bones project core that we needed to make things work again. We made changes in our own app rather than updating the example, so unfortunately I can't share those, but the above should work as a leg up for anyone starting to upgrade the backbone version.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 481
- Forks
- 39
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus developmentseed/bones
-
60173365249Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 5/100
developmentseed/bones#78 ·
-
Update documentationOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
developmentseed/bones#77 · 3 Kommentare ·
-
Listening addressOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 25/100
developmentseed/bones#76 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
developmentseed/bones#75 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
developmentseed/bones#73 ·
Alle Issues in developmentseed/bones
Ähnliche Issues
-
FEATURE REQUEST
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
linuxmint/cinnamon-spices-applets#9356 ·
Maintainer antworten meist innerhalb von 1 Tag
-
os.networkInterfaces() can throw and crash the process when listening on 0.0.0.0Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage Platform(Default)
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Local proof does not compare the SDK loader's data-campaign between proven and production buildsOffenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
NextCommerceCo/campaigns-os#819 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag