1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 14:08:29 -04:00

build with yarn

This commit is contained in:
Jake Jarvis 2019-11-21 22:29:09 -05:00
parent 8cfb242246
commit 7887aeb6ed
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
4 changed files with 7905 additions and 10 deletions

3
.gitignore vendored
View File

@ -4,6 +4,7 @@ resources/
node_modules/
package-lock.json
yarn.lock
yarn-debug.log
yarn-error.log
.DS_Store

View File

@ -1,15 +1,15 @@
[build]
command = "npm run build"
command = "yarn build"
publish = "public"
[context.deploy-preview]
command = "yarn build:preview"
publish = "public"
[context.production.environment]
HUGO_VERSION = "0.59.1"
HUGO_ENV = "production"
[context.deploy-preview]
command = "npm run build:preview"
publish = "public"
[context.deploy-preview.environment]
HUGO_VERSION = "0.59.1"
HUGO_ENV = "development"

View File

@ -10,17 +10,18 @@
"url": "https://github.com/jakejarvis"
},
"scripts": {
"build": "rm -rf public resources && npm run hugo:build && npm run optimize",
"build:preview": "npm run hugo:build-dev",
"build": "yarn clean && yarn hugo:build && yarn optimize",
"build:preview": "yarn hugo:build-dev",
"hugo:build": "hugo --gc --cleanDestinationDir --verbose",
"hugo:build-dev": "HUGO_ENV=development hugo -e development -b $DEPLOY_PRIME_URL --gc --cleanDestinationDir --buildDrafts --buildFuture --verbose",
"hugo:serve": "hugo server --buildDrafts --buildFuture --port 1313 --bind=0.0.0.0 --verbose",
"docker:serve": "docker build -t jarv.is:develop -f Dockerfile . ; docker run -v $(pwd):/src -p 1313:1313 jarv.is:develop",
"netlify:serve": "netlify dev --command 'npm run hugo:serve'",
"optimize": "npm run optimize:img",
"netlify:serve": "netlify dev --command 'yarn hugo:serve'",
"optimize": "yarn optimize:img",
"optimize:img": "find public/ -type d -exec imagemin {}/* --plugin=jpegoptim --plugin=pngquant --plugin=optipng --plugin=svgo --plugin=gifsicle --out-dir={} \\;",
"lint:markdown": "markdownlint content/notes/**/*.md",
"lint:sass": "stylelint assets/sass/**/* --syntax scss",
"clean": "rimraf public/ resources/",
"test": "hugo version; hugo env"
},
"dependencies": {},
@ -33,6 +34,7 @@
"imagemin-svgo": "^7.0.0",
"markdownlint-cli": "~0.19.0",
"netlify-cli": "^2.21.0",
"rimraf": "^3.0.0",
"stylelint": "~12.0.0",
"stylelint-config-recommended-scss": "~4.1.0",
"stylelint-scss": "~3.13.0"

7892
yarn.lock Normal file

File diff suppressed because it is too large Load Diff