Sha256: feeaba53f95b0645a41020f7963257b95e6872bdfe5d9760a8d0af0ac6d4deeb

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rake/testtask'

desc 'download the latest TypeScript source files'
task 'typescript:download' do
  sh 'npm', 'install', 'typescript'
end

desc 'upgrade TypeScript source files'
task 'typescript:upgrade' => %w(typescript:download) do
  dir = 'lib/typescript-src/support'
  rm_rf dir
  mkdir_p dir
  mv 'node_modules/typescript', "#{dir}/typescript"
end

Rake::TestTask.new do |test|
  test.libs << "test"
  test.test_files = FileList['test/test*.rb']
  test.verbose = true
end

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typescript-src-1.6.2.0 Rakefile
typescript-src-1.4.1.3 Rakefile