-
Notifications
You must be signed in to change notification settings - Fork 18
/
bootstrap.rb
executable file
·40 lines (31 loc) · 994 Bytes
/
bootstrap.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env ruby
puts "Spree Ember: Bootstrapping Development Environment."
system "npm install"
puts "Spree Ember: Creating NPM Links between packages."
spree_ember = Dir.pwd
# Setup Core Dependencies
Dir.chdir "./packages/core"
system "npm install && bower install"
system "npm link"
Dir.chdir spree_ember
# Setup Checkouts Dependencies
Dir.chdir "./packages/checkouts"
system "npm link spree-ember-core"
system "npm install && bower install"
system "npm link"
Dir.chdir spree_ember
# Setup Main Package Dependencies
Dir.chdir "./packages/storefront"
system "npm link spree-ember-core"
system "npm link spree-ember-checkouts"
system "npm install && bower install"
system "npm link"
Dir.chdir spree_ember
# Setup Auth Dependencies
Dir.chdir "./packages/auth"
system "npm link spree-ember-core"
system "npm link spree-ember-storefront"
system "npm install && bower install"
system "npm link"
Dir.chdir spree_ember
puts "Spree Ember: Done setting up local packages for development."