15 Commits

Author SHA1 Message Date
Chris
4f9488cb99 FEAT: Added ability to use pure components as a react base class 2016-08-10 23:33:33 +02:00
sthzg
e2add4af4d Refactored component subgen to support styles and/or cssmodules #255
This commit refactors the template structure for components to multiple
different base templates based on the required styling options:

- nostyle
- with styles
- with styles and css modules
2016-08-05 14:36:10 +02:00
sthzg
dcee97ec65 Proposed solution for #253
Wrapped Node's path.normalize() around paths that have
`componentPartPath` as a part segment. For non-namespaced components
this segment can be empty which leads to two consecutive slashes.

Updated test suite to assert against the updated import statements
in various files.
2016-07-11 01:13:46 +02:00
Chris
892f771899 Added new directory options for generated components (styles are now also generated in the components folder)
Added directory options fallbacks for version 3 and below
Prepared for inclusion of css modules
2016-06-15 15:34:26 +02:00
Chris
9867271cbb Refactored component subgenerator to use es2015 classes 2016-06-14 10:28:09 +02:00
Chris
663a49369b Added basic changes for v4.0 (base generator class refactoring) 2016-05-27 12:01:50 +02:00
Chris
832907f2fd Added minor es2015 tweaks 2016-03-29 23:01:42 +02:00
Chris
cb98c7e528 Updated sass dependencies to new versions (fixes https://github.com/newtriks/generator-react-webpack/issues/171) 2015-12-01 07:48:31 +01:00
Chris
20cbcee3fe Added missing dependencies for stylus (fixes https://github.com/newtriks/generator-react-webpack/issues/170), moved additional deps to devDependencies when installing 2015-11-24 08:42:21 +01:00
stylesuxx
312c88b0bc Added dependencies for postcss 2015-11-18 03:11:04 +01:00
Chris
685f6a75ce Added automatic generation of components displayName property. 2015-10-15 16:09:23 +02:00
Chris
66b85f48d8 Fixed missing packages when using sass/less 2015-10-12 16:34:54 +02:00
Chris
361ea7409d Added another utility #getDestinationClassName to get the final classname of a given path 2015-09-29 14:11:28 +02:00
Chris
56ff5c6281 Added new helper method #getDestinationPath to make path management in subcomponents easier 2015-09-29 13:52:58 +02:00
Chris
023d937877 Added changes for version 2.0 2015-09-21 20:45:57 +02:00