Added build scripts

This commit is contained in:
Devine Lu Linvega 2018-01-20 14:50:54 +13:00
parent 606503b397
commit 801cb3e9af
3 changed files with 18 additions and 36 deletions

1
LAYOUT.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1,45 +1,15 @@
# Ronin
Ronin is a graphic design tool.
Ronin is a graphic design tool under development.
<img src='https://raw.githubusercontent.com/hundredrabbits/Ronin/master/PREVIEW.jpg' width='600'/>
## Cursor
## Themes
- `shift drag`, drag content of layer.
- `alt drag`, erase.
- `alt shift click`, color pick.
Drag a .thm file on the window to install it.
### Special Input
## Controls
Include `$` in a query and click on the canvas to inject the cursor position in the query.
- `$ click` inject a **Pos**.
- `$+ click` inject a **Pos**, and append `$+` for multiple positions.
- `$ shift click` inject a **Rect**.
## Zoom
- `1`, zoom **100%**.
- `2`, zoom **200%**.
- `3`, zoom **400%**.
## Commander
- `Tab`, display input.
## Layers
- `z`, toggle between above and below layers.
## Brush
- `x`, toggle between primary and secondary color.
- `[`, decrease brush size.
- `]`, increase brush size.
## Macros
- `ctrl f`, inject `frame fill:[#primary]`
<img src='https://cdn.rawgit.com/hundredrabbits/Ronin/master/LAYOUT.svg?v=1' width="600"/>
## Extras

View File

@ -3,7 +3,18 @@
"version": "0.1.0",
"main": "main.js",
"scripts": {
"start": "electron ."
"start": "electron .",
"clean" : "rm -r ~/Desktop/Ronin-darwin-x64/ ; rm -r ~/Desktop/Ronin-linux-x64/ ; rm -r ~/Desktop/Ronin-win32-x64/ ; echo 'cleaned build location'",
"build_osx" : "electron-packager . Ronin --platform=darwin --arch=x64 --out ~/Desktop/ --overwrite --icon=icon.icns ; echo 'Built for OSX'",
"build_linux" : "electron-packager . Ronin --platform=linux --arch=x64 --out ~/Desktop/ --overwrite --icon=icon.ico ; echo 'Built for LINUX'",
"build_win" : "electron-packager . Ronin --platform=win32 --arch=x64 --out ~/Desktop/ --overwrite --icon=icon.ico ; echo 'Built for WIN'",
"build" : "npm run clean ; npm run build_osx ; npm run build_linux ; npm run build_win",
"push_osx" : "~/butler push ~/Desktop/Ronin-darwin-x64/ hundredrabbits/ronin:osx-64",
"push_linux" : "~/butler push ~/Desktop/Ronin-linux-x64/ hundredrabbits/ronin:linux-64",
"push_win" : "~/butler push ~/Desktop/Ronin-win32-x64/ hundredrabbits/ronin:windows-64",
"push_theme" : "~/butler push ~/Github/HundredRabbits/Themes/themes/ hundredrabbits/ronin:themes",
"push_status" : "~/butler status hundredrabbits/ronin",
"push" : "npm run build ; npm run push_theme ; npm run push_osx ; npm run push_linux ; npm run push_win ; npm run clean ; npm run push_status"
},
"devDependencies": {
"electron": "^1.8.1"