Socket
Book a DemoInstallSign in
Socket

create-leaflink-spa

Package Overview
Dependencies
Maintainers
0
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-leaflink-spa

A streamlined way to setup new SPA projects within Leaflink

1.3.0
latest
npmnpm
Version published
Maintainers
0
Created
Source

The recommended way to create a new front-end single page application (SPA) at LeafLink.

Usage

In the terminal, run npm create leaflink-spa and follow the prompts to configure a new project and create a project directory. To be consistent with our other SPAs, the generated project has a directory structure based on marketplace-web, with everything you should need to get started with a new SPA.

In addition, an /iac directory is created that contains Terraform configs needed to provision your new project as a Github repo, along with a readme with instructions. Terraform configs for environment provisioning contain secrets and should be requested in #devops-support-requests when you are ready to deploy.

Frontend Stack

Currently, front-end applications at LeafLink are built and maintained with the following core stack, included out of the box with this initializer.

Core

  • @auth0/auth0-vue (auth platform integration, with helper code in app)
  • axios (network, with auth)
  • date-fns (date utilities)
  • tailwindcss (CSS utility classes)
  • typescript (typescript support)
  • vite (dev server)
  • husky (local commit checks)

Application

  • @leaflink/stash (design system)
  • @tanstack/vue-query (query state management)
  • pinia (local state management)
  • vue-router (routing)
  • vue (everything else)

Testing

  • @faker-js/faker (random data generation, with helper code in app)
  • @testing-library/vue (test framework)
  • vitest (test runner)

Motivation

To support growth and replatforming at LeafLink, we need consistent and repeatable processes to create new front-end codebases. create-leaflink-spa provides an npm initializer that creates a new SPA project following our existing standards and practices for front-end applications.

Additional Resources

FAQs

Package last updated on 06 Nov 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.