Skip to content

Commit

Permalink
Remove extra stuff and workspaces (#396)
Browse files Browse the repository at this point in the history
* 🔥 Remove filesystem types
* 🔥 🚚 Remove backend
* Update yarn.lock
* Make husky pre-commit executable
  • Loading branch information
theRealPadster authored Dec 4, 2022
1 parent 4c44e4c commit 37e38ac
Show file tree
Hide file tree
Showing 79 changed files with 96 additions and 1,684 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* @spicetify/marketplace

/packages/marketplace/src/resources/locales/en-US.json @CharlieS1103
/src/resources/locales/en-US.json @CharlieS1103
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build
run: yarn workspace @spicetify/marketplace build:local
run: yarn build:local
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Lint checks
run: yarn workspace @spicetify/marketplace lint:ci
run: yarn lint:ci
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ jobs:
node-version: 16.x

- name: Add dist folder to worktree
run: git worktree add -B dist packages/marketplace/dist origin/dist
run: git worktree add -B dist dist origin/dist

- name: yarn install and build
run: |
yarn
yarn workspace @spicetify/marketplace build:prod
yarn build:prod
- run: echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV

- name: Push new version
env:
TARGET_BRANCH: "dist"
run: |
cd packages/marketplace/dist
cd dist
git config --global user.name "Github Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn workspace @spicetify/marketplace lint
yarn lint
55 changes: 44 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,52 @@
{
"name": "spicetify-marketplace",
"version": "0.8.3",
"description": "Marketplace for Spicetify",
"license": "MIT",
"workspaces": [
"packages/*"
],
"homepage": "https://github.com/spicetify/spicetify-marketplace",
"repository": {
"type": "git",
"url": "[email protected]:spicetify/spicetify-marketplace.git"
},
"bugs": {
"url": "https://github.com/spicetify/spicetify-marketplace/issues"
},
"scripts": {
"build": "yarn workspaces foreach run build",
"start": "yarn workspaces foreach run start",
"lint:marketplace": "yarn workspace @spicetify/marketplace lint"
"build": "spicetify-creator",
"build:local": "spicetify-creator --out=dist --minify",
"build:prod": "yarn build:local && yarn copy:docs",
"copy:docs": "copyfiles README.md dist/",
"lint": "eslint --fix src",
"lint:ci": "eslint src",
"type-check": "tsc --noEmit",
"watch": "spicetify-creator --watch",
"prepare": "husky install"
},
"engines": {
"node": ">=16"
},
"private": true,
"packageManager": "[email protected]",
"devDependencies": {
"husky": "^8.0.2"
}
"@types/chroma-js": "^2.1.4",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@types/semver": "^7.3.13",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"chroma-js": "^2.4.2",
"copyfiles": "^2.4.1",
"eslint": "^8.28.0",
"eslint-plugin-react": "^7.31.11",
"husky": "^8.0.2",
"i18next": "^22.0.6",
"i18next-browser-languagedetector": "^7.0.1",
"node-vibrant": "3.1.4",
"prismjs": "^1.29.0",
"react-dropdown": "^1.11.0",
"react-i18next": "^12.0.0",
"react-simple-code-editor": "^0.13.1",
"semver": "^7.3.8",
"spcr-whats-new": "^1.0.1",
"spicetify-creator": "^1.0.11",
"typescript": "^4.9.3"
},
"private": true
}
25 changes: 0 additions & 25 deletions packages/backend/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/backend/src/index.ts

This file was deleted.

45 changes: 0 additions & 45 deletions packages/backend/src/server/app.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/backend/src/server/config.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/backend/src/server/controllers/indexController.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/backend/src/server/interfaces/controller.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/backend/src/server/routes/home.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/backend/tsconfig.json

This file was deleted.

52 changes: 0 additions & 52 deletions packages/marketplace/package.json

This file was deleted.

File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/marketplace/tsconfig.json → tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"jsx": "react",
"module": "commonjs",
"resolveJsonModule": true,
"outDir": "dist",
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
Expand Down
Loading

0 comments on commit 37e38ac

Please sign in to comment.