]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
make a few changes to package.json (add make test to makefile)
authorJacob Thornton <jacobthornton@gmail.com>
Thu, 19 Apr 2012 23:38:43 +0000 (16:38 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Thu, 19 Apr 2012 23:38:43 +0000 (16:38 -0700)
.travis.yml
Makefile
package.json

index 037e4e797d2577123820133a16f50805c794fc1f..b8e1f17207d7935b9c6cebd65bbdacd81e0f569e 100644 (file)
@@ -1,4 +1,3 @@
 language: node_js
 node_js:
-  - 0.6
-script: "make build"
+  - 0.6
\ No newline at end of file
index f99b2303f5ce2832f577ed1903e11626e43eabd8..e7a0f035f01fed6713e50ba6c319a4de5ba6644f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,14 @@ build:
        @echo "Thanks for using Bootstrap,"
        @echo "<3 @mdo and @fat\n"
 
+#
+# RUN JSHINT
+# TODO: run unittests
+#
+
+test:
+       jshint js/*.js --config js/.jshintrc
+       jshint js/tests/unit/*.js --config js/.jshintrc
 
 #
 # BUILD SIMPLE BOOTSTRAP DIRECTORY
index 0c74adcd020460ff5b3cbe2cf6c7546c2a3035e2..c32979e53d36171fdeb7ee1274668ea4b714bca8 100644 (file)
@@ -1,22 +1,24 @@
 {
-  "name": "bootstrap"
+    "name": "bootstrap"
   , "description": "HTML, CSS, and JS toolkit from Twitter."
   , "version": "2.0.3"
   , "keywords": ["bootstrap", "css"]
   , "homepage": "http://twitter.github.com/bootstrap/"
   , "author": "Twitter Inc."
+  , "scripts": { "test": "make test" }
   , "repository": {
-    "type": "git"
+      "type": "git"
     , "url": "https://github.com/twitter/bootstrap.git"
   }
   , "licenses": [
-    { "type": "Apache-2.0"
+    {
+        "type": "Apache-2.0"
       , "url": "http://www.apache.org/licenses/LICENSE-2.0"
     }
   ]
   , "devDependencies": {
-    "uglify-js": "*"
+      "uglify-js": "*"
     , "jshint": "*"
     , "recess": "*"
   }
-}
+}
\ No newline at end of file