You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@codemaskinc/create-app-template

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

@codemaskinc/create-app-template

## Build

0.2.0
unpublished
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
4
Weekly downloads
 
Created
Source

@codemaskinc/create-app-template

Build

yarn run build
@codemaskinc/create-app-template

CLI

$ @codemaskinc/create-app-template --help

  Usage
    $ @codemaskinc/create-app-template

  Options
    --npm Use npm 
    --yarn Use yarn
    --pnpm Use pnpm
    --bun Use bun
    --template (React, React Native, Astro, NestJS)

  Examples
    $ @codemaskinc/create-app-template --bun --template React

Creating / Editing template

Edit base template

Templates are located in templates folder in the root of repo (example - template/react/base) This whole folder will be copied when creating new app

Adding extras

We can add extra functions to our template, they can be optionally selected when creating new project (example - template/react/extras/form)

Files from extras folder will be combined with files from base template. If there are two file with the same location (usually index.ts's) text from extra file will be placed in the bottom of the original one

You need to also define extras in other places in code

In src/data/questions/extras.ts there is extras object, you can add properties to array inside extras.options[Template] to enable selection of new extras. label - text that appear in list of extras value - name of folder where extras is placed

If your extras should install new package you can add them in src/data/packages.ts (the keys are extras folder names)

Keywords

react

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts