Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
Merge branch 'electron'
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJordens committed Jan 23, 2017
2 parents fbf6966 + d85e4d6 commit f606a61
Show file tree
Hide file tree
Showing 101 changed files with 7,687 additions and 10,087 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": [ "transform-es2015-modules-commonjs", "transform-regenerator" ],
"presets": [ "react" ]
}
26 changes: 26 additions & 0 deletions .bin/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

export NODE_ENV=production

rm -R app
mkdir app
mkdir app/css
touch app/css/style.css
mkdir app/js
touch app/js/app.js

cp src/app/html/index.html app/index.html

cp -r src/app/images app/images

echo "starting browserify"
node_modules/.bin/browserify -e src/app/js/index.js -o "app/js/app.js" -t [ babelify ]
echo "starting node-sass"
node_modules/.bin/node-sass src/app/css -o app/css
# echo "starting uglifyjs"
# node_modules/.bin/uglifyjs -m -c -o app/js/app.js app/js/app.js

cp package.json app/
node_modules/.bin/babel -o app/index.js src/electron/index.js
node_modules/.bin/babel -o app/checkVersion.js src/electron/checkVersion.js
node_modules/.bin/babel -o app/menu.js src/electron/menu.js
22 changes: 22 additions & 0 deletions .bin/dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

export NODE_ENV=develop

rm -R build
mkdir build
mkdir build/css
touch build/css/style.css
mkdir build/js
touch build/js/app.js

cp src/app/html/index.html build/index.html

cp -r src/app/images build/images

echo "starting watchify"
node_modules/.bin/watchify -e src/app/js/index.js -o "build/js/app.js" -d -v -t [ babelify ] &
echo "starting node-sass"
node_modules/.bin/node-sass --source-map true src/app/css -o build/css
node_modules/.bin/node-sass --source-map true -w src/app/css -o build/css &
echo "starting browser-sync"
node_modules/.bin/browser-sync start --files "build/css/*.css, build/js/*.js" --server build
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
bower_components
build/
src/compiled
build_app
node_modules/
/build/
/app/
/electron/
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ certain topic and/or lets you send socket messages to the server
---

##### Install node modules
`$ npm install`
`$ yarn install`

##### Build for development
`$ npm run dev`
`$ yarn run dev`

##### build app for chrome
`$ npm run build`
##### build app for electron
* build
`$ yarn run build`
* and run electron
`$ node_modules/.bin/electron .`

---

Expand All @@ -36,6 +39,3 @@ start test server by running `node socketTest/index.js`





socket.io.js had to be modified to run inside app
8 changes: 0 additions & 8 deletions appFiles/background.js

This file was deleted.

90 changes: 0 additions & 90 deletions appFiles/google-analytics-bundle.js

This file was deleted.

14 changes: 0 additions & 14 deletions appFiles/index.html

This file was deleted.

21 changes: 0 additions & 21 deletions appFiles/manifest.json

This file was deleted.

Loading

0 comments on commit f606a61

Please sign in to comment.