Sha256: 67f5c09c4a5557ba12fd5a3d1b5d49e6397151cbeaa75716bff7c843b146e2c6

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

require "bundler/gem_tasks"
require "ts_assets"

namespace :test do
  desc 'generate asset.tsx for testing'
  task :ts_assets do
    TS_ASSETS_FILENAME = "__tests__/build/assets.tsx"
    source = TsAssets.generate(include: "__tests__/assets/images", es_module_interop: true)
    File.write TS_ASSETS_FILENAME, source
  end
end

task :test => ['test:ts_assets'] do
  sh 'npm', 'test'
end

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ts_assets-1.1.1 Rakefile
ts_assets-1.1.0 Rakefile