Skip to content

Commit

Permalink
Add tauri
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jul 9, 2020
1 parent b4ddd13 commit 8c35556
Show file tree
Hide file tree
Showing 29 changed files with 5,094 additions and 66 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ node_modules/
/resources/static/js/cljs-runtime
/resources/static/js/manifest.edn
/resources/static/style.css
tauri-release/

.cpcache/
/target
Expand Down
6 changes: 6 additions & 0 deletions app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
cd web
yarn clean && yarn release
NODE_ENV=production yarn postcss styles.src.css -o ../resources/static/css/tailwind.min.css
cd ../
cleancss -o ./resources/static/style.css ./resources/static/css/style.css
5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"devDependencies": {
"@fullhuman/postcss-purgecss": "^2.1.2",
"@tailwindcss/ui": "^0.1.3",
"purgecss": "^2.1.0",
"shadow-cljs": "2.8.81",
"cssnano": "^4.1.10",
"postcss": "^7.0.21",
"postcss-cli": "^6.1.3",
"purgecss": "^2.1.0",
"shadow-cljs": "2.8.81",
"tailwindcss": "^1.3.4"
},
"scripts": {
Expand All @@ -27,6 +27,7 @@
"react-dom": "^16.12.0",
"react-textarea-autosize": "^8.0.1",
"react-transition-group": "^4.3.0",
"tauri": "^0.8.2",
"webdav": "^3.3.0"
}
}
10 changes: 10 additions & 0 deletions web/src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated by Cargo
# will have compiled files and executables
/target/
WixTools

# These are backup files generated by rustfmt
**/*.rs.bk

config.json
bundle.json
Loading

0 comments on commit 8c35556

Please sign in to comment.