This script allows you to quickly create a new React component in your project.
- Add as a devDependency: "devops-react-components": "github:simunition715/devops-react-components"
- Create a script in package.json: "create-component": "node ./node_modules/devops-react-components/devops/scripts/create-component.js"
- Run the script using Node.js by executing the following command: npm run create-component
- Enter a name of the component formatted as you would manually such as Button/Input etc...
- Your new component will be located in ./src/components/ and will include a .tsx/.scss file