Moves suite-bundle.js to dist dir inside test folder

This commit is contained in:
Raul Ochoa 2015-12-10 12:35:25 +01:00
parent 10d65267e6
commit 5413f4cb82
3 changed files with 7 additions and 4 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
.DS_Store
*.swp
node_modules
test/suite-bundle.js
test/dist/suite-bundle.js

View File

@ -26,6 +26,9 @@ dist/torque.js: dist_folder dist/torque.uncompressed.js
dist_folder:
mkdir -p dist
test_dist_folder:
mkdir -p test/dist
dist: dist_folder dist/torque.js
clean-results:
@ -34,8 +37,8 @@ clean-results:
add-header:
node lib/header.js
prepare-test-suite:
$(BROWSERIFY) test/suite.js > test/suite-bundle.js
prepare-test-suite: test_dist_folder
$(BROWSERIFY) test/suite.js > test/dist/suite-bundle.js
test: prepare-test-suite
@echo "***tests***"

View File

@ -10,6 +10,6 @@
<div id="qunit-fixture"></div>
<script src="../node_modules/leaflet/dist/leaflet.js"></script>
<script src="./suite-bundle.js"></script>
<script src="./dist/suite-bundle.js"></script>
</body>
</html>