Commit c966cd4c authored by fxa's avatar fxa

made build the npm way

parent aa35786f
node_modules/
...@@ -40,13 +40,13 @@ or within a html document (see also demo.html): ...@@ -40,13 +40,13 @@ or within a html document (see also demo.html):
If you want to clone the git project, be aware of the submodule uritemplate-test. If you want to clone the git project, be aware of the submodule uritemplate-test.
So you have to to: So you have to to:
git https://github.com/fxa/uritemplate-js.git git clone --recursive https://github.com/fxa/uritemplate-js.git
git submodule init
git submodule update
Build Build
----- -----
jake clean build npm install
npm test
Tests Tests
----- -----
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
"contributors": [], "contributors": [],
"dependencies": {}, "dependencies": {},
"main": "bin/uritemplate.js", "main": "bin/uritemplate.js",
"scripts": {
"test": "jake clean build"
},
"licenses": [{ "licenses": [{
"type": "MIT", "type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php" "url": "http://www.opensource.org/licenses/mit-license.php"
...@@ -20,6 +23,7 @@ ...@@ -20,6 +23,7 @@
"src", "src",
"test", "test",
"bin", "bin",
"build",
"Jakefile.js", "Jakefile.js",
"own-testcases.json", "own-testcases.json",
"demo.html", "demo.html",
...@@ -33,15 +37,15 @@ ...@@ -33,15 +37,15 @@
"uritemplate-test/spec-examples-by-sections.json", "uritemplate-test/spec-examples-by-sections.json",
"uritemplate-test/spec-examples.json" "uritemplate-test/spec-examples.json"
], ],
"version": "0.3.3", "version": "0.3.4",
"readmeFilename": "README.md", "readmeFilename": "README.md",
"gitHead": "901b85201a821427dfb4591b56aea3a70d45c67c", "gitHead": "901b85201a821427dfb4591b56aea3a70d45c67c",
"devDependencies": { "devDependencies": {
"jshint": "*", "jshint": "latest",
"nodeunit": "*", "nodeunit": "latest",
"jake": "*", "jake": "latest",
"uglify-js": "*", "uglify-js": "latest",
"async": "*" "async": "latest"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment