2020-02-16 17:41:08 +01:00
|
|
|
{
|
|
|
|
"name": "loveit-src",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "LoveIt theme source file",
|
|
|
|
"main": "index.js",
|
|
|
|
"dependencies": {},
|
|
|
|
"devDependencies": {
|
|
|
|
"@babel/cli": "^7.8.4",
|
|
|
|
"@babel/core": "^7.8.4",
|
|
|
|
"@babel/preset-env": "^7.8.4",
|
|
|
|
"babel-preset-minify": "^0.5.1",
|
|
|
|
"husky": "^4.2.3"
|
|
|
|
},
|
|
|
|
"scripts": {
|
2020-02-24 13:34:00 +01:00
|
|
|
"build": "npx babel src --out-file assets/js/theme.min.js --source-maps",
|
2020-02-16 17:41:08 +01:00
|
|
|
"start": "hugo server --source=exampleSite --themesDir=../.. --disableFastRender -D",
|
|
|
|
"copy": "HUGO_ENV=production hugo -v --source=exampleSite --themesDir=../.. -D --gc --minify && rm -rf resources && cp -rf exampleSite/resources resources"
|
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
2020-02-16 19:32:52 +01:00
|
|
|
"pre-commit": "npm run build && npm run copy && git add .",
|
|
|
|
"pre-push": "npm run build && npm run copy && git add ."
|
2020-02-16 17:41:08 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/dillonzq/LoveIt.git"
|
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"hugo",
|
|
|
|
"theme"
|
|
|
|
],
|
|
|
|
"author": "Dillon",
|
|
|
|
"license": "MIT",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/dillonzq/LoveIt/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/dillonzq/LoveIt#readme"
|
|
|
|
}
|