Workaround for windows `mkdir -p`, fixes #57

- Add a placeholder to keep the `app/lib` directory
- Remove `mkdir -p` postinstall script
This commit is contained in:
Jia Hao 2016-01-22 23:27:12 +08:00
parent 4089cd36cb
commit bd6fedc0ef
3 changed files with 7 additions and 2 deletions

7
.gitignore vendored
View File

@ -4,7 +4,12 @@
# Node.js
# ignore compiled lib files
lib
lib/*
app/lib/*
# commit a placeholder to keep the app/lib directory
!app/lib/.placeholder
dist
# Logs

1
app/lib/.placeholder Normal file
View File

@ -0,0 +1 @@
Placeholder file here to commit the lib folder, as we cannot mkdir -p on Windows

View File

@ -12,7 +12,6 @@
"main": "lib/buildApp.js",
"scripts": {
"dev-up": "npm install && (cd app && npm install)",
"postinstall": "mkdir -p app/lib",
"test": "echo \"Error: no test specified\" && exit 1",
"build-app": "browserify app/src/main.js --node --ignore-missing --detect-globals false --debug -o app/lib/main.js && cp app/src/preload.js app/lib/preload.js",
"build-module": "babel src -d lib",