Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .editorconfig

This file was deleted.

26 changes: 3 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
node_modules/
*.log
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}
8 changes: 0 additions & 8 deletions .storybook/main.js

This file was deleted.

68 changes: 0 additions & 68 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lastcollage</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
8 changes: 0 additions & 8 deletions jsconfig.json

This file was deleted.

60 changes: 23 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"name": "lastcollage-client",
"version": "1.0.1",
"private": true,
"version": "2.0.0",
"description": "Generates a collage of album/artist/track artwork based on data from Last.fm",
"main": "index.js",
"repository": "git@github.com:awhite/lastcollage-cliient.git",
"author": "Alex White <awhite4096@gmail.com>",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"changelog": "node ./scripts/changelog.js"
},
"dependencies": {
"@date-io/moment": "1.x",
"@material-ui/core": "^4.9.10",
Expand All @@ -17,47 +22,28 @@
"classnames": "^2.2.6",
"moment": "^2.26.0",
"node-sass": "^4.13.1",
"react": "^16.13.1",
"react": "^18.2.0",
"react-collapse": "^5.0.1",
"react-dom": "^16.13.1",
"react-dom": "^18.2.0",
"react-modal": "^3.11.2",
"react-redux": "^7.2.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"redux": "^4.0.5",
"styled-components": "^5.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public",
"changelog": "node ./scripts/changelog.js"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@storybook/addon-actions": "^5.3.18",
"@storybook/addon-links": "^5.3.18",
"@storybook/addons": "^5.3.18",
"@storybook/preset-create-react-app": "^2.1.2",
"@storybook/react": "^5.3.18",
"eslint": "^6.8.0",
"faker": "^4.1.0"
"@types/react": "^18.0.17",
"@types/react-collapse": "^5.0.1",
"@types/react-dom": "^18.0.6",
"@types/react-modal": "^3.13.1",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.26",
"@vitejs/plugin-react": "^2.1.0",
"prettier": "^2.8.1",
"sass": "^1.55.0",
"typescript": "^4.6.4",
"vite": "^3.1.0",
"vite-plugin-svgr": "^2.2.1"
}
}
Binary file removed public/android-chrome-192x192.png
Binary file not shown.
Binary file removed public/android-chrome-512x512.png
Binary file not shown.
Binary file removed public/apple-touch-icon.png
Binary file not shown.
9 changes: 0 additions & 9 deletions public/browserconfig.xml

This file was deleted.

Binary file removed public/favicon-16x16.png
Binary file not shown.
Binary file removed public/favicon-32x32.png
Binary file not shown.
Binary file removed public/favicon.ico
Binary file not shown.
34 changes: 0 additions & 34 deletions public/index.html

This file was deleted.

25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

Binary file removed public/mstile-150x150.png
Binary file not shown.
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

17 changes: 0 additions & 17 deletions public/safari-pinned-tab.svg

This file was deleted.

1 change: 1 addition & 0 deletions public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 18 additions & 21 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,29 @@
Script to add a new revision to the changelog JSON file. Pulls version from package.json, grabs current date
*/

const fs = require('fs');
const path = require('path');
const fs = require('fs')
const path = require('path')

const changelog = require('../src/data/changelog.json');
const pkg = require('../package.json');
const changelog = require('../src/data/changelog.json')
const pkg = require('../package.json')

const newRelease = {
"versionCode": pkg.version,
"dateMillis": Date.now(),
"changes": [
versionCode: pkg.version,
dateMillis: Date.now(),
changes: [
{
"title": "[New Release]",
"bullets": [
"[Change 1]",
"[Change 2]"
]
}
]
};
title: '[New Release]',
bullets: ['[Change 1]', '[Change 2]'],
},
],
}

const newChangelog = {
...changelog,
releases: [
...changelog.releases,
newRelease,
]
};
releases: [...changelog.releases, newRelease],
}

fs.writeFileSync(path.resolve('./src/data/changelog.json'), JSON.stringify(newChangelog, null, 2));
fs.writeFileSync(
path.resolve('./src/data/changelog.json'),
JSON.stringify(newChangelog, null, 2)
)
Loading