create-lens-studio-project

1.0.2 • Public • Published

Create Lens Studio Project

Quickly scaffolds a new Lens Studio project in Node.js by setting up linting, formatting, and building tools. It makes it easier to organize your code and enable code splitting just like on the web!

Prerequisites

Usage

Make sure you've got NodeJS and Yarn installed (see links in prerequisites section). Create a new Lens Studio project, or choose an existing one. Open up a terminal in your Lens Studio Project directory and run the following command:

yarn create lens-studio-project <lens-name>

This will download and run this starter in order to create a new Lens Studio project.

Examples:

# Navigate to your Lens Studio directory
cd path/to

# Run the starter
yarn create lens-studio-project my-lens
# Or combine the two commands
yarn create lens-studio-project /path/to/my-lens

Features

  • [x] Lints & formats .js files.
  • [x] Formats .json and .md files

Functionality

pre-commit git hook

  • Lints (and formats), and attempts to autofix your staged (.js) files through ESLint (extending Airbnb and Prettier)
  • Formats and attempts to autoformat your staged (.json, .md) files through Prettier

Readme

Keywords

none

Package Sidebar

Install

npm i create-lens-studio-project

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

38.5 kB

Total Files

44

Last publish

Collaborators

  • tom.klaversma