-
Notifications
You must be signed in to change notification settings - Fork 11
/
build-js.sh
executable file
·44 lines (41 loc) · 3.29 KB
/
build-js.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env sh
FILES="vendor/twbs/bootstrap-sass/assets/javascripts/bootstrap.js \
vendor/mopa/bootstrap-bundle/Mopa/Bundle/BootstrapBundle/Resources/public/js/mopabootstrap-subnav.js \
vendor/moment/moment/min/moment.min.js \
vendor/moment/moment/locale/fr.js \
vendor/sidus/eav-bootstrap-bundle/Resources/public/js/datetime.picker.js \
vendor/eonasdan/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js \
vendor/blueimp/jquery-file-upload/js/jquery.fileupload.js \
vendor/blueimp/jquery-file-upload/js/jquery.fileupload-jquery-ui.js \
vendor/blueimp/jquery-file-upload/js/jquery.iframe-transport.js \
vendor/sidus/file-upload-bundle/Resources/public/js/jquery.fileupload.sidus.js \
vendor/pinano/select2-bundle/Pinano/Select2Bundle/Resources/public/js/select2.min.js \
vendor/pinano/select2-bundle/Pinano/Select2Bundle/Resources/public/js/i18n/fr.js \
vendor/sidus/eav-bootstrap-bundle/Resources/public/js/autocomplete.selector.js \
vendor/sidus/eav-bootstrap-bundle/Resources/public/js/autocomplete.combo.selector.js \
vendor/sidus/eav-bootstrap-bundle/Resources/public/js/bootstrap.collection.js \
vendor/sidus/eav-bootstrap-bundle/Resources/public/js/sortable.collection.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.autoload.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.bootstrap.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.datepickers.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.edit-inline.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.embed-multi-family.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.global.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.lightbox.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.pagination.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.selectall.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.sortable-collections.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/initialization/init.wysiwyg.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/navigation/autoclose.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/navigation/automodal.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/navigation/navigation.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/navigation/navigation.lock.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/forms/better.tabs.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/forms/input.picker.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/forms/media.browser.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/datagrid/datagrid.updater.js \
vendor/cleverage/eav-manager/LayoutBundle/Resources/javascript/lib/ajax.navigation.js"
# Dev output
cat ${FILES} > vendor/cleverage/eav-manager/LayoutBundle/Resources/public/js/build-$(date +"%Y%m%d").js
# Production output
uglifyjs --compress --mangle -o vendor/cleverage/eav-manager/LayoutBundle/Resources/public/js/build-$(date +"%Y%m%d").min.js ${FILES}