forked from dequelabs/axe-core-gems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (26 loc) · 821 Bytes
/
Rakefile
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
# bootstrap
desc "bootstrap all packages"
task :bootstrap, [:pkg] do |t, args|
sh "bash ./scripts/run-cmd.sh 'bundle install' #{args[:pkg]}"
sh "bash ./scripts/run-cmd.sh 'npm install' 'axe-core-api'"
end
# test
desc "Unit test all packages"
task :test_unit, [:pkg] do |t, args|
sh "bash ./scripts/run-cmd.sh 'bundle exec rake test_unit' #{args[:pkg]}"
end
# build
desc "Build all packages"
task :build, [:pkg] do |t, args|
sh "bash ./scripts/run-cmd.sh 'bundle exec rake build' #{args[:pkg]}"
end
# format
desc "format code in all packages"
task :format, [:pkg] do |t, args|
sh "bash ./scripts/run-cmd.sh 'bundle exec rake format' #{args[:pkg]}"
end
# pre publish
desc "publish all packages"
task :publish, [:pkg] do |t, args|
sh "bash ./scripts/run-cmd.sh 'bundle exec rake publish' #{args[:pkg]}"
end