Giter VIP home page Giter VIP logo

denominator's Introduction

🔴Work In Progress🔴

Denominator 🔱

A wannabe user-friendly and customizable cli for manifesting React components.

Why?Getting startedConfigurationUsage

DevelopmentRoadmapCredits


Why? 💡

In a nutshell I wanted a tool that saves me from doing repetitive task of creating boilerplate for components. This is a npm package for adding new React components in your project. Pretty straight forward to use and requires no configurations, completely configurable, though 😵‍💫.


Getting started 🚥

Install via NPM:

# Using Yarn:
$ yarn global add denominator

# or, using NPM
$ npm i -g denominator

cd into your project's directory, and try creating a new component:

$ damn -c Button -ext js

Your project will now have a new directory at src/components/Button. This directory will have three files:

// `Button/index.js`
export { default } from "./Button";
// `Button/Button.js`
import React from "react";
import * as Styles from "./Button.style";

const Button = () => {
    return <Styles.Wrapper>Button</Styles.Wrapper>;
};

export default Button;
// `Button/Button.style.js`
import styled from "styled-components";

export const Wrapper = styled.div``;

This structure might appear odd to you, with an index.js that points to a named file.
Personally, for me this's has been an optimal way to set up components; the index.js allows you to import from the directory (eg. import Button from 'components/Button'), while having Button.js means that you're never lost in a sea of index.js files in your editor.



Configuration ⚙️


Usage 🤔


Development 🛠️


Roadmap 🗺️


Credits 🤝


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.