Giter Site home page Giter Site logo

fullstack-template-creation-action's Introduction

Fullstack Template Creation Action

A GitHub action that gets run when the fullstack-template repo is used to initialize a different repo. In some places I've worked, we clone from a template repository frequently. As part of that cloning process, we would spend ~1 hour each time renaming files to match the new repo name. This action will automatically do all that renaming, saving a lot of time.

What does this action do?

The action does the following:

  1. Renames the API folder to be the name of the repo (e.g. "animal-tracker-api" if the repo is named "animal-tracker")
  2. Renames the frontend folder to be the name of the repo (e.g. "animal-tracker" if the repo is named "animal-tracker")
  3. Renames all instances of api-template-name in the API folder to the name of the repo (e.g. "AnimalTracker" if the repo is named "animal-tracker")
  4. Renames all instances of frontend-template-name in the frontend folder to the name of the repo (e.g. "Animal Tracker" if the repo is named "animal-tracker")

Usage

To use this action, add the following to your workflow:

- name: Fullstack Template Creation Action
  uses: byu-life-sciences/[email protected]
  with:
    name-to-replace-with: ${{ github.repository }}
    api-template-name: CAP
    frontend-template-name: React DAB!

Where api-template-name is the name of the API template (e.g. "CAP") and frontend-template-name is the name of the frontend template (e.g. "React DAB!") you are trying to replace with the GitHub repo name.

Compiling the action

To compile the action after changing the JS source file, run the following command:

npm i -g @vercel/ncc
ncc build index.js --license licenses.txt

For more information

Visit GitHub's official documentation on creating JS actions

Author: Andrew Peterson (for questions; or you can just change the code)

fullstack-template-creation-action's People

Contributors

andrewpeterson99 avatar

Watchers

 avatar

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.