Skip to content

Commit 09f4d08

Browse files
committed
Update React development stack (#72)
* Remove old project structure * Initialize project using Create React App npx create-react-app exportify --template typescript (https://create-react-app.dev/docs/adding-typescript/) * Add dependencies - JSZip - FileSaver.js - jQuery for legacy code support - Fontawesome - Sass - Bootstrap and Bootstrap React Keeping old version of Bootstrap for now (upgrade to come later) * Migrate Exportify to create-react-app stack - Yarn for dependency management - react-fontawesome for Font Awesome 5 icon components - TypeScript (more to come) - SASS support - JSZip upgrade Note: I've kept certain things like Bootstrap 3 and jQuery in order to make changes incrementally. * Add test suite - Auth redirect flow - Playlist loading (snapshot) - Single playlist export - Export all playlists * Add Bugsnag for error monitoring * Replace bind(this) with arrow functions * Use literals template for string concatenation * Update README.md for create-react-app development stack * Don't use Bugsnag in development environment
1 parent 7fcc92e commit 09f4d08

36 files changed

+14075
-847
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
125
*.csv
226
.ipynb_checkpoints
327
.~*

.travis.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
os: osx
2-
3-
before_install:
4-
- brew cask install phantomjs
5-
- git clone git://github.com/n1k0/casperjs.git /tmp/casperjs
6-
- export PATH=/tmp/casperjs/bin/:$PATH
7-
8-
before_script:
9-
- phantomjs --version
10-
- casperjs --version
11-
- python -m SimpleHTTPServer 8080 &
12-
- sleep 10
13-
1+
language: node_js
2+
node_js:
3+
- "stable"
4+
cache:
5+
directories:
6+
- node_modules
147
script:
15-
- casperjs test test/integration
16-
8+
- yarn build
9+
- yarn test
1710
deploy:
1811
provider: pages
1912
skip_cleanup: true
2013
github_token: $GITHUB_TOKEN
21-
keep_history: true
14+
local_dir: build
2215
on:
2316
branch: master

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,26 @@ Track data is exported in [CSV](http://en.wikipedia.org/wiki/Comma-separated_val
4242

4343
## Development
4444

45-
Developers wishing to make changes to Exportify should use a local web server. For example, using Python 2.7 (in the Exportify repo dir):
45+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4646

47-
```bash
48-
python -m SimpleHTTPServer
49-
```
47+
In the project directory, you can run:
5048

51-
For Python 3 (in the Exportify repo dir):
49+
**`yarn start`**
5250

53-
```bash
54-
python -m http.server 8000
55-
```
51+
Runs the app in the development mode.\
52+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
5653

54+
The page will reload if you make edits.\
55+
You will also see any lint errors in the console.
5756

58-
Then open [http://localhost:8000/](http://localhost:8000/).
57+
**`yarn test`**
58+
59+
Launches the test runner in the interactive watch mode.\
60+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
61+
62+
**`yarn build`**
63+
64+
Builds the app for production to the `build` folder.
5965

6066

6167
## Notes
@@ -74,3 +80,12 @@ Then open [http://localhost:8000/](http://localhost:8000/).
7480
3. Commit your changes (`git commit -am 'Add some feature'`)
7581
4. Push to the branch (`git push origin my-new-feature`)
7682
5. Create a new Pull Request
83+
84+
85+
## Error Monitoring
86+
87+
Error monitoring provided by Bugsnag.
88+
89+
<a href="http://www.bugsnag.com">
90+
<img src="bugsnag.png" width="200" />
91+
</a>

bugsnag.png

32.2 KB
Loading

0 commit comments

Comments
 (0)