Skip to content

Commit

Permalink
Drop webpack in favour of parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
corygibbons committed Sep 30, 2018
1 parent 1675908 commit 99931e1
Show file tree
Hide file tree
Showing 8 changed files with 2,697 additions and 891 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.cache
build
node_modules
npm-debug.log
.env
config.js
*.log

.vscode
2 changes: 2 additions & 0 deletions index.ejs → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
<link href="https://fonts.googleapis.com/css?family=Anton|Overpass+Mono:300,600" rel="stylesheet" type='text/css'>
</head>
<body>
<link rel="stylesheet" type="text/css" href="./build/app.css">
<div id="root">
<div class="loading-overlay">
<div class="spinner">
Expand All @@ -115,5 +116,6 @@
</div>
</div>
</div>
<script src="./src/index.js"></script>
</body>
</html>
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "NODE_ENV=production webpack -p",
"start": "NODE_ENV=dev webpack-dev-server --inline --open"
"postcss:build": "postcss src/styles/app.css -o ./build/app.css",
"postcss:watch": "postcss src/styles/app.css -o ./build/app.css --watch",
"parcel:serve": "parcel index.html -d ./build",
"parcel:build": "parcel build index.html -d ./build",
"build": "run-s postcss:build parcel:build",
"start": "run-p postcss:watch parcel:serve"
},
"author": "Scott Mahr",
"license": "ISC",
Expand All @@ -21,18 +24,19 @@
"css-loader": "^0.23.1",
"html-webpack-plugin": "^2.15.0",
"lost": "^6.7.2",
"npm-run-all": "^4.1.3",
"parcel-bundler": "^1.10.1",
"postcss": "^5.0.19",
"postcss-cli": "^6.0.0",
"postcss-cssnext": "^2.5.2",
"postcss-extend": "^1.0.1",
"postcss-import": "^8.1.0",
"postcss-loader": "^0.8.2",
"postcss-modules": "^1.4.1",
"redux-devtools": "^3.1.0",
"redux-devtools-dock-monitor": "^1.0.1",
"redux-devtools-log-monitor": "^1.0.3",
"style-loader": "^0.13.1",
"webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1",
"webpack-merge": "^0.8.4"
"style-loader": "^0.13.1"
},
"dependencies": {
"classnames": "^2.2.3",
Expand Down
14 changes: 14 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
plugins: {
'postcss-import': {},
'postcss-functions': {
functions: {
rem: function (val) {
return `${val / 16}rem`;
}
}},
'postcss-extend': {},
'postcss-cssnext': {},
'lost': {}
},
};
7 changes: 0 additions & 7 deletions src/components/TimeSpanMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ class TimeSpanButton extends React.Component {
}

class TimeSpanMenu extends React.Component {
timespans = {
week: "Past Week",
month: "Past Month",
year: "Past Year",
allTime: "All-Time",
};

onClick(span) {
this.props.changeTimeSpan(span);
}
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { syncHistoryWithStore } from 'react-router-redux';
import Root from './containers/Root';
import configureStore from './store/configureStore';

const css = require('./styles/app');

const store = configureStore();
const history = syncHistoryWithStore(browserHistory, store);

Expand Down
141 changes: 0 additions & 141 deletions webpack.config.js

This file was deleted.

Loading

0 comments on commit 99931e1

Please sign in to comment.