dev-toolkit

Universal Development Toolkit for Javascript People

Github星跟蹤圖

dev-toolkit provides you with an easy and quick way to get started with a pre-rendered & server-rendered app. After creating your starting point with the init command, you get full customisability out of the box.

Note: Please be aware that this project will be phased out as by 2020 and I'm only making minor additions at this time. I'm happy for you to keep using dev-toolkit if you wish and will respond to important Issues or PR-requests but they won't be my top-priority. I suggest you switch to an alternative such as Next.js or razzle.

Travis branch
Vulnerabilities for dev-toolkit
npm
npm
code style: prettier
Twitter

Quick Start

$ npm install -g dev-toolkit
# Initialise a project with optional name, template, comments
# The comments explain how the `dev-toolkit` works with the template
$ dev-toolkit init [project_name] [--template template_name] [--skip-comments]

List of available templates

* used by default when initialising a new project

? Docs

? Features

dev-toolkit is intentionally minimalist on features. It's meant to get you started quickly with a project where you will need customisability instead of mandating which technologies that you must use (such as Jest).

  • SSR by default
  • Ability to pre-render after webpack creates a build
  • Complete control over client & server
    see template docs
  • Start your project without bloat or guidance if you like it rough
    dev-toolkit init --template minimal --skip-comments
  • Full control over your server-rendered template
    no webpack lock-in such as with html-webpack-plugin unless you choose to
  • hot-reload on client & server, opt-in for both
  • Easy way to integrate any nodeHooks for SSR usage
    using /nodeHooks.js
  • Easy way to add webpack plugins and presets
    using /dev-toolkit.config.js
  • use select environment variables on client
    using import { sharedEnvs } from 'dev-toolkit/settings'
  • you can use sane if-statements, jsx-control-statements
    <If condition={true}> ... </If> will compile down to &&-syntax

Compatibilty

Node.js 8.9.4 or higher suggested. You can use lower versions but you might not have arrow-functions or async/await support available. See Node.js compatibility table for more information.

Why No CSS by default?

The aim of dev-toolkit is to be unopinionated so that it can be useful in many different scenarios. Therefore only the most necessary dependencies are included and other additions may be provided by yourself (see the other template examples for guidance).

With CSS-in-JS solutions on the rise, it would be unwise to include dependencies for css-modules, sass or less in every project that has dev-toolkit as a dependency, it would introduce additional installation time and bloat.

Contributing

See Contributing.md

主要指標

概覽
名稱與所有者stoikerty/dev-toolkit
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證
所有者活动
創建於2015-01-29 09:58:55
推送於2025-03-18 21:57:02
最后一次提交2019-08-23 10:14:11
發布數58
最新版本名稱v7.3.0 (發布於 2018-10-12 11:36:03)
第一版名稱v1-middleman (發布於 2016-03-05 13:55:16)
用户参与
星數133
關注者數6
派生數9
提交數551
已啟用問題?
問題數19
打開的問題數0
拉請求數48
打開的拉請求數105
關閉的拉請求數19
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?