Files
atom/script/copy-files-to-bundle
Kevin Sawicki 858f58da97 Precompile less files to css during build
This mirrors the CSON to JSONS compilation step.

Closes #440
2013-03-26 12:05:12 -04:00

16 lines
520 B
Bash
Executable File

#!/bin/sh
# This can only be run by xcode or xcodebuild!
set -e
COMPILED_SOURCES_DIR="${1}"
RESOUCES_PATH="$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
# Copy non-coffee files into bundle
rsync --archive --recursive \
--exclude="src/**/*.coffee" --exclude="src/**/*.cson" \
--exclude="src/**/*.less" --exclude="static/*.less" \
--exclude="node_modules/less" \
node_modules src static vendor spec benchmark themes dot-atom atom.sh \
"${COMPILED_SOURCES_DIR}/" "$RESOUCES_PATH"