Coder Social home page Coder Social logo

emtecinc / single-spa-backbone Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 1.0 862 KB

single-spa backbone plugin

License: MIT License

JavaScript 100.00%
single-spa single-spa-backbone single-spa-plugin backbone microfrontend microfrontends singlespa

single-spa-backbone's Issues

Move documentation to single-spa.js.org?

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.

Webpack integration

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.

npm and github permissions

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.