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

kyt

Package Overview
Dependencies
Maintainers
2
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kyt

kyt is a toolkit that encapsulates and manages the configuration for web apps.

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6K
increased by93.31%
Maintainers
2
Weekly downloads
 
Created
Source

kyt

Every sizable JavaScript web app needs a common foundation: a setup to build, run, test and lint your code. kyt is a toolkit that encapsulates and manages the configuration for web apps.

Read more about kyt in our blog post.

Build Status Dependency Status npm

Quick Start

  1. Install Node.js (v6.0+ required).
  2. Create a directory with a package.json file
  3. npm install --save kyt
  4. node_modules/.bin/kyt setup - This will set up your project with application and configuration files so that you can get started with kyt. Learn more about setup.
  5. npm run dev
  6. Check out http://localhost:3000

We recommend installing kyt as a dependency in your project.

How it Works

kyt manages configuration for all aspects of development. It can be installed as an npm dependency into a new or existing project. kyt’s goal is to encapsulate only development tools, giving users the freedom to control their source directory and make important decisions about app architecture. kyt provides a command line interface for running all development tools.

kyt's base features include:

  • A Node server provided for rendering front-end page requests
  • Client and server hot reloading
  • ES-Latest stable features using Babel.
  • CSS Module and SASS support
  • Inline SVG support
  • Style and script linter rulesets
  • A pre-configured test runner with Jest

Developers design their own architecture, choosing the tools they need for rendering, styling, and handling data.

For advanced use cases, kyt enables developers to add additional tools and configuration. See our config override instructions for details, and our recipes for examples.

Command line

kyt includes a command line program with all the commands needed for development.

setup includes these commands as scripts in your package.json:

npm run dev

Or you can run a command using node_modules/.bin/kyt command

node_modules/.bin/kyt build
  • setup sets up kyt and installs a starter-kyt
  • dev starts a development environment
  • build compiles server and client code for production use
  • start runs production code
  • test runs all tests in /src
  • proto starts the prototyping app
  • lint lints src code using ESLint
  • lint-style lints src code using Stylelint
  • help shows commands and their documentation

See our CLI docs for further details.

Conventions

kyt follows a few simple conventions.

All projects must have the following structure:

  src/
    client/
      index.js
    server/
      index.js

Each index.js file acts as the build entry. If you're setting up a new project our full list of conventions.

Configuration

kyt allows you to specify options in a kyt.config.js file. See the kyt config docs for instructions.

kyt uses Webpack to compile src code and run tests. See our recipes for extending configuration.

starter-kyts

While kyt can be easily integrated into new or existing Node projects, it is even more powerful when used with a starter-kyt. A starter-kyt offers the benefits of boilerplates while minimizing the amount of new tools to learn and maintain. The kyt CLI includes a setup command which installs any preconfigured starter-kyt git repository, adding additional dependencies and building a source directory.

See our recommended list of starter-kyts

How to build a starter-kyt

Community supported starter-kyts can be built to support a variety of projects. See additional info on how to build a starter-kyt.

How to contribute to kyt

Want to help? See details here

Need Help?

  1. Check our FAQ
  2. Submit an issue
  3. Check out our recipes for extending kyt

Changelog

Changelog

FAQs

Package last updated on 30 Sep 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