Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (38 sloc) 1.194 kb
61b2ecf initial commit
Karol Balejko authored
1 Modules Manager Grails Plugin
2 ==============================
3
0cb1a2d readme update
Karol Balejko authored
4 Creates resources modules using packaged resources from maven central repository. Script consume jar packaged web js/css resources and produce resources DSL with web-app assets.
5
6
61b2ecf initial commit
Karol Balejko authored
7 Usage
8 =====
9
10 Define js & css dependency.
11
12 grails-app/config/BuildConfig.groovy :
13
14 ...
15 dependencies {
16 compile 'org.webjars:bootstrap:2.1.1'
17 compile 'org.webjars:backbonejs:0.9.2'
18 compile 'org.webjars:jquery-mobile:1.2.0'
19 }
20 ...
21
22 Create resources modules
23
24 grails refresh-modules
25
26 Manager will create config/Modules**Resources.groovy and js/css files in web-app/modules/
27
c085517 readme update
Karol Balejko authored
28 To re-create and force override resources modules
61b2ecf initial commit
Karol Balejko authored
29
30 grails refresh-modules --force
31
e1a83ab config improvements
Karol Balejko authored
32 Configuration
33 =============
34
35 conf/BuildConfig.groovy
36
37 ...
38 modules {
39
40 // Trigger modules refresh on project compile
41 refreshOnCompile = true
42
43 // force override resources modules on refresh on compile
44 forceOverride = true
45
46 }
47 ...
48
61b2ecf initial commit
Karol Balejko authored
49
50 Note
51 ====
52
c085517 readme update
Karol Balejko authored
53 Module manager only support web resources from webjars.org
61b2ecf initial commit
Karol Balejko authored
54
55
56 History
57 =======
58
ba30a7e fix
Karol Balejko authored
59 0.2.1 Fix java.lang.StackOverflowError
1995817 readme update
Karol Balejko authored
60
e1a83ab config improvements
Karol Balejko authored
61 0.2.0 Improvements
ba30a7e fix
Karol Balejko authored
62
63 0.1.0 Initial version
Something went wrong with that request. Please try again.