Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
{
"name": "@patricksimpson/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 && npm run build:micro",
"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 && npm run minify:mini",
"minify:search": "uglifyjs dist/js/search.js -o ./dist/js/search.js",
"minify:mini": "cp ./src/static/js/mini.js ./dist/js/mini.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 && npm run copy:images",
"copy:images": "cp -r ./src/static/img ./build/static",
"copy:microblog": "cp ./src/static/js/mini.json ./dist/js/mini.json",
"cachebust": "cachebust && npm run meta && npm run copy:dist",
"build:micro": "npm run getPosts && npm run copy:microblog",
"getPosts": "curl -X GET 'https://social.basementcomputer.site/api/v1/accounts/2418/statuses?limit=5' -H \"Accept: application/json\" > ./src/static/js/mini.json"
},
"author": "Patrick Simpson <izerop@gmail.com>",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.12.16",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"bower": "^1.8.8",
"browserify": "^16.5.1",
"ejs": "^2.6.1",
"express": "^4.17.1",
"front-matter": "^3.0.2",
"fs-extra": "^8.0.1",
"glob": "^7.1.4",
"lunar": "0.0.3",
"lunr": "^2.3.6",
"marked": "^0.8.0",
"nodemon": "^1.19.1",
"uglify-js": "^3.6.0",
"uglifycss": "0.0.29",
"watchify": "^3.11.1"
},
"dependencies": {
"@sparkbox/cachebust": "^0.3.0",
"adm-zip": "^0.4.13",
"body-parser": "^1.19.0",
"date-and-time": "^0.14.2",
"dotenv": "^8.0.0",
"globby": "^9.2.0",
"highlight.js": "^9.15.8",
"moment": "^2.24.0",
"node-static": "^0.7.11",
"npm-run-all": "^4.1.5",
"request": "^2.88.0",
"request-promise": "^4.2.4",
"shelljs": "^0.8.3",
"showdown": "^1.9.1",
"slugify": "^1.3.4",
"strtotime": "^1.0.0"
},
"cachebust": {
"source": [
"dist/css/styles.css",
"dist/js/search.js",
"dist/js/mini.js"
],
"target": [
"build/**/index.html"
]
}
}