Skip to content
Browse files

fixed plugin name in resources

  • Loading branch information...
1 parent 049f972 commit 6159699137460e148ef03a42c920679f4e7d5518 @musketyr musketyr committed
View
71 AngularjsGrailsPlugin.groovy
@@ -1,71 +0,0 @@
-class AngularjsGrailsPlugin {
- // the plugin version
- def version = "0.2.1"
- // the version or versions of Grails the plugin is designed for
- def grailsVersion = "1.3.7 > *"
- // the other plugins this plugin depends on
- def dependsOn = ['resources':'1.0 > *']
- // resources that are excluded from plugin packaging
- def pluginExcludes = [
- "grails-app/views/error.gsp"
- ]
-
- // TODO Fill in these fields
- def title = "AngularJS Plugin" // Headline display name of the plugin
- def author = "Vladimír Oraný"
- def authorEmail = "vladimir.orany@appsatori.eu"
- def description = '''\
-Angular JS resources plugin. Uses 0.9.19 canine-psychokinesis release.
-'''
-
- // URL to the plugin's documentation
- def documentation = "http://grails.org/plugin/angularjs"
-
- // Extra (optional) plugin metadata
-
- // License: one of 'APACHE', 'GPL2', 'GPL3'
-// def license = "APACHE"
-
- // Details of company behind the plugin (if there is one)
-// def organization = [ name: "My Company", url: "http://www.my-company.com/" ]
-
- // Any additional developers beyond the author specified above.
-// def developers = [ [ name: "Joe Bloggs", email: "joe@bloggs.net" ]]
-
- // Location of the plugin's issue tracker.
-// def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPMYPLUGIN" ]
-
- // Online location of the plugin's browseable source code.
-// def scm = [ url: "http://svn.grails-plugins.codehaus.org/browse/grails-plugins/" ]
-
- def doWithWebDescriptor = { xml ->
- // TODO Implement additions to web.xml (optional), this event occurs before
- }
-
- def doWithSpring = {
- // TODO Implement runtime spring config (optional)
- }
-
- def doWithDynamicMethods = { ctx ->
- // TODO Implement registering dynamic methods to classes (optional)
- }
-
- def doWithApplicationContext = { applicationContext ->
- // TODO Implement post initialization spring config (optional)
- }
-
- def onChange = { event ->
- // TODO Implement code that is executed when any artefact that this plugin is
- // watching is modified and reloaded. The event contains: event.source,
- // event.application, event.manager, event.ctx, and event.plugin.
- }
-
- def onConfigChange = { event ->
- // TODO Implement code that is executed when the project configuration changes.
- // The event is the same as for 'onChange'.
- }
-
- def onShutdown = { event ->
- // TODO Implement code that is executed when the application shuts down (optional)
- }
-}
View
54 grails-app/conf/AngularjsPluginResources.groovy
@@ -1,54 +0,0 @@
-def dev = grails.util.GrailsUtil.isDevelopmentEnv()
-def applicationContext = org.codehaus.groovy.grails.commons.ApplicationHolder.application.mainContext
-def jqueryPlugin = applicationContext.pluginManager.getGrailsPlugin('jquery')
-
-def jsFile = dev ? "angular.js" :"angular.min.js"
-
-modules = {
- 'angular' {
- defaultBundle 'angular'
- if(jqueryPlugin){
- dependsOn 'jquery'
- }
- resource id: 'angular', url:[plugin: 'angularjs', dir:'js/angular', file: jsFile], nominify: !dev
- }
-
- 'angular-autobind' {
- defaultBundle 'angular'
- dependsOn 'angular'
- resource url:[plugin: 'angularjs', dir:'js/angular', file: 'angular-manual.js'], nominify: true
- }
-
- 'angular-mock' {
- resource url:[plugin: 'angularjs', dir:'js/angular', file:"angular-mocks.js"]
-
- }
-
- 'angular-scenario' {
- resource url:[plugin: 'angularjs', dir:'js/angular', file:"angular-scenario.js"], attrs: ['ng:autotest': true]
-
- }
-
- 'angular-services'{
- dependsOn 'angular'
- defaultBundle 'angular'
- }
-
- 'angular-controllers'{
- dependsOn 'angular-services'
- defaultBundle 'angular'
- }
-
- 'angular-filters'{
- dependsOn 'angular-controllers'
- }
-
- 'angular-widgets'{
- dependsOn 'angular-filters'
- defaultBundle 'angular'
- }
-
-
-
-
-}
View
8 grails-app/conf/AngularjsResourcesPluginResources.groovy
@@ -10,22 +10,22 @@ modules = {
if(jqueryPlugin){
dependsOn 'jquery'
}
- resource id: 'angular', url:[plugin: 'angularjs', dir:'js/angular', file: jsFile], nominify: !dev
+ resource id: 'angular', url:[plugin: 'angularjs-resources', dir:'js/angular', file: jsFile], nominify: !dev
}
'angular-autobind' {
defaultBundle 'angular'
dependsOn 'angular'
- resource url:[plugin: 'angularjs', dir:'js/angular', file: 'angular-manual.js'], nominify: true
+ resource url:[plugin: 'angularjs-resources', dir:'js/angular', file: 'angular-manual.js'], nominify: true
}
'angular-mock' {
- resource url:[plugin: 'angularjs', dir:'js/angular', file:"angular-mocks.js"]
+ resource url:[plugin: 'angularjs-resources', dir:'js/angular', file:"angular-mocks.js"]
}
'angular-scenario' {
- resource url:[plugin: 'angularjs', dir:'js/angular', file:"angular-scenario.js"], attrs: ['ng:autotest': true]
+ resource url:[plugin: 'angularjs-resources', dir:'js/angular', file:"angular-scenario.js"], attrs: ['ng:autotest': true]
}

0 comments on commit 6159699

Please sign in to comment.
Something went wrong with that request. Please try again.