From 44b03beec337d0327edd5c123fa98176d2a69ea8 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 7 Oct 2019 21:37:03 +0200 Subject: [PATCH] Add missing code to give development support on Windows --- src/docker-compose.yml | 2 +- src/package-lock.json | 12 ++++++++++++ src/package.json | 12 ++++++++---- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/docker-compose.yml b/src/docker-compose.yml index f807ec7..a93f300 100644 --- a/src/docker-compose.yml +++ b/src/docker-compose.yml @@ -5,7 +5,7 @@ services: image: ghost:2.31.1 container_name: ghost volumes: - - $PWD/..:/var/lib/ghost/content/themes/liebling + - ./..:/var/lib/ghost/content/themes/liebling - ./ghost.db:/var/lib/ghost/content/data/ghost.db environment: - NODE_ENV=development diff --git a/src/package-lock.json b/src/package-lock.json index 243c6c4..484bcd6 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -4,6 +4,12 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "7zip": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/7zip/-/7zip-0.0.6.tgz", + "integrity": "sha1-nK+xca+CMpSQNTtIFvAzR6oVCjA=", + "dev": true + }, "@babel/code-frame": { "version": "7.5.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", @@ -14074,6 +14080,12 @@ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, + "win-node-env": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/win-node-env/-/win-node-env-0.4.0.tgz", + "integrity": "sha512-bf4TV/NOBEazlHJW/bOns7u2JaHe3f5bz8BYanm/xuqJ405NG9OK3VAI1Y2WvHJsAo4GMU8EYTHSh59Q3UfHvA==", + "optional": true + }, "worker-farm": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", diff --git a/src/package.json b/src/package.json index a4ca041..f4558e4 100644 --- a/src/package.json +++ b/src/package.json @@ -6,11 +6,11 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "get-database": "curl https://raw.githubusercontent.com/eddiesigner/ghost-db/master/ghost.db -o ghost.db", - "dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "watch": "NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "dev": "NODE_ENV=development node node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "watch": "NODE_ENV=development node node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", - "docker-watch": "docker-compose up -d && node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "production": "NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js && npm run zip", + "docker-watch": "docker-compose up -d && node node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "production": "NODE_ENV=production node node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js && npm run zip", "zip": "run-script-os", "zip:win32": "cd .. && 7z a -r -x!.git -x!src liebling.zip *", "zip:default": "cd .. && zip -r liebling.zip ./* -x './src/*'" @@ -19,6 +19,7 @@ "author": "", "license": "ISC", "devDependencies": { + "7zip": "0.0.6", "browser-sync": "^2.26.7", "browser-sync-webpack-plugin": "^2.0.1", "ghost-cli": "^1.11.0", @@ -41,5 +42,8 @@ "slick-carousel": "^1.8.1", "stickybits": "^3.6.1", "tippy.js": "^4.0.1" + }, + "optionalDependencies": { + "win-node-env": "^0.4.0" } }