-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@kanaabe => Replace Browserify with Webpack #1785
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c33bf78
Add Webpack and associated libraries
damassi ff39183
Add webpack-dev-server to Force pipeline
damassi 9bd04b2
Add NODE_ENV=production compilation config
damassi a2f66c4
Better terminal UX
damassi 23429fb
Add Pug loader
damassi 057abf9
Dynamically compile assets in /env/assets folders
damassi 5ac780e
All errors fixed
damassi 03e8a81
Solve vendor, minification issues
damassi 4b3aad9
Add hard-reloads if hot-reload not enabled
damassi 65d4811
Add react-transform-hmr for auto listeners
damassi 6b896bd
Fix hotloading and add babel-preset-env
damassi f20296b
Update chunks num
damassi e5f1547
Update yarn.lock
damassi 75b4601
[Rebase]
damassi a5a4f97
Fix webpack + jade; cleanup
damassi d5e9882
Consolidate `yarn start / dev` commands
damassi 61f8233
Sync master
damassi 80b0ba8
Fix jquery-waypoint usage
damassi 0a067e4
[Patch] jquery-waypoint usage
damassi af2442f
Add WEBPACK_DEVTOOL to .env
damassi 6c47214
Fix styled-components displayLabel issue
damassi cb79d5d
Fix failing test
damassi 5ba12dd
Guard in test env
damassi eefcce1
Address feedback
damassi 2583561
Fix tests
damassi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import { App } from './components/App' | ||
|
||
ReactDOM.render( | ||
<App />, document.getElementById('react-root') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { Component } from 'react' | ||
import styled from 'styled-components' | ||
|
||
const Container = styled.div` | ||
background: black; | ||
font-size: 40px; | ||
color: white; | ||
` | ||
|
||
export class App extends Component { | ||
render () { | ||
return ( | ||
<Container> | ||
hi!!!!! 10 | ||
</Container> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import express from 'express' | ||
import webpack from 'webpack' | ||
import path from 'path' | ||
|
||
const app = module.exports = express() | ||
const config = require(path.join(process.cwd(), 'webpack.config')) | ||
const compiler = webpack(config) | ||
|
||
app.use(require('webpack-hot-middleware')(compiler, { | ||
log: false | ||
})) | ||
|
||
app.use(require('webpack-dev-middleware')(compiler, { | ||
quiet: true, | ||
publicPath: config.output.publicPath, | ||
serverSideRender: true, | ||
stats: { | ||
colors: true | ||
} | ||
})) | ||
|
||
// Testbed for various configurations | ||
app.get('/webpack', (req, res, next) => { | ||
res.send(` | ||
<html> | ||
<head> | ||
<title>Webpack Test</title> | ||
</head> | ||
<body> | ||
<div id='react-root' /> | ||
<script src='/assets/common.js'></script> | ||
<script src='/assets/webpack.js'></script> | ||
</body> | ||
</html> | ||
`) | ||
}) |
3 changes: 2 additions & 1 deletion
3
mobile/apps/galleries_institutions/client/galleries_institutions.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change this to mention
http://localhost:${PORT}
then the URL will be command+clickable in macOS terminals ;)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, this is deliberate so that the "compile" and "launch" phases remain distinct and the user doesn't open a browser to broken page. Once webpack is finished it outputs a clickable link 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah kk 👍