Merge branch 'master' of ssh://pwan.org/var/www/git/projects/tech-radar
[tech-radar.git] / package.json
index 30150eb..1b261bc 100644 (file)
@@ -1,32 +1,43 @@
 {
   "name": "tech-radar",
-  "version": "0.1.5",
-  "description": "",
+  "version": "1.0.0",
+  "description": "Fork of Bruno Trescenti's tech-radar project",
   "main": "index.js",
   "scripts": {
-    "test": "gulp test"
+    "test": "karma start karma.conf.js --single-run",
+    "test:dist": "npm run build && karma start karma-dist.conf.js --single-run",
+    "build:clean": "rm -rf ./dist/*",
+    "build:sass": "node-sass -r ./src/stylesheets/base.scss ./dist/base.css",
+    "build:uglify": "uglifyjs -c -m  -o ./dist/tech-radar.min.js --source-map  -- ./src/namespaces.js ./src/**/*.js",
+    "build:deps": "cp node_modules/chance/chance.js ./dist/ && cp node_modules/d3/build/d3.min.js ./dist/ && cp node_modules/d3-queue/build/d3-queue.min.js ./dist/",
+    "build": "mkdir -p ./dist && npm run build:clean && npm run build:sass && npm run build:uglify && npm run build:deps",
+    "examples:clean": "rm -rf ./examples/*{.js,.css,.map}",
+    "examples:deps": "cp -r ./dist/*  ./examples/",
+    "examples": "npm run build && npm run examples:clean && npm run examples:deps",
+    "publishExamples": "node ./scripts/publish-examples.js",
+    "build:all": "npm install && npm run build && npm run examples"
   },
-  "author": "",
+  "author": "Jude N",
+  "repository": {
+    "type": "git",
+    "url": "https://pwan.org/git/tech-radar.git"
+  },
+  "keywords": [
+    "tech-radar"
+  ],
   "license": "ISC",
   "devDependencies": {
-    "gulp-util": "~2.2.14",
-    "gulp": "~3.5.2",
     "karma-script-launcher": "~0.1.0",
-    "karma-chrome-launcher": "~0.1.2",
-    "karma-firefox-launcher": "~0.1.3",
-    "karma-html2js-preprocessor": "~0.1.0",
     "karma-jasmine": "~0.1.5",
-    "karma-coffee-preprocessor": "~0.1.3",
     "requirejs": "~2.1.11",
-    "karma-requirejs": "~0.2.1",
     "karma-phantomjs-launcher": "~0.1.2",
     "karma": "~0.10.9",
-    "gulp-karma": "0.0.2",
-    "gulp-sass": "~0.7.1",
-    "gulp-concat": "~2.2.0",
-    "gulp-uglify": "~0.2.1",
-    "gulp-clean": "~0.2.4",
-    "gulp-header": "~1.0.2"
+    "node-sass": "^3.1.1",
+    "uglify-js": "^3.0.11"
   },
-  "dependencies": {}
+  "dependencies": {
+    "d3": "~4.9.1",
+    "chance": "~1.0.9",
+    "d3-queue": "~3.0.7"
+  }
 }