Grails AngularJS Plugin
Groovy CSS HTML JavaScript Batchfile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
docs
grails-app
src/docs/guide
test
web-app
.classpath
.gitignore
.project
AngularjsResourcesGrailsPlugin.groovy
LICENSE
NOTICE
README.md
application.properties
build_trim-whitespace.xml

README.md

Grails AngularJS Resources Plugin

This plugin adds AngularJS resources to a Grails Application.

It uses Grails Resources Plugin to handle resources gracefully. Just let your AngularJS resources (services, controllers etc.) depend on 'angular' module and it's done.

There is also controller for AngularJS scenario testing. Just navigate to <app>/nge2e/<scenario-module-name> to see the results. The scenario module must depend on 'angular-scenario'.

The plugin serves minified version for environments other than development. If jQuery plugin is installed it automatically depends on it (inspired by great Grails Twitter Bootstrap Plugin).

Installation

In BuildConfig.groovy of the webapp, under the plugins section (at the end of the file) add:

runtime ":angularjs-resources:<version>"

then run grails refresh-dependencies, grails clean , then grails compile , and the plugin should be installed. In case of Errors during plugin installation, Set log level to 'warn' in BuildConfig.groovy to get more information, and retry. Instead of the compile it's possible even to use runtime, and in that case simply running a grails console should be enough.

Documentation

See the Plugin documentation (sources under src/docs/), or the "live" version here: grails-angularjs-resources docs

Home Page for the project (and sources) on GitHUB: grails-angularjs-resources

Usage

See the inline test web application (sources under test/webapp/) here: grails-angularjs-resources-test

License

Licensed under the terms of the Apache License, Version 2.0