{ "private": true, "name": "j1_starter", "version": "2018.4.18", "description": "Starter site for J1 Template", "homepage": "https://your.site", "author": { "name": "Your Name", "email": "name@mail.site", "url": "https://your.site" }, "license": "MIT", "bugs": { "url": "https://your.site" }, "config": { "bumplevel": "patch", "mode": "production", "loglevel": "silent" }, "engines": { "node": ">=8.0", "npm": ">=6.0", "yarn": ">=1.6", "jekyll": ">=3.8" }, "keywords": [ "Jekyll", "One", "Server", "Web", "Site" ], "scripts": { "app": "cross-var cross-env if-env J1DOCKER=true && run-s app-docker || run-s app-local", "app-dev": "run-p -s app-local-dev:*", "app-local": "run-p -s app-local:*", "app-local:rackup": "cross-env SINATRA_ACTIVESUPPORT_WARNING=false bundle exec rackup -o 127.0.0.1 -p 4000 2>&1 | findstr INFO", "app-local:open": "npm run delay-5s && opn http://127.0.0.1:4000/", "app-local-dev": "run-p -s app-local-dev:*", "app-local-dev:guard": "bundle exec guard --clear --no-interactions --notify false --watchdir _site", "app-local-dev:rackup": "cross-env SINATRA_ACTIVESUPPORT_WARNING=false bundle exec rackup -o 127.0.0.1 -p 4000", "app-local-dev:jekyll": "npm run delay-3s && bundle exec jekyll b --incremental --watch", "app-local-dev:open": "npm run delay-10s && opn http://127.0.0.1:4000/", "app-docker": "run-p -s app-docker:*", "app-docker:rackup": "bundle exec rackup -o 0.0.0.0 -p 4000", "app-docker-dev": "run-p -s app-local-dev:*", "app-docker-dev:guard": "bundle exec guard --clear --no-interactions --notify false --watchdir _site", "app-docker-dev:rackup": "cross-env SINATRA_ACTIVESUPPORT_WARNING=false bundle exec rackup -o 127.0.0.1 -p 4000", "app-docker-dev:jekyll": "npm run delay-3s && bundle exec jekyll b --incremental --watch", "app-docker-dev:open": "npm run delay-10s && opn http://127.0.0.1:4000/", "detect-os": "echo Detecting OS .. && cross-env cross-var if-env OS=Windows_NT && cross-var echo OS detected as: $OS || OS=$(echo $(getos) && echo OS detected as: $OS", "detect-docker": "echo Detecting DOCKER .. && cross-var cross-env if-env J1DOCKER=true && cross-var cross-env echo Docker detected as: $J1DOCKER || echo no Docker detected", "built": "run-p -s built:*", "built:info": "echo Built the site for incremental mode ..", "built:do": "bundle exec jekyll b --incremental", "rebuilt": "run-p -s rebuilt:*", "rebuilt:info": "echo Built the site from scratch ..", "rebuilt:clean": "shx rm -rf _site && shx rm -f Gemfile.lock && shx rm -f .jekyll-metadata", "rebuilt:do": "bundle exec jekyll b", "delay-1s": "node ./node_modules/npm-delay 1000", "delay-2s": "node ./node_modules/npm-delay 2000", "delay-3s": "node ./node_modules/npm-delay 3000", "delay-5s": "node ./node_modules/npm-delay 5000", "delay-10s": "node ./node_modules/npm-delay 10000", "clean": "run-p -s clean:*", "clean:start": "echo Cleaning up project files ..", "clean:logs": "shx rm -f *.log", "clean:locks": "shx rm -f *.lock && shx rm -f package-lock.json", "clean:site": "echo Cleaning up site files .. && shx rm -f .jekyll-metadata && shx rm -rf _site", "credentials": "run-s -s credential:*", "credential:echo": "echo Store username and password ..", "credential:set": "git config credential.helper store && echo Finished.", "reset": "run-s -s reset:*", "reset:start": "echo Resetting the project to factory state ..", "reset:clean-files": "npm --silent run clean", "reset:finished": "echo Finished.", "setup": "npm --silent run setup-start && npm --silent run setup-base && run-s -s setup:*", "setup-start": "echo Setting up the project for first use ..", "setup-base": "echo Bootstrapping base modules .. && npm i shx npm-run-all cross-var cross-env -D > install.log && echo Finished.", "setup:env": "cross-var echo \"Configuring NODE|NPM environment ..\" && run-s -s set-env:*", "set-env:loglevel": "cross-var npm config set jekyll_one_com:loglevel $npm_package_config_loglevel && cross-var echo \"LOGLEVEL: $npm_package_config_loglevel\"", "set-env:mode": "cross-var npm config set jekyll_one_com:mode $npm_package_config_mode && cross-var echo \"MODE: $npm_package_config_mode\" && echo Finished.", "setup:node-modules": "echo Bootstrapping project modules .. && npm install > install.log && echo Finished.", "setup:detect-os": "echo Detecting OS .. && cross-var cross-env if-env OS=Windows_NT && cross-var cross-env echo OS detected as: $OS || OS=$(echo $(getos)) && echo OS detected as: $OS", "setup:site": "echo Build the site .. && run-s -s built", "site": "cross-var cross-env if-env J1DOCKER=true && run-s site-docker || run-s site-local", "site-local": "echo Startup the site - local .. && bundle exec jekyll s --incremental --livereload --open", "site-docker": "echo Startup the site - dockerized .. && bundle exec jekyll s --host 0.0.0.0 --incremental --livereload", "deploy": "echo Add, Commit, Push and Deploy changed files to the Remotes && run-s -s git:*", "git:add": "git add .", "git:commit": "echo Commit files to repo && git commit -a", "git:github": "echo Push files to Github && git push github master", "git:j1git": "echo Push files to J1 Git Server && git push", "bump": "run-s -s ver && run-s -s bump:* && run-s -s ver", "ver": "cross-var echo \"project version: $npm_package_version\"", "bump:project": "cross-var npm version $npm_package_config_bumplevel", "bump-no-git": "cross-var npm --no-git-tag-version version $npm_package_config_bumplevel" }, "dependencies": { "getos": "^3.1.0", "getos-cli": "^1.0.0", "if-env": "^1.0.4", "npm-delay": "^1.0.4", "opn-cli": "^3.1.0" }, "devDependencies": { "cross-env": "^5.2.0", "cross-var": "^1.1.0", "npm-run-all": "^4.1.5", "shx": "^0.2.2" } }