Snapshot của nytimes/kyt: 1.9k★ · JavaScript. Starting a new JS app? Build, test and run advanced apps with kyt 🔥
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This project is still used internally at the new york times but has long been deprecated. Please don't expect any support or documented releases going forward.
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.
Quick Start
Install Node.js (v14.0+ required). On Mac, this is as simple as:
brew install nvm
nvm use
yarn add kyt
yarn 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.
yarn dev
Check out http://localhost:3000
Features
Isomorphic rendering of JavaScript apps
Client and server hot-reloading in dev
Babel presets for general ES6 support and React
ESLint configuration and custom rules
Jest presets for running unit tests and CSS-in-JS linting
Optional client-only and server-only modes
Ability to override Webpack configuration from kyt.config.js
How it Works
kyt manages configuration for all aspects of development. It can be installed as a 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.
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.
Setting up a kyt project
kyt setup is a utility for bootstrapping kyt projects and installing starter-kyts. It can be run to create a new project or integrate kyt with an existing project.
See the kyt documentation for more details.
Command line
kyt includes a command line program with all the commands needed for development.
Running kyt setup includes these commands as scripts in your package.json:
yarn dev
Or you can run a command using yarn kyt {command}:
yarn kyt build
Here are the available commands:
dev starts a development environment
build compiles server and client code for production use
(Note that server/index.js is not required if hasServer is false in config).(Note that client/index.js is not required if hasClient is false in config).
If you're setting up a new project see 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.
See our recipes for extending configuration.
kyt respects Babel config files defined at the root of user projects, and provides presets to provide opinionated configurations. (If no Babel config file is defined in the user project, babel-preset-kyt-core is used when compiling Webpack.)
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 a boilerplate while minimizing the amount of new tools to learn and maintain.
The kyt setup command installs any preconfigured starter-kyt git repository, adding additional dependencies and building a source directory.
How to build a starter-kyt
See additional info on how to build a starter-kyt.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/nytimes/kyt là nguồn chính thức.
nytimes/kyt có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho nytimes/kyt. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
nytimes/kyt có trang demo không?
Dự án có trang chủ ở https://open.nytimes.com/introducing-kyt-our-web-app-configuration-toolkit-9ccddf6f6988. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
nytimes/kyt là gì?
nytimes/kyt (nytimes/kyt) là dự án JavaScript trên GitHub. Theo mô tả gốc: Starting a new JS app? Build, test and run advanced apps with kyt 🔥
Đọc đầy đủ README ở tab phía trên.
Chưa chắc kyt có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về kyt.