Skip to content

Commit

Permalink
Add Brunch fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jan 5, 2017
1 parent 3302174 commit fe8d64e
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions fixtures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ open http://localhost:9000/fixtures/globals.html
open http://localhost:9000/fixtures/requirejs.html
open http://localhost:9000/fixtures/systemjs.html
open http://localhost:9000/fixtures/browserify/index.html
open http://localhost:9000/fixtures/brunch/index.html
open http://localhost:9000/fixtures/rjs/index.html
open http://localhost:9000/fixtures/systemjs-builder/index.html
open http://localhost:9000/fixtures/webpack/index.html
Expand Down
2 changes: 2 additions & 0 deletions fixtures/brunch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
output.js
output.js.map
16 changes: 16 additions & 0 deletions fixtures/brunch/app/initialize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var React = require('react');
var CSSTransitionGroup = require('react-addons-css-transition-group');
var ReactDOM = require('react-dom');

ReactDOM.render(
React.createElement(CSSTransitionGroup, {
transitionName: 'example',
transitionAppear: true,
transitionAppearTimeout: 500,
transitionEnterTimeout: 0,
transitionLeaveTimeout: 0,
}, React.createElement('h1', null,
'Hello World!'
)),
document.getElementById('container')
);
10 changes: 10 additions & 0 deletions fixtures/brunch/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
exports.config = {
paths: {
public: '.',
},
files: {
javascripts: {
joinTo: 'output.js',
},
},
};
17 changes: 17 additions & 0 deletions fixtures/brunch/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html>
<body>
<style>
.example-appear {
opacity: 0.01;
}

.example-appear.example-appear-active {
opacity: 1;
transition: opacity .5s ease-in;
}
</style>
<div id="container"></div>
<script src="output.js"></script>
<script>require('initialize');</script>
</body>
</html>
16 changes: 16 additions & 0 deletions fixtures/brunch/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var React = require('react');
var CSSTransitionGroup = require('react-addons-css-transition-group');
var ReactDOM = require('react-dom');

ReactDOM.render(
React.createElement(CSSTransitionGroup, {
transitionName: 'example',
transitionAppear: true,
transitionAppearTimeout: 500,
transitionEnterTimeout: 0,
transitionLeaveTimeout: 0,
}, React.createElement('h1', null,
'Hello World!'
)),
document.getElementById('container')
);
10 changes: 10 additions & 0 deletions fixtures/brunch/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "brunch-test",
"devDependencies": {
"brunch": "^2.9.1",
"javascript-brunch": "^2.0.0"
},
"scripts": {
"build": "rm -rf public && ln -fs ../../../build/packages/react node_modules/react && ln -fs ../../../build/packages/react-dom node_modules/react-dom && ln -fs ../../../build/packages/react-addons-css-transition-group node_modules/react-addons-css-transition-group && brunch build"
}
}

0 comments on commit fe8d64e

Please sign in to comment.