代码拉取完成,页面将自动刷新
Using npx to generate a latest (2021) Typescript development environment for node.js side
This setup is using esbuild (claim to be 3 times faster than webpack / babel) and ava.js a real modern testing suite for node.js (My options ava.js is way way way better than this joker)
$ npx create-tsdev
or use npm
$ npm init tsdev
Please note you need to init your project before you can use this tool.
You could also install this globally with npm install --global create-tsdev
then just call it
$ create-tsdev
From 0.8.x, all the options are optional.
--to /where/your/project/root
: By default it will init the TS dev env inside your project root. Or you can pass --to /where/your/project/root
. So it will switch over to that folder.--skipInstall
: it won't run the npm install
in the end.--install [packageManager]
We don't run install from now on unless you specify the package manager (default: npm
, support pnpm
, yard
)--action
: options are github
(will add github.yml
template) or gitlab
(will add gitlab.yml
)--tpl
: 0.8.x use cli
template by default
cli
: (--tpl cli
default) If there is no src
folder in your project root. Then it will create some template files (as well as a tests directory with a test file in it). If you pass this option then it will skip this step entirely.koa
: (--tpl koa
) this will set up code and templates for a Koa based project.The idea is based on this blog post
Joel Chu (c) 2022
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。