#!/usr/bin/env ruby ## # GET / compile '/html/react.html.erb', rep: "projects/index" do filter(:erb, locals: {src: "/js/main/projects.js"}) write('/projects/index.html') end ## # GET /js/main/projects.js compile("/js/main/projects.tsx") do filter(:webpack, depend_on: %w[/js/components/ /js/hooks/ /js/types/]) write("/js/main/projects.js") end