Skip to content
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

Proposal: steal-export standalone bundle configuration option. #538

Closed
frank-dspeed opened this issue Nov 1, 2016 · 7 comments
Closed

Comments

@frank-dspeed
Copy link
Contributor

We will add some extra options for the standalone method of steal-tools.export

Current export standalone produces a single.js file with all in it as define.

with the new options we can now tell it

{
   canSingle: true,
   componentsSingle: true,
   copyFiles:true
}

we can produce a result like:

dist/components/comp1.js
dist/components/comp2.js
dist/components/comp3.js
dist/vendor/steal-stache
dist/vendor/can-component
dist/vendor/can-control

So this scripts can be added to any html via script tags

the copy files options would copy the stache templates and css files also so its like a build we could mabe later add this to build also and generate a extra html snippet for loading that also but i think all that goes much much to far

@frank-dspeed
Copy link
Contributor Author

#516

@frank-dspeed
Copy link
Contributor Author

#512

@frank-dspeed
Copy link
Contributor Author

got a depgraph ? #446

@matthewp
Copy link
Member

matthewp commented Nov 4, 2016

+standalone is supposed to be standalone, hence its name :) You can kind of already do this with +global-js, but I think that doesn't create separate exports for your dependencies. If the goal is split all dependencies into their own scripts, I think that can be done with a new helper (I'm not sure what you should call it though).

@frank-dspeed
Copy link
Contributor Author

We can close this this is not do able without Refactoring will refactor steal tools complet and will let steal work as it works.

@frank-dspeed
Copy link
Contributor Author

i will make a new project called: steal-tools-plus that will simply inhire the original steal tools and add some extra stuff like export as production html or wordpress and joomla plugin

i also created generator-steal wich will configure build.js for steal-tools and steal-tools-plus

@matthewp
Copy link
Member

matthewp commented Nov 7, 2016

I don't think this would require much of a refactor, but if you'd prefer to fork that's cool too.

@matthewp matthewp closed this as completed Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants