systemjs/Makefile
2014-09-27 19:18:34 +02:00

34 lines
1.0 KiB
Makefile
Executable File

START = cat lib/banner.js lib/polyfill-wrapper-start.js > dist/$@.src.js;
END = cat lib/polyfill-wrapper-end.js >> dist/$@.src.js;
SystemJS = meta register core global cjs amd map plugins bundles versions depCache
SystemCSP = scriptLoader meta register core global cjs amd map plugins bundles versions depCache
all: system system-csp uglify
uglify: system system-csp
cd dist && ../node_modules/.bin/uglifyjs system.src.js -cm --source-map system.js.map > system.js
cd dist && ../node_modules/.bin/uglifyjs system-csp.src.js -cm --source-map system-csp.js.map > system-csp.js
system:
$(START)
for extension in $(SystemJS); do \
cat lib/extension-$$extension.js >> dist/$@.src.js; \
done
for extension in $(SystemJS); do \
echo $$extension"(System);" >> dist/$@.src.js; \
done
$(END)
system-csp:
$(START)
for extension in $(SystemCSP); do \
cat lib/extension-$$extension.js >> dist/$@.src.js; \
done
for extension in $(SystemCSP); do \
echo $$extension"(System);" >> dist/$@.src.js; \
done
$(END)