0x1eef
2e8cf6e333
The directories twenty-{server,client,cli} have been renamed to not include 'twenty-'. The gems are still published with the twenty- prefix, otherwise a collision is impossible to avoid. This commit makes it slightly easier to generalize twenty.
15 lines
355 B
Ruby
15 lines
355 B
Ruby
#!/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
|