Switch to being a website instead of a Chrome app.
Update our CNAME to be the more appropriate "prototype.useducky.com" when we
deploy.
Create a homepage and a non-onboarding page template. This mostly consisted of
setting up a header component and the associated styles, and then a logged-in
vs. guest flavor of said header, changing the links appropriately.
We also created a simple homepage that describes what Ducky is and does, and
gave a jumping-off point for it.
Stubbed out a basic links page, just to get an idea for what the homepage would
be like when a logged-in user navigated to the homepage (e.g., not the marketing
copy).
Updated our login page to _actually work_, and redirected it to the new URL for
the payment setup page.
Updated the payment page to actually create a subscription, and moved it from
/register/payment to just /payment.
Fixed a bug in our registration page that was looking for an invalid_form error
when it really meant an invalid_format error. Ooops. Also, updated it to point
to the new /payment endpoint instead of /register/payment.
Updated our router to use the new homepage, the new links page, and updated the
URL for the payment page.
Updated our button styles so they should all have the right font color, padding,
and border-radius, but could've potentially screwed something up. Oops.
Updated our backgrounds all over to have a transparent-y white background behind
the content, and a simple pattern for the rest of the body. Not sure how I feel
about it just yet, but I'm not going to keep futzing with it.
1 require('babel/register')
2 var webpack = require('webpack')
3 var ExtractTextPlugin = require('extract-text-webpack-plugin')
4 var path = require('path')
5 var neat = require('node-neat').includePaths
6 var env = process.env.NODE_ENV || 'development'
8 module.exports = function () {
9 var isDev = env !== 'production'
10 var cssLoader = isDev ? 'css-loader?sourceMap' : 'css-loader?sourceMap'
11 var sassLoader = isDev ? 'sass-loader?sourceMap' : 'sass-loader?sourceMap'
12 var bourbonPaths = neat.map(function(p) {
13 return "includePaths[]=" + p
15 if (sassLoader.indexOf('?') === -1) {
20 sassLoader += bourbonPaths
22 entry: path.join(__dirname, 'src', 'main.js'),
24 path: path.join(__dirname, 'build', 'static'),
25 publicPath: '/static/',
30 { test: /(\.js$)|(\.jsx$)/, loader: 'babel-loader', exclude: /node_modules/ },
31 { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', cssLoader) },
32 { test: /\.scss$/, loader: ExtractTextPlugin.extract('style-loader', cssLoader + '!' + sassLoader) },
33 { test: /\.(svg|png|jpg|jpeg)$/, loader: 'url-loader?limit=8192'}
37 extensions: ['', '.js', '.jsx', '.scss']
39 plugins: [new ExtractTextPlugin("main.css")],
40 modulesDirectoires: ["node_modules"],
41 devtool: 'source-map',
44 manifest.host = '0.0.0.0'
45 manifest.port = '3000'
46 manifest.devtool = 'source-map'
48 if (typeof manifest.entry === 'string') {
49 manifest.entry = [manifest.entry]
52 manifest.entry.unshift(
53 'webpack-dev-server/client?http://' + manifest.host + ':' + manifest.port,
54 'webpack/hot/dev-server'
57 manifest.plugins = manifest.plugins.concat([
58 new webpack.HotModuleReplacementPlugin(),
59 new webpack.NoErrorsPlugin()
62 if (manifest.module.loaders[0].loader && !manifest.module.loaders[0].loaders) {
63 manifest.module.loaders[0].loaders = [manifest.module.loaders[0].loader]
64 delete manifest.module.loaders[0].loader
67 manifest.module.loaders[0].loaders.unshift('react-hot')
69 manifest.plugins.push(
70 new webpack.optimize.DedupePlugin(),
71 new webpack.optimize.OccurenceOrderPlugin(true),
72 new webpack.optimize.UglifyJsPlugin({
80 new webpack.DefinePlugin({
81 'process.env': {NODE_ENV: JSON.stringify('production')}