Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating docs

  • Loading branch information...
commit dc36eebe820b6862775fa899b160e13700a1e587 1 parent fba17c3
@davydotcom davydotcom authored
View
6 AssetPipelineGrailsPlugin.groovy
@@ -44,7 +44,9 @@ class AssetPipelineGrailsPlugin {
try {
manifestFile = application.getParentContext().getResource("assets/manifest.properties")
} catch(e) {
- println "Unable to find asset-pipeline manifest, etags will not be properly generated"
+ if(application.warDeployed) {
+ log.warn "Unable to find asset-pipeline manifest, etags will not be properly generated"
+ }
}
if(manifestFile?.exists()) {
try {
@@ -52,7 +54,7 @@ class AssetPipelineGrailsPlugin {
application.config.grails.assets.manifest = manifestProps
} catch(e) {
- println "Failed to load Manifest"
+ log.warn "Failed to load Manifest"
}
}
View
2  application.properties
@@ -1,3 +1,3 @@
#Grails Metadata file
#Tue Feb 11 12:26:41 EST 2014
-app.grails.version=2.3.8
+app.grails.version=2.4.2
View
4 grails-app/conf/BuildConfig.groovy
@@ -18,6 +18,10 @@ grails.project.dependency.resolution = {
dependencies {
runtime 'org.mozilla:rhino:1.7R4'
runtime 'commons-io:commons-io:2.2'
+ //Temporary inclusion due to bug in 2.4.2
+ compile("cglib:cglib-nodep:2.2.2") {
+ export = false
+ }
}
plugins {
View
2  src/docs/guide/introduction.gdoc
@@ -23,6 +23,8 @@ h3. Additional Information
h3. Release History
+* July 11, 2014
+** 1.9.3 Release - Fixed ETag Headers for non-digested files, and updated project docs.
* July 10, 2014
** 1.9.2 Release - Fixed bug in cache manager, updated docs.
** 1.9.1 Release - Added commons-io dependency for more recent versions of grails.
View
9 src/docs/guide/usage.gdoc
@@ -43,6 +43,15 @@ grails.assets.plugin."twitter-bootstrap".includes = ["bootstrap.less"]
The above will tell asset-pipeline not to precompile less files individually within the twitter-bootstrap plugin, but will compile bootstrap.less.
+h4. Partials
+
+Another piece of information to know is that files that are prefixed with @_@ Are not compiled individually by the asset-pipeline. These files are considered partials and should be required into another manifest file for compilation.
+If, in the event, you need to add these files back to the precompile phase you can define a global includes property like so.
+
+{code}
+grails.assets.includes = ["**/_*.*"]
+{code}
+
h3. Including Assets in Views
Asset pipeline provides several new tag libs for including JavaScript and CSS into your GSP files. For example:
View
8 src/groovy/asset/pipeline/AssetCompiler.groovy
@@ -212,6 +212,8 @@ class AssetCompiler {
if(excludeRules[key]) {
excludes += excludeRules[key]
}
+ println "Getting Excludes for Path ${key} - ${excludes}"
+
return excludes.unique()
}
@@ -222,6 +224,7 @@ class AssetCompiler {
def filesToProcess = []
assetPaths.each { key, value ->
+
scanner.setExcludes(getExcludesForPathKey(key) as String[])
scanner.setIncludes(["**/*"] as String[])
for(path in value) {
@@ -229,6 +232,9 @@ class AssetCompiler {
scanner.setCaseSensitive(false)
scanner.scan()
filesToProcess += scanner.getIncludedFiles().flatten()
+ if(key == 'twitter-bootstrap') {
+ println "Found Files in twitter: ${scanner.getIncludedFiles().flatten()}"
+ }
}
scanner.setExcludes([] as String[])
@@ -246,7 +252,7 @@ class AssetCompiler {
}
filesToProcess.unique()
-
+ println "Files to Process\n===========================\n\n${filesToProcess}"
return filesToProcess //Make sure we have a unique set
}
Please sign in to comment.
Something went wrong with that request. Please try again.