Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (81 sloc) 2.79 KB
{
"name": "static-blog",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "LOCAL=true run-p dev server meta",
"dev": "nodemon --watch ~/posts --watch src --watch index.js -e css,ejs,js,md index.js",
"build": "node index.js && npm run meta",
"build:production": "npm run build && npm run minify && npm run cachebust",
"server": "LOCAL=true node server.js",
"deploy:deploy": "npm run build:deploy",
"build:deploy": "npm run build:production && npm run deploy",
"deploy:build": "npm run build:deploy",
"deploy": "npm run push && cachebust --restore",
"push": "node deploy.js",
"transpile": "npm run clean:js && babel ./src/static/js/search.js -o ./dist/js/search.js",
"meta": "cp ./src/meta/*.* ./build",
"minify": " npm run transpile && npm run minify:js && npm run minify:css",
"minify:css": "npm run clean:css && uglifycss ./src/static/css/styles.css --output ./dist/css/styles.css",
"minify:js": "npm run minify:search && npm run minify:lunr",
"minify:search": "uglifyjs dist/js/search.js -o ./dist/js/search.js",
"minify:lunr": "npm run copy:lunr && uglifyjs ./dist/js/lunr.js -o ./dist/js/lunr.js",
"copy:lunr": "cp ./bower_components/lunr/lunr.js ./dist/js/lunr.js ",
"clean:js": "rm -rf ./dist/js && mkdir -p ./dist/js",
"clean:css": "rm -rf ./dist/css && mkdir -p ./dist/css",
"copy:dist": "rm -rf ./build/static && cp -r ./dist ./build && mv ./build/dist ./build/static",
"cachebust": "cachebust && npm run meta && npm run copy:dist"
},
"author": "Patrick Simpson",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"bower": "^1.8.4",
"browserify": "^16.2.3",
"ejs": "^2.6.1",
"express": "^4.16.3",
"front-matter": "^3.0.1",
"fs-extra": "^7.0.0",
"glob": "^7.1.3",
"lunar": "0.0.3",
"lunr": "^2.3.5",
"marked": "^0.6.0",
"nodemon": "^1.18.9",
"uglify-js": "^3.4.9",
"uglifycss": "0.0.29",
"watchify": "^3.11.0"
},
"dependencies": {
"@sparkbox/cachebust": "^0.2.3",
"adm-zip": "^0.4.13",
"body-parser": "^1.18.3",
"date-and-time": "^0.6.3",
"dotenv": "^6.2.0",
"globby": "^9.0.0",
"highlight.js": "^9.13.1",
"moment": "^2.22.2",
"node-static": "^0.7.11",
"npm-run-all": "^4.1.5",
"request": "^2.88.0",
"request-promise": "^4.2.2",
"shelljs": "^0.8.2",
"showdown": "^1.8.7",
"slugify": "^1.3.1",
"strtotime": "^1.0.0",
"typography": "^0.16.17",
"typography-theme-ocean-beach": "^0.15.11"
},
"cachebust": {
"source": [
"dist/css/styles.css",
"dist/js/search.js"
],
"target": [
"build/**/index.html"
]
}
}