Compare commits

...

2 commits

Author SHA1 Message Date
Eduardo 478bc22716 Modified PR to support multiple platforms 2019-09-18 23:53:47 +02:00
D3473R 4f3424d060 Add windows develop support 2019-09-18 16:41:52 +02:00
3 changed files with 25 additions and 6 deletions

View file

@ -5,7 +5,7 @@ services:
image: ghost:2.30.2 image: ghost:2.30.2
container_name: ghost container_name: ghost
volumes: volumes:
- $PWD/..:/var/lib/ghost/content/themes/liebling - ./..:/var/lib/ghost/content/themes/liebling
- ./ghost.db:/var/lib/ghost/content/data/ghost.db - ./ghost.db:/var/lib/ghost/content/data/ghost.db
environment: environment:
- NODE_ENV=development - NODE_ENV=development

12
src/package-lock.json generated
View file

@ -4,6 +4,12 @@
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "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": { "@babel/code-frame": {
"version": "7.5.5", "version": "7.5.5",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz",
@ -14450,6 +14456,12 @@
"integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
"dev": true "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
},
"window-size": { "window-size": {
"version": "0.1.4", "version": "0.1.4",
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz",

View file

@ -6,22 +6,26 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"get-database": "curl https://raw.githubusercontent.com/eddiesigner/ghost-db/master/ghost.db -o ghost.db", "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", "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_modules/webpack/bin/webpack.js --watch --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", "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", "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_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js && npm run zip", "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": "cd .. && zip -r liebling.zip ./* -x './src/*'" "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/*'"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"7zip": "0.0.6",
"browser-sync": "^2.26.7", "browser-sync": "^2.26.7",
"browser-sync-webpack-plugin": "^2.0.1", "browser-sync-webpack-plugin": "^2.0.1",
"ghost-cli": "^1.11.0", "ghost-cli": "^1.11.0",
"laravel-mix": "^4.0.0-beta.2", "laravel-mix": "^4.0.0-beta.2",
"resolve-url-loader": "3.1.0", "resolve-url-loader": "3.1.0",
"run-script-os": "^1.0.7",
"sass": "^1.22.9", "sass": "^1.22.9",
"sass-loader": "7.*", "sass-loader": "7.*",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.6.10"
@ -37,5 +41,8 @@
"slick-carousel": "^1.8.1", "slick-carousel": "^1.8.1",
"stickybits": "^3.6.1", "stickybits": "^3.6.1",
"tippy.js": "^4.0.1" "tippy.js": "^4.0.1"
},
"optionalDependencies": {
"win-node-env": "^0.4.0"
} }
} }