CVarisco / create-component-app

Tool to generate different types of React components from the terminal. 💻
MIT License
859 stars 58 forks source link

import styles from './undefined.css' #48

Closed oodemi closed 7 years ago

oodemi commented 7 years ago

I execute create-component-app without config.json.

The following code was generated. I want to name it COMPONENT_NAME.css.

import React from 'react'
import PropTypes from 'prop-types'
import styles from './undefined.css' // <- undefined.css :(

const Foo = ({}) => (
  <div className="Foo"></div>
);

Foo.propTypes = {}

Foo.defaultProps = {}

export default Foo

https://github.com/CVarisco/create-component-app/blob/31718fdac8946008c857eeda976c88c953d6f33f/src/defaultTemplates/js/common.template.js#L30

CVarisco commented 7 years ago

Hi @oodemi thanks a lot for your help 🙂 I'll watch why in the next few days!

Thanks a lot again 🌮

CVarisco commented 7 years ago

Hi @oodemi ! I published a new version 1.2.1 that should fix the bug 🙂 If you find other bugs please tell me 👍

Thanks a lot for your support, I appreciate 🥇

oodemi commented 7 years ago

Hi @CVarisco Thank you for Fixing !!! 👍 👍 👍