Include dependency on nodemon, csso, uglify-es, fix Makefile
Fix #5 #6
diff --git a/Makefile b/Makefile
index 795f1e9..0cfb1a4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
OUT = ./standalone
CSS = $(OUT)/css
JS = $(OUT)/js
+CSSO = ./node_modules/.bin/csso
+UJS = ./node_modules/.bin/uglifyjs
TARGETS := $(OUT)/index.html $(CSS)/sprite.svg $(CSS)/style.css $(CSS)/logo.png $(JS)/util.js $(JS)/editor.js $(JS)/schemas.js $(JS)/advisory.js
-$(OUT)/index.html: ./standalone.js ./config/conf.js
+$(OUT)/index.html: ./standalone.js ./config/conf-standalone.js ./views/* ./views/cves/* ./views/cves/common/*
node $<
$(OUT)/js:
@@ -14,7 +16,7 @@
mkdir -p $(OUT)/css
$(CSS)/%.css: ./public/css/%.css
- csso $< $@
+ $(CSSO) $< $@
$(CSS)/%.svg: ./public/css/%.svg
cp -f $< $@
@@ -23,6 +25,6 @@
cp -f $< $@
$(JS)/%: ./public/js/%
- uglifyjs $< -o $@
+ $(UJS) $< -o $@
min: $(CSS) $(JS) $(TARGETS)
diff --git a/package.json b/package.json
index 41f52b6..399c6ce 100644
--- a/package.json
+++ b/package.json
@@ -1,25 +1,32 @@
{
- "name": "Vulnogram",
- "version": "0.0.2",
- "description": "Making the world safer one CVE at a time, since 2017. Tool for creating Security Advisories and CVE ID information.",
- "main": "app.js",
- "scripts": {
- "start": "nodemon app"
- },
- "author": "Chandan B N.",
- "license": "BSD",
- "dependencies": {
- "connect-flash": "^0.1.1",
- "compression" : "^1.7.1",
- "express": "^4.16.1",
- "express-messages": "^1.0.1",
- "express-session": "^1.15.6",
- "express-validator": "^4.2.1",
- "csurf": "^1.9.0",
- "mongoose": "^4.12.4",
- "monk": "^6.0.5",
- "passport": "^0.4.0",
- "passport-local": "^1.0.0",
- "pug": "^2.0.0-rc.4"
- }
-}
+ "name": "Vulnogram",
+ "version": "0.0.3",
+ "description": "Making the world safer one CVE at a time, since 2017. Tool for creating Security Advisories and CVE ID information.",
+ "main": "app.js",
+ "scripts": {
+ "start": "nodemon app"
+ },
+ "author": "Chandan B N.",
+ "license": "SEE LICENSE IN README.md",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Vulnogram/Vulnogram.git"
+ },
+ "dependencies": {
+ "nodemon": "^1.12.1",
+ "connect-flash": "^0.1.1",
+ "compression": "^1.7.1",
+ "express": "^4.16.1",
+ "express-messages": "^1.0.1",
+ "express-session": "^1.15.6",
+ "express-validator": "^4.2.1",
+ "csurf": "^1.9.0",
+ "mongoose": "^4.12.4",
+ "monk": "^6.0.5",
+ "passport": "^0.4.0",
+ "passport-local": "^1.0.0",
+ "pug": "^2.0.0-rc.4",
+ "csso-cli": "^1.1.0",
+ "uglify-es": "^3.1.9"
+ }
+}
\ No newline at end of file