npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-automater

v1.0.3-alpha

Published

React Automate Liner (Ral) automates the process of making directories or folders. You can use the ral command in the terminal to make a directory or folder.

Downloads

18

Readme

React Automate Liner (Ral)

React Automate Liner (Ral) automates the process of making directories or folders. You can use the ral command in the terminal to make a directory or folder.

RAL is a implementation of Unix shell commands portable with Multi-Platform like Windows/MacOS/Linux

maintained - yes OS - Windows OS - Linux OS - macOS Made with Bash License

Installation

RAL CLI is available as an npm package. If you have Node.js installed locally, you can install it by running the below command:

  npm install -g ral

Quick Start

After installing RAL, you can use the RAL command line interface in your terminal.

Node version: v18.8.0
Usage: React Component Generator [options] [command]

Create a React Component Generator

Options:
  -V, --version                      output the version number
  -h, --help                         get help for a specific command

Commands:
  component|comp [options] <string>  It generates a React component in the component file
  
  init                               Creates a project structure
                                     
  help [command]                     display help for command

To add customreact.config.json file to the folder path, your folder should follow an an default structure

Custom config file

{
    "FolderStructure": {
        "MainFolder": "src",
        "ComponentFolder": "src/components",
        "AssetsFolder": "src/assets",
        "LayoutFolder": "src/layout",
        "RouteFolder": "src/routes",
        "ServicesFolder": {
            "path": "src/services",
            "default": false
        },
        "PagesFolder": {
            "path": "src/pages",
            "default": false
        },
        "ConfigFolder": {
            "path": "src/config",
            "default": false
        }
    },
    "React": {
        "extension": "jsx"
    },
    "NeedTestComponent": false
}

By using the above data, users can change the names of the folders.

Note : You must have customreact.config.json file in your folder to work with RAL. Otherwise you will get an error in CLI or CLI asks for suggestions to automatically create a config file in your project folder.

Main Folder Structure

├── src
│   ├── components
│   │   ├── **/*.jsx
|   |   ├── **/*.js
│   ├── assets
│   ├── layout 
│   │   ├── **/*.jsx
|   |   ├── **/*.css
│   ├── routes
│   │   ├── **/*.jsx
|   |   ├── **/*.js

Component Creation Guide

React components can be created using the following commands:

To Create a component run

ral components | comp | c <string>

By using these three keywords, you can create components in the React project.

Components can be placed where ever you want in the folder in component , layout,routes

To Create a Component for a Speific Folder

This command provides information about which specific folder the component should be created in.

ral c -h
Node version: v18.8.0
Usage: React Component Generator component|comp [options] <string>

Generates a React Component in component file

Options:
  -c          Create a Component inside a component folder
  -l          Create a Component inside a LayoutFolder
  -r          Create a Component inside a RouteFolder
  -w          Create a <String> Folder Wrap with file and css
  -t          Create a test file for component
  -h, --help  display help for command

Wrap a Folder Component

├── src
│   ├── Wrapper (Component Folder)  
│   │   ├── **/*.jsx
|   |   ├── **/*.css

This command will help you put components in a specific folder.

ral c <string> -w

RAL will help you create a component, and now you can customise your workflow with your own folder names in one config file.

License

React Automate Linear is an open source package that falls under MIT License