forked from envato/zxcvbn-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (23 loc) · 710 Bytes
/
Copy pathRakefile
File metadata and controls
28 lines (23 loc) · 710 Bytes
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
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
RSpec::Core::RakeTask.new('spec')
RuboCop::RakeTask.new('rubocop')
task default: %i[spec rubocop]
task :console do
require 'zxcvbn'
require './spec/support/js_helpers'
include JsHelpers
require 'irb'
ARGV.clear
IRB.start
1
end
task :compile_coffeescript do
system('coffee --compile --bare spec/support/js_source/{matching,scoring,init}.coffee', exception: true)
system(<<~COMMAND.strip, exception: true)
cat spec/support/js_source/{matching,scoring,adjacency_graphs,frequency_lists,init}.js > spec/support/js_source/compiled.js
COMMAND
end