dolphins7.skeleton/client/nanoc/rules/projects.rules
0x1eef 2e8cf6e333 Drop 'twenty-' prefix from toplevel directories
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.
2024-04-21 20:11:25 -03:00

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