kyt-starter-universal
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "kyt-starter-universal", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -23,3 +23,3 @@ # Universal React starter-kyt | ||
- As a performance optimization, React Router routes are loaded dynamically and chunked separately using the ES2015 `System.import` directive. See more about [Webpack 2 support](https://gist.github.com/sokra/27b24881210b56bbaff7#code-splitting-with-es6) and [dynamic routing](https://github.com/reactjs/react-router/blob/master/docs/guides/DynamicRouting.md). | ||
- As a performance optimization, React Router routes are loaded dynamically and chunked separately using the ES2015 `import()` directive. See more about [Webpack 2 support](https://gist.github.com/sokra/27b24881210b56bbaff7#code-splitting-with-es6) and [dynamic routing](https://github.com/reactjs/react-router/blob/master/docs/guides/DynamicRouting.md). | ||
@@ -26,0 +26,0 @@ ## How To Contribute |
@@ -17,14 +17,14 @@ { | ||
"dependencies": { | ||
"babel-preset-kyt-react": "0.1.1", | ||
"compression": "^1.6.2", | ||
"express": "^4.14.0", | ||
"react": "^15.3.0", | ||
"react-dom": "^15.3.0", | ||
"react-router": "^2.6.1" | ||
"babel-preset-kyt-react": "0.2.0", | ||
"compression": "1.6.2", | ||
"express": "4.14.0", | ||
"react": "15.3.0", | ||
"react-dom": "15.3.0", | ||
"react-router": "2.6.1" | ||
}, | ||
"devDependencies": { | ||
"enzyme": "^2.4.1", | ||
"kyt": "0.4.0", | ||
"react-addons-test-utils": "^15.3.0" | ||
"enzyme": "2.4.1", | ||
"kyt": "0.5.0", | ||
"react-addons-test-utils": "15.3.0" | ||
} | ||
} |
@@ -26,5 +26,5 @@ | ||
App.propTypes = { | ||
children: PropTypes.node, | ||
children: PropTypes.node.isRequired, | ||
}; | ||
export default App; |
@@ -8,4 +8,4 @@ | ||
it('Test example', () => { | ||
const wrapper = shallow(<App />); | ||
const wrapper = shallow(<App>test</App>); | ||
expect(wrapper.is('div')).toBeTruthy(); | ||
}); |
@@ -7,8 +7,8 @@ | ||
// Webpack 2 supports ES2015 `System.import` by auto- | ||
// Webpack 2 supports ES2015 `import()` by auto- | ||
// chunking assets. Check out the following for more: | ||
// https://gist.github.com/sokra/27b24881210b56bbaff7#code-splitting-with-es6 | ||
// https://webpack.js.org/guides/migrating/#code-splitting-with-es2015 | ||
const importHome = (nextState, cb) => { | ||
System.import('../components/Home') | ||
import('../components/Home') | ||
.then(module => cb(null, module.default)) | ||
@@ -19,3 +19,3 @@ .catch((e) => { throw e; }); | ||
const importTools = (nextState, cb) => { | ||
System.import('../components/Tools') | ||
import('../components/Tools') | ||
.then(module => cb(null, module.default)) | ||
@@ -22,0 +22,0 @@ .catch((e) => { throw e; }); |
@@ -50,3 +50,3 @@ | ||
app.listen(port, () => { | ||
console.log(`✅ server started on port: ${port}`); | ||
console.log(`✅ server started on port: ${port}`); // eslint-disable-line no-console | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
508705
28
1