Skip to content

Commit

Permalink
Add missing code to give development support on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesigner committed Oct 7, 2019
1 parent 0fa219c commit 44b03be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'"
Expand All @@ -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",
Expand All @@ -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"
}
}

0 comments on commit 44b03be

Please sign in to comment.