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:
parent
8cfb242246
commit
7887aeb6ed
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,6 +4,7 @@ resources/
|
||||
|
||||
node_modules/
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
yarn-debug.log
|
||||
yarn-error.log
|
||||
|
||||
.DS_Store
|
||||
|
10
netlify.toml
10
netlify.toml
@ -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"
|
||||
|
10
package.json
10
package.json
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user