All Projects → glekner → generator-react-domain

glekner / generator-react-domain

Licence: MIT license
Generate React Components with Domain-Driven File Structuring ❄️

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to generator-react-domain

domain-word
Tells you which "words" can be written as a publicly available domain
Stars: ✭ 40 (+122.22%)
Mutual labels:  domain
hosts
冷莫(trli)的规则唯一一个提供全球比较全的库Cold Mo (TRLI) rules is the only one to provide a global comparison of the library.
Stars: ✭ 4 (-77.78%)
Mutual labels:  domain
mac os scripts
Some scripts for automating Windows domain stuff for MacOS machines
Stars: ✭ 27 (+50%)
Mutual labels:  domain
Malicious Domain Whois
🔰 非法域名挖掘与画像系统
Stars: ✭ 69 (+283.33%)
Mutual labels:  domain
BlackIQ.ir
BlackIQ.ir Source Code
Stars: ✭ 14 (-22.22%)
Mutual labels:  domain
keycloak-home-idp-discovery
Keycloak: Home IdP Discovery - discover home identity provider or realm by email domain
Stars: ✭ 42 (+133.33%)
Mutual labels:  domain
guessTor
Bruteforces [.onion] domains
Stars: ✭ 78 (+333.33%)
Mutual labels:  domain
ucsunivention
⚫ Curso GRÁTIS SAMBA-4 UCS Univention Core Free 5.x Domain Controller Active Directory Open Source
Stars: ✭ 29 (+61.11%)
Mutual labels:  domain
Cloudflare-dns-update
Allows me to update my CloudFlare dns record so that I can have access to my server with a dynamic IP
Stars: ✭ 35 (+94.44%)
Mutual labels:  domain
DDD
Domain-Driven Design is a software development approach in which it utilizes concepts and good practices related to object-oriented programming.
Stars: ✭ 51 (+183.33%)
Mutual labels:  domain
hipanel
Control panel for hosting, domains and more
Stars: ✭ 44 (+144.44%)
Mutual labels:  domain
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (+105.56%)
Mutual labels:  domain
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+755.56%)
Mutual labels:  domain
GitPageHijack
OK now. Let's hijack github user's custom domain.
Stars: ✭ 45 (+150%)
Mutual labels:  domain
laravel-module-loader
THIS PACKAGE HAS BEEN DEPRECATED — A lightweight package to organize your code into contextual modules.
Stars: ✭ 76 (+322.22%)
Mutual labels:  domain
extract-domain
Extract domain name from an URL
Stars: ✭ 22 (+22.22%)
Mutual labels:  domain
registry
TLD Management Software
Stars: ✭ 32 (+77.78%)
Mutual labels:  domain
TASNET
Time-domain Audio Separation Network (IN PYTORCH)
Stars: ✭ 18 (+0%)
Mutual labels:  domain
icinga-domain-expiration-plugin
Icinga2/Nagios plugin for checking domain expiration
Stars: ✭ 24 (+33.33%)
Mutual labels:  domain
Dumb
Dumain Bruteforcer - a fast and flexible domain bruteforcer
Stars: ✭ 54 (+200%)
Mutual labels:  domain

generator-react-domain

Coverage Status Build Status

This Generator helps you create connected React components with the Domain file structure ❄️

$ tree
.
├── Component.fixtures.js
├── Component.js
├── ComponentActions.js
├── ComponentConstants.js
├── ComponentHelper.js
├── ComponentReducer.js
├── ComponentSelectors.js
├── __tests__
│   ├── Component.test.js
│   ├── ComponentActions.test.js
│   ├── ComponentIntegration.test.js
│   ├── ComponentReducer.test.js
│   └── ComponentSelectors.test.js
├── component.scss
└── index.js

Usage

# install
npm install --global yo generator-react-domain

# run it        # destination  # name
yo react-domain src/components ComponentName

Options

  • --redux - Create Redux files.

Tests

This generator is using an external package called react-redux-test-utils to create light and readable test templates for your components. The package uses enzyme at its core.

Config

create a .yo-rc.json file in your project's root folder and fill it:

{
  "generator-react-domain": {
    "templatesPath": "path to your templates folder",
    "componentsPath": "path to your components folder",
    "redux": true # create redux files,
    "yarn": true # use yarn instead of npm
  }
}

Replacing Templates

To learn how to create Templates, refer to ejs.co

  1. fill your .yo-rc.json file in your project's root folder with templatesPath as seen above.
  1. Put supported files in your templates folder, make sure to be case-sensitive.
File Description Has Template
Component.js Component
Component_test.js Component Test
Actions.js Redux Actions
Actions_test.js Actions Test
Reducer.js Redux Reducer
Reducer_test.js Reducer Test
Selectors.js Redux Selectors
Selectors_test.js Selectors Test
index.js Index file
Integration_test.js Redux Flow Test
Constants.js Constants
Helper.js Helper methods
Scss.js SCSS File
Fixtures.js Fixtures/Mocks

All Templates receive the following props

  <%= name %>       # Pascal case name
  <%= name_upper %> # Uppercased name
  <%= name_lower %> # Camel case name

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].