Use project's browserify
This commit is contained in:
parent
502b200234
commit
34c5fba9d9
5
Makefile
5
Makefile
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
UGLIFYJS=./node_modules/.bin/uglifyjs
|
UGLIFYJS=./node_modules/.bin/uglifyjs
|
||||||
|
BROWSERIFY=./node_modules/browserify/bin/cmd.js
|
||||||
|
|
||||||
JS_CLIENT_FILES= lib/torque/*.js \
|
JS_CLIENT_FILES= lib/torque/*.js \
|
||||||
lib/torque/renderer/*.js \
|
lib/torque/renderer/*.js \
|
||||||
@ -11,12 +12,12 @@ JS_CLIENT_FILES= lib/torque/*.js \
|
|||||||
all: dist/torque.js dist/torque.full.js
|
all: dist/torque.js dist/torque.full.js
|
||||||
|
|
||||||
dist/torque.full.js: dist_folder dist/torque.uncompressed.js
|
dist/torque.full.js: dist_folder dist/torque.uncompressed.js
|
||||||
browserify lib/torque/index.js --standalone torque > dist/_torque.full.js
|
$(BROWSERIFY) lib/torque/index.js --standalone torque > dist/_torque.full.js
|
||||||
$(UGLIFYJS) dist/_torque.full.js > dist/torque.full.js
|
$(UGLIFYJS) dist/_torque.full.js > dist/torque.full.js
|
||||||
rm -rf dist/_torque.full.js
|
rm -rf dist/_torque.full.js
|
||||||
|
|
||||||
dist/torque.uncompressed.js: dist_folder $(JS_CLIENT_FILES)
|
dist/torque.uncompressed.js: dist_folder $(JS_CLIENT_FILES)
|
||||||
browserify lib/torque/index.js --no-bundle-external --standalone torque > dist/torque.uncompressed.js
|
$(BROWSERIFY) lib/torque/index.js --no-bundle-external --standalone torque > dist/torque.uncompressed.js
|
||||||
|
|
||||||
dist/torque.js: dist_folder dist/torque.uncompressed.js
|
dist/torque.js: dist_folder dist/torque.uncompressed.js
|
||||||
$(UGLIFYJS) dist/torque.uncompressed.js > dist/torque.js
|
$(UGLIFYJS) dist/torque.uncompressed.js > dist/torque.js
|
||||||
|
14
dist/torque.full.js
vendored
14
dist/torque.full.js
vendored
File diff suppressed because one or more lines are too long
@ -29,6 +29,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"leaflet": "0.7.3",
|
"leaflet": "0.7.3",
|
||||||
"node-qunit-phantomjs": "^1.0.0",
|
"node-qunit-phantomjs": "^1.0.0",
|
||||||
|
"browserify": "^7.0.0",
|
||||||
"qunitjs": "1.x",
|
"qunitjs": "1.x",
|
||||||
"uglify-js": "1.3.3"
|
"uglify-js": "1.3.3"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user