emtecinc / single-spa-backbone Goto Github PK
View Code? Open in Web Editor NEWsingle-spa backbone plugin
License: MIT License
single-spa backbone plugin
License: MIT License
Hi there @emtecinc,
Thanks for creating and maintaining this project. I'd like the entire single spa community to be aware of this project, use it, and contribute to it. Would you be interested in your project being linked to from single-spa.js.org? Also, we've recently been making an effort to move all documentation from individual readmes into single-spa.js.org. Would you be interested in that happening for single-spa-backbone?
If so, I'm happy to make PRs to move the docs over.
Hi!
I'm trying to apply single-spa to an existing Backbone app and, after that, define another single-spa app with another technology.
My existing app has whole Backbone project compiled with Webpack and I'm trying to configure the singleSpaBackbone strategy with Production build configuration like this:
import singleSpaBackbone from '@emtecinc/single-spa-backbone';
const backBoneLifecycles = singleSpaBackbone({
BasePath: './',
App:
{
AppPath: 'src/backbone'
},
DomElementSetter: domElementSetter
});
export const bootstrap = [
backBoneLifecycles.bootstrap,
];
export const mount = [
backBoneLifecycles.mount,
];
export const unmount = [
backBoneLifecycles.unmount
];
function domElementSetter() {
//use the same element to render into in the backbone app
let el = document.getElementById('app-placeholder');
if (!el) {
el = window.document.createElement('div');
el.id = 'app-placeholder';
document.body.appendChild(el);
}
}
This file is in a src/backbone folder in my project.
When I launch my app I can see a script HTML tag like:
<script src="/src/backbone"></script>
This has no sense because is a project folder, and I only serve the build folder generated by Webpack.
Besides that, I want to know if is possible to not include any script tag with singleSpaBackbone and let Webpack to include the required tags by itself.
Thank you sou much.
Hi there,
Could you give me access on Github and npm so that I can help maintain this project?
For npm you just run this in the console:
npm owner add joeldenning @emtecinc/single-spa-backbone
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.