Changeset 7039 for SRUAggregator


Ignore:
Timestamp:
07/18/16 21:55:30 (8 years ago)
Author:
Leif-Jöran
Message:

Don't transpile the jsx files unless they are changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUAggregator/trunk/build.sh

    r7036 r7039  
    7171        echo; echo "---- jsx"
    7272        for f in $JSDIR/*.jsx; do
    73             echo $f;
    74             node_modules/.bin/browserify -t [ babelify --presets [ es2015 react ] ] ${f} -o ${f%.jsx}.js;
     73            jsxtime=`stat -c %Y ${f}`
     74            jstime=`stat -c %Y ${f%.jsx}.js`
     75            if [ ${jsxtime} -gt ${jstime} ]; then
     76                echo ${f};
     77                node_modules/.bin/browserify -t [ babelify --presets [ es2015 react ] ] ${f} -o ${f%.jsx}.js;
     78            else
     79                echo "${f} is already up-to-date."
     80            fi
    7581        done
    7682
Note: See TracChangeset for help on using the changeset viewer.