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

exclude option for rice #37

Open
gertcuykens opened this issue Nov 22, 2014 · 6 comments
Open

exclude option for rice #37

gertcuykens opened this issue Nov 22, 2014 · 6 comments

Comments

@gertcuykens
Copy link

Can you add a exclude option please so I can specify which files or directories should not be in the *.rice-box.go

@GeertJohan
Copy link
Owner

Can you elaborate a bit on this request?
A box is supposed to be a set of resources that are required by the program, I think the box folder should only contain files that are required by the program.

@gertcuykens
Copy link
Author

In polymer you use the vulcanize tool to import all html, js, css files into a build.html to reduce request to the server. So for example in this static directorie https://github.com/HouzuoGuo/tiedot/tree/webjwt/webcp/static I only need bower_components, js, css and the html directorie during development when not vulcanized into a build.html. If I can exclude them it would be much easier to build a final executable that only includes the build.html and img directory if needed.

@gertcuykens
Copy link
Author

After the exclude feature, a second request would be for rice to be able to rename files in its *.rice-box.go For example rename build.html to index.html.

My final build script would then look like this

vulcanize -o static/build.html static/index.html
rice embed-go webcp.go -exclude=static/html -exclude=static/js -exclude=static/css -exclude=static/index.html -exclude=static/bower_components
rice mv-go static.rice-box.go build.html index.html
go build

@boombuler
Copy link

I would love to have that options too. Or include those files manually. To prevent minified html file in addition to the non-minified html file.

@GeertJohan
Copy link
Owner

I'm thinking about changing how rice embeds/appends boxes to a binary. Please read and comment on #47
This request sounds like a good idea for it.

@pedromorgan
Copy link

Also maybe a flag to exclude . files, eg .sass-cache etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants