Skip to content

Commit

Permalink
Desktop setup (#3)
Browse files Browse the repository at this point in the history
* setup(*): use different file for different build (web, desktop)

* setup(monorepo): use monorepo to host both web and desktop repository

* setup(monorepo): moved `web` and `desktop` to `apps`
  • Loading branch information
GervinFung authored Mar 25, 2024
1 parent 672db46 commit 55d202a
Show file tree
Hide file tree
Showing 608 changed files with 7,440 additions and 1,376 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

# Isolate binary files in case the auto-detection algorithm fails and
# marks them as text files (which could brick them).
*.{png,jpg,jpeg,gif,webp,woff,woff2,ico,pdf} binary
*.{png,jpg,jpeg,gif,webp,woff,woff2,ico,pdf} binary
2 changes: 1 addition & 1 deletion .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pt-ci
name: periotable-ci

on: [push, pull_request]

Expand Down
33 changes: 2 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,7 @@
node_modules

# next.js
.next
out
next-env.d.ts

# generated
script/**/*.generated.*
script/**/*.webp
.prettierrc
public/service-worker.js*
public/workbox-*.js*
src/web/generated/*.ts
env.d.ts

# test
test/snapshot/generated*.test.ts

# production
build
dist
cache

# local env files
.env
.env.production

# vercel
.vercel

# sitemap
public/sitemap*.xml
public/site.webmanifest
public/manifest.json
public/robots.txt
# prettier
.prettierrc
34 changes: 1 addition & 33 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,7 @@
node_modules

# next.js
.next
out
next-env.d.ts

# generated
script/**/*.generated.*
script/**/*.webp
# prettier
.prettierrc
public/service-worker.js*
public/workbox-*.js*
src/web/generated/*.ts
env.d.ts

# test
test/snapshot/generated*.test.ts

# production
build
dist
cache

# local env files
.env
.env.production

# vercel
.vercel

# sitemap
public/sitemap*.xml
public/site.webmanifest
public/manifest.json
public/robots.txt

# pnpm
pnpm-lock.yaml
Expand Down
4 changes: 4 additions & 0 deletions apps/desktop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules

# generated
build
5 changes: 5 additions & 0 deletions apps/desktop/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules

# generated
build
src-tauri/target
23 changes: 23 additions & 0 deletions apps/desktop/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY: build test
MAKEFLAGS += --silent

build-production:
pnpm tauri build

# build
build-desktop:
rm -rf build &&\
cd ../web &&\
make build-desktop &&\
mv desktop ../desktop/build

# format
format:
pnpm prettier --$(type) .

format-check:
make format type=check

format-write:
make format type=write

11 changes: 11 additions & 0 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@periotable/desktop",
"version": "0.0.0",
"author": "PoolOfDeath20",
"private": true,
"license": "GPL",
"description": "A UI/UX friendly desktop application to learn more about Modern Periodic Table of Elements",
"devDependencies": {
"@tauri-apps/cli": "^1.5.7"
}
}
4 changes: 4 additions & 0 deletions apps/desktop/src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/
WixTools
Loading

0 comments on commit 55d202a

Please sign in to comment.