Giter Club home page Giter Club logo

sbt-resource-management's People

Contributors

farmdawgnation avatar lukaszlenart avatar riveramj avatar shadowfiend avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sbt-resource-management's Issues

Expected end of input running any resources: command

Hey,

I followed the install readme, running the 1.2 and master versions and also did a publish-local to get a 1.3-SNAPSHOT (on the offchance that some other result ended up happening) but I always end up getting "Expected end of input" trying to run any command with "resources:{command}".

running scala 2.9.1 and sbt 0.11.3-2

Not sure what other info to give that would be of use up front.

Update sbt-resource-management or abandon?

Hi there,

As most of y'all know, here at Elemica we use sbt-resource-management. Trick is, we want to upgrade to the latest sbt (1.3.9) and right now have to figure out whether to update sbt-resource-management or, well, do something else.

For some reason I have a note that links to this project but says "better to use grunt instead of rewrite sbt-resource-management". Sadly, I didn't write down why we should use grunt.

Any ideas or suggestions here?

Part of me thinks that we should update sbt-resource-management to sbt 1.3.9 because it's what we're currently using. It's how our markup connects to JavaScript and CSS ergo, moving away from sbt-resource-management implies quite a bit of work (like reworking of all of our markup).

On the other hand, maybe the aforementioned reworking is worth it. Heck, maybe one of y'all are the ones who suggested using grunt instead.

I figured I'd check in before starting The Production™️ :)

Thanks!

SBT Plugin Install: End of Input

Currently having an issue (similar to a previous closed issue, but rebooting does nothing) where I am getting the following error:

all> resources:compile-sass
[error] Expected end of input.
[error] resources:compile-sass
[error]

Any ideas what would be causing this?

Implement the ability to reference URLs in bundles.

While tossing around ideas about how to improve pulling in external libraries when using sbt-resource-management, we came up with the idea of referencing libraries by URL in the bundle file. Such as:

base
http://code.jquery.com/jquery-2.1.3.min.js
my-thing.js

When copying scripts, sbt-resource-management would fetch jquery-2.1.3.min.js and stick it in the target JS folder which is, in theory, outside of source control. This prevents the need to manually download an external script into source control in your project.

Snippet causes templating to stop

Hey there,
I ran into a weird problem earlier today using Lift 2.5.0-SNAPSHOT & Scala 2.10

It turns out that if the lift:style-bundle / lift:script-bundle tags do not have a body (e.g. <lift:style-bundle name="base" /> ), templating will be stopped after the first such call to your snippet.

Query String for cache-busting

First of all, thanks for publishing this. I've been working on something that would be similar to this (I was basing it on Jammit), but haven't gotten very far into it and I think I'll just use this instead.

However, there is one small thing I'd like to address: some proxies don't cache items with a query string. Quoting google in the recommendations section:

Don't include a query string in the URL for static resources.
Most proxies, most notably Squid up through version 3.0, do not cache resources with a "?" in their URL even if a Cache-> control: public header is present in the response. To enable proxy caching for these resources, remove query strings from references to static resources, and instead encode the parameters into the file names themselves.

Basically, you need to rename the file instead of using a query string for it to be cached when behind one of those proxies. This probably represents a small number of users, but it may still be worth addressing.

What are your thoughts on this?

Undefined settings errors and how to override the default paths

Trying to get up and running I've come across a couple of issues.

The breaker right now is:

[error] References to undefined settings:
[error]
[error] *:aws-s3-bucket from resources:compile-sass
[error]
[error] *:aws-access-key from resources:deploy-scripts
[error]
[error] *:aws-secret-key from resources:deploy-scripts
[error]
[error] *:aws-s3-bucket from resources:deploy-scripts
[error]
[error] *:aws-access-key from resources:deploy-styles
[error]
[error] *:aws-secret-key from resources:deploy-styles
[error]
[error] *:aws-s3-bucket from resources:deploy-styles

trying to boot from my project with default plugin settings.

The second is I can't figure out how you go about overriding the default paths as the syntax seems to be different to other plugins I've used in the path that follow the:

(scriptDirectories in ResourceCompile) <<= (webappResources in Compile) {
_ / "webapp" / "res" / "app" / "lib"
}

type notation

Thanks

We're not dropping coffee scripts in subdirectories of that JS target when we should.

Provided that you have two folders, coffeescript-root where your coffee scripts are located and javascript-root where the compiled JS files are sent, if you stick your coffee script file in coffeescript-root/a/awesome.coffee it is placed in javascript-root/awesome.js.

We should, instead, properly place things in correctly named subdirectories. So in the example above, awesome.js should have a path of javascript-root/a/awesome.js.

The copy-scripts task does not watch javascript files.

It would seem that running sbt ~resources:copy-scripts will watch coffeescript sources, but won't watch javascript sources - meaning that I have to restart the plugin each time I make a change to a javascript file in the source path.

/n /n /n

Three new lines throws the bundles for a loop. this should just squash to two new lines and move on

Typo in README

On line 190 it says

sbt resources:deploy-css

Should instead say:

sbt resources:deploy-styles

Bundle Mixins

It would be useful to have the concept of bundle mixins, like you would with SASS. I don't know if these should have a special designation so that they don't exist as their own bundle, or if they should be a bundle in their own right. Either way, it would be very, very useful.

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.