Skip to content

Commit

Permalink
Merge pull request #344 from prashn64/revert_debug_pull_request
Browse files Browse the repository at this point in the history
Per discussions, this may be a bit premature. Revert "Merge pull request #279 from prashn64/master" until the api for debugging is more settled.
  • Loading branch information
jimmyhchan committed Oct 1, 2013
2 parents d34e117 + 7f9aeac commit 4238f6c
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 9,309 deletions.
26 changes: 6 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,9 @@ parser:
SRC = lib
VERSION = ${shell cat package.json | grep version | grep -o '[0-9]\.[0-9]\.[0-9]\+'}
CORE = dist/dust-core-${VERSION}.js
CORE_DEBUG = dist/dust-core-debug-${VERSION}.js
CORE_MIN = dist/dust-core-${VERSION}.min.js
CORE_DEBUG_MIN = dist/dust-core-debug-${VERSION}.min.js
FULL = dist/dust-full-${VERSION}.js
FULL_DEBUG = dist/dust-full-debug-${VERSION}.js
FULL_MIN = dist/dust-full-${VERSION}.min.js
FULL_DEBUG_MIN = dist/dust-full-debug-${VERSION}.min.js

define HEADER
//
Expand All @@ -64,34 +60,24 @@ export HEADER
#TODO: REMOVE THE HELPERS IN THE NEXT RELEASE
dust:
@@mkdir -p dist
@@touch ${CORE_DEBUG}
@@echo "$$HEADER" > ${CORE_DEBUG}
@@cat ${SRC}/dust.js >> ${CORE_DEBUG}
@@echo ${CORE_DEBUG} built

node utils/debug_strip ${CORE_DEBUG} ${CORE}
@@touch ${CORE}
@@echo "$$HEADER" > ${CORE}
@@cat ${SRC}/dust.js >> ${CORE}
@@echo ${CORE} built

@@touch ${FULL_DEBUG}
@@echo "$$HEADER" > ${FULL_DEBUG}
@@touch ${FULL}
@@echo "$$HEADER" > ${FULL}
@@cat ${SRC}/dust.js\
${SRC}/compiler.js\
${SRC}/parser.js >> ${FULL_DEBUG}
@@echo ${FULL_DEBUG} built

node utils/debug_strip ${FULL_DEBUG} ${FULL}
${SRC}/parser.js >> ${FULL}
@@echo ${FULL} built

min: dust
@@echo minifying...
@@echo "$$HEADER" > ${CORE_MIN}
@@echo "$$HEADER" > ${CORE_DEBUG_MIN}
@@echo "$$HEADER" > ${FULL_MIN}
@@echo "$$HEADER" > ${FULL_DEBUG_MIN}
node utils/minifier ${CORE} ${CORE_MIN}
node utils/minifier ${CORE_DEBUG} ${CORE_DEBUG_MIN}
node utils/minifier ${FULL} ${FULL_MIN}
node utils/minifier ${FULL_DEBUG} ${FULL_DEBUG_MIN}

clean:
git rm dist/*
Expand Down
Loading

0 comments on commit 4238f6c

Please sign in to comment.