Last active
June 16, 2017 15:55
-
-
Save evanxg852000/e18d6a2ad11f6b54c7207517190a8073 to your computer and use it in GitHub Desktop.
Electron forge utility for generating electron project without globally installing electron forge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Electron forge: please provide the project name". | |
exit 0 | |
fi | |
mkdir $1 | |
cd $1 | |
npm init | |
npm i --save-dev electron-forge | |
PATH=$(npm bin):$PATH | |
if [ $# -gt 1 ] | |
then | |
electron-forge init --template=$1 | |
else | |
electron-forge init | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment