Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-knit-app

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-knit-app

![CKA](cka_header.png "Create Knit App")

  • 0.0.23
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CKA

Install

yarn global add create-knit-app

Getting Started

After installing create-knit-app use it to create a new project:

create-knit-app lets-start-knitting

Follow the instruction on screen and spin up a dev server:

cd lets-start-knitting
yarn start

Open http://localhost:8080 to view your project in the browser.

To see how these components depend on each other run yarn knit -- list -d in your terminal:

List

A dependencies list is built by scanning each module for required packages. This list can then be used to determine if you have missing or unused dependencies.

Lets add a new dependency to @myscope/page-component without adding it to your root package.json

// @myscope/page-component
import 'lodash'

Now when we run yarn knit -- list -d it will show the missing dependency:

Missing

You can also check for missing dependencies by running yarn knit -- validate.

Learn more about validate here.

Missing

We can fix this by installing lodash with Yarn:

yarn add lodash

Valid

Now that we have things working lets break them again. Go back into @myscope/page-component and remove import 'lodash' and then re-run validate:

Unused

Knit is comparing the comparing the dependencies found in your modules with the dependencies saved in your root package.json and can warn you if you have missing or unused packages!

Learn more about KnitJS

You can learn more about what you can do with knit by visiting our github repo or by running yarn knit -- --help

help

FAQs

Package last updated on 18 Nov 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc