Skip to content

Commit

Permalink
chore: bump version to 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevries3133 committed Mar 18, 2021
1 parent 711a765 commit bfb8f0f
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 6 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# 2.1.2

- Configure email in production for real password reset functionality (#27)
- Configured and began writing frontend unit tests with jest and React Testing
Library.
- Improvements for contributors
- Single boolean switch to go from dbsqlite to mysql in
`development_settings.py`
- Continue to maintain `dev_setup.sh`, which is not more descriptive and runs
new frontend test suite on setup.
- Misc but fixes (#13, #20)

# 2.1.1

- Fix spreadsheet parsing bugs on the backend, mostly related to handling
names with extra whitespace.
- Issue #21: Better error messages for invalid spreadsheets. The site will now
provide a detailed "traceback" identifying each error and which row the
error occured on.
error occurred on.
- missing name or link values
- invalid links
- Validate group name length to enforce 15 character limit. Update CSS to
make group names always display nicely.
- Scripts for develoment and dev ops
- Scripts for development and dev ops
- Automated database backup
- Automated construction and destruction of mysql database through Docker
for easy testing
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1.2
4 changes: 2 additions & 2 deletions django_smg/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "frontend",
"version": "1.0.0",
"description": "",
"version": "2.1.2",
"description": "songmakergallery.com's frontend application.",
"main": "index.js",
"scripts": {
"dev": "webpack --mode development --watch",
Expand Down
2 changes: 1 addition & 1 deletion django_smg/frontend/templates/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="{% static "/frontend/webpack_output/main_v2.1.1.js" %}"></script>
<script src="{% static "/frontend/webpack_output/main_v2.1.2.js" %}"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion django_smg/frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
},
entry: "./src/index.jsx",
output: {
filename: "main_v2.1.1.js",
filename: "main_v2.1.2.js",
path: path.resolve(__dirname, "static", "frontend", "webpack_output"),
},
};
34 changes: 34 additions & 0 deletions version_bump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import re

new = input('Enter new version number: ')

def change(path, regex, replacement):
with open(path, 'r') as fl:
data = fl.read()
with open(path, 'w') as fl:
fl.write(re.sub(regex, replacement, data))

# update VERSION tracker file at root
with open( 'VERSION', 'w') as fl:
fl.write(new)

# update index.html template
change(
'django_smg/frontend/templates/frontend/index.html',
r'webpack_output/main_v(.*)\.js',
f'webpack_output/main_v{new}.js',
)

# update package.json
change(
'django_smg/frontend/package.json',
r'"version": "(.*)",',
f'"version": "{new}",'
)

# update webpack config
change(
'django_smg/frontend/webpack.config.js',
r'filename: "main_v(.*).js",',
f'filename: "main_v{new}.js",',
)

0 comments on commit bfb8f0f

Please sign in to comment.