Skip to content
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

Update build system #209

Merged
merged 1 commit into from
Mar 29, 2016
Merged

Update build system #209

merged 1 commit into from
Mar 29, 2016

Conversation

levithomason
Copy link
Member

This PR updates necessary dependencies, improves dev experience, and removes as many build dependencies as possible.

  • upgrade build system to current TA standards
  • upgrades to gulp 4 (beta)
  • remove add-module-exports plugin
  • remove karma webpack dev server test runner in favor of karma only

@levithomason levithomason force-pushed the feature/organize-build branch from ac514ac to 7a87bc5 Compare March 27, 2016 18:44
@@ -3,8 +3,5 @@
"es2015",
"react",
"stage-1"
],
"plugins": [
"add-module-exports"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this plugin in favor of using vanilla ES6 modules and require().default where necessary.

@levithomason levithomason force-pushed the feature/organize-build branch from 7a87bc5 to e66c95d Compare March 28, 2016 16:57
@@ -11,7 +11,7 @@ export default class ComponentExamples extends Component {
const examples = exampleContext.keys()
.filter(path => path.includes(`/${this.props.name}Examples.js`))
.map((path, i) => {
const Example = exampleContext(path)
const Example = exampleContext(path).default
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more add-module-exports, so we need to use the default prop when require() is used. In this case, webpack require.context()

@levithomason levithomason force-pushed the feature/organize-build branch from e66c95d to 61b0152 Compare March 29, 2016 00:33
@levithomason levithomason force-pushed the feature/organize-build branch from 61b0152 to 280d97f Compare March 29, 2016 00:34
@levithomason levithomason merged commit 86ab43d into master Mar 29, 2016
@levithomason levithomason deleted the feature/organize-build branch March 29, 2016 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant