8
8
PLUGINS_DEST_FOLDER = './plugins'
9
9
PLUGIN_RELEASE_FOLDER = './releases'
10
10
11
- def build ( target , hard , ver , pack )
11
+ def build ( target , hard , ver , pack , vers )
12
12
if target . nil?
13
13
putsAccent ( 'Please define target to be built like: "rake build[./plugins/plugin.complex]"' , true )
14
14
end
15
- versions = Versions . new
15
+ versions = Versions . new ( vers )
16
16
plugin = Plugin . new ( target , versions , hard , ver , pack )
17
17
if plugin . build
18
18
puts "Plugin #{ plugin . get_plugin_name } is built SUCCESSFULLY"
@@ -23,23 +23,32 @@ def build(target, hard, ver, pack)
23
23
puts "Traget is: #{ target } "
24
24
end
25
25
26
- task :pack , [ :target , :ver ] do |_t , args |
27
- build ( args . target , false , args . ver , true )
26
+ # Does:
27
+ # - build defined plugin
28
+ # - pack plugin into chipmunk plugin package
29
+ task :pack , [ :target , :ver , :vers ] do |_t , args |
30
+ build ( args . target , false , args . ver , true , args . vers )
28
31
end
29
32
30
- task :build , [ :target , :ver ] do |_t , args |
31
- build ( args . target , false , args . ver , false )
33
+ # Does:
34
+ # - build defined plugin
35
+ task :build , [ :target , :ver , :vers ] do |_t , args |
36
+ build ( args . target , false , args . ver , false , args . vers )
32
37
end
33
38
34
- task :rebuild , [ :target , :ver ] do |_t , args |
35
- build ( args . target , true , args . ver , false )
39
+ # Does:
40
+ # - rebuild defined plugin (will drop node_modules stuff)
41
+ task :rebuild , [ :target , :ver , :vers ] do |_t , args |
42
+ build ( args . target , true , args . ver , false , args . vers )
36
43
end
37
44
38
- task :synch , [ :target ] do |_t , args |
45
+ # Does (used only for Angular plugins):
46
+ # - copy sources from angular/projects folder back to ./plugins/[plugin_name]/render folder
47
+ task :synch , [ :target , :vers ] do |_t , args |
39
48
if args . target . nil?
40
49
putsAccent ( 'Please define target to be synch like: "rake synch[./plugins/plugin.complex]"' , true )
41
50
end
42
- versions = Versions . new
51
+ versions = Versions . new ( args . vers )
43
52
plugin = Plugin . new ( args . target , versions , false )
44
53
plugin . synch
45
54
end
0 commit comments