Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorJacques Erasmus <jerasmus@gitlab.com>2019-10-15 01:13:40 +0300
committerEvan Read <eread@gitlab.com>2019-10-15 01:13:40 +0300
commit21cc1fef11349417ed515557748369cfb235fc81 (patch)
tree80d2aa5f80f77da64871987030f47e3c14492b66 /Rules
parent179a601f70c3ca693911895814b271130d68df4a (diff)
Add support for modern JS
Added rollup to the project
Diffstat (limited to 'Rules')
-rw-r--r--Rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rules b/Rules
index 4d3a338f..01758249 100644
--- a/Rules
+++ b/Rules
@@ -105,7 +105,7 @@ end
# Do not compile minified assets
passthrough '/**/*.min.*'
-compile '/**/*.js' do
+compile '/assets/javascripts/*.js' do
filter :erb
write item.identifier.without_ext + '-v' + rep.item[:version].to_s + '.js'
end
@@ -147,3 +147,7 @@ layout '/**/*', :erb
# Leave the favicon alone.
passthrough '/favicon.ico'
+
+postprocess do
+ system('nanoc frontend')
+end