Skip to content

Commit

Permalink
Setup Rollup, remove old deps and load them as plain scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalygin committed Dec 16, 2018
1 parent e3874ac commit f9457c5
Show file tree
Hide file tree
Showing 17 changed files with 1,471 additions and 265 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"@babel/preset-env",
["@babel/env", { "modules": false }],
"@babel/preset-react"
]
}
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.cache
node_modules
yarn-error.log
stats.html

dist/webpack/bundle.js
dist/parcel/*
dist/webpack/bundle*
dist/parcel/*
dist/rollup/bundle*
1 change: 0 additions & 1 deletion app/src/components/WaveformSc/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import PropTypes from 'prop-types';
import React from 'react';
import Waveform from 'waveform.js';
import { normalizeSamples } from '../../services/track';

const WAVE_COLOR = '#61B25A';
Expand Down
4 changes: 3 additions & 1 deletion app/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

<body>
<div id="app"></div>
<script src="https://connect.soundcloud.com/sdk/sdk-3.3.1.js"></script>
<script src="./waveform.js"></script>
<script src="./index.js"></script>
</body>
</html>
</html>
6 changes: 1 addition & 5 deletions app/src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
/* eslint-disable */
import SC from 'soundcloud';
/* eslint-enable */

import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';

import configureStore from './stores/configureStore';
import App from './components/App';

require('../styles/index.scss');
import '../styles/index.scss';

const store = configureStore();

Expand Down
3 changes: 1 addition & 2 deletions app/src/stores/configureStore.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import mixpanel from './mixpanel';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from '../reducers/index';

const createStoreWithMiddleware = applyMiddleware(thunk, mixpanel)(createStore);
const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);

export default function configureStore(initialState) {
const store = createStoreWithMiddleware(
Expand Down
73 changes: 0 additions & 73 deletions app/src/stores/mixpanel.js

This file was deleted.

Loading

0 comments on commit f9457c5

Please sign in to comment.