Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@tsed/cli
Advanced tools
CLI for the Ts.ED framework
Please refer to the documentation for more details.
The CLI needs at least Node.js v12 and NPM v7/8.
npm install -g @tsed/cli
Ts.ED CLI uses the npm proxy configuration. Use these commands to configure the proxy:
npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port
Or you can edit directly your ~/.npmrc file:
proxy=http://username:password@host:port
https-proxy=http://username:password@host:port
https_proxy=http://username:password@host:port
Note: The following environment variables can be also used to configure the proxy
HTTPS_PROXY
,HTTP_PROXY
andNODE_TLS_REJECT_UNAUTHORIZED
.
Usage: tsed [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
add [options] [name] Add cli plugin to the current project
generate|g [options] [type] [name] Generate a new provider class
update [options] Update all Ts.ED packages used by your project
init [options] [root] Init a new Ts.ED project
run [options] <command> Run a project level command
help [command] display help for commands
Usage: tsed init [options] [root]
Init a new Ts.ED project
Arguments:
root Root directory to initialize the Ts.ED project (default: ".")
Options:
-n, --project-name <projectName> Set the project name. By default, the project is the same as the name directory. (default: "")
-a, --arch <architecture> Set the default architecture convention (default or feature) (default: "default")
-c, --convention <convention> Set the default project convention (default or feature) (default: "default")
-p, --platform <platform> Set the default platform for Ts.ED (express or koa) (default: "express")
--features <features...> List of the Ts.ED features. (default: [])
-m, --package-manager <packageManager> The default package manager to install the project (default: "yarn")
-t, --tsed-version <version> Use a specific version of Ts.ED (format: 5.x.x). (default: "latest")
-f, --file <path> Location of a file in which the features are defined.
-s, --skip-prompt Skip the prompt. (default: false)
-r, --root-dir <path> Project root directory
--verbose Verbose mode
-h, --help display help for command
Interactive prompt:
tsed init .
Skip prompt:
tsed init . --platform express --package-manager yarn --features swagger,jest,eslint,lintstaged,prettier --skip-prompt
A file can be defined to generate project. For example create a tsed.template.yml
and add this code:
projectName: project-example
platform: express
architecture: default
convention: default
skipPrompt: true
packageManager: yarn
features:
- graphql
- socketio
- swagger
- oidc
- passportjs
- commands
- db
- prisma
- mongoose
- typeorm
- typeorm:mysql
- testing
- jest
- mocha
- linter
- eslint
- lintstaged
- prettier
- bundler
- babel
- babel:webpack
Note: The CLI support
yml
andjson
file!
Then:
tsed init . --file ./tsed.template.yml
import {Cli} from "@tsed/cli";
Cli.dispatch("init", {
//... init options
});
Please read contributing guidelines here
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
The MIT License (MIT)
Copyright (c) 2016 - 2023 Romain Lenzotti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
CLI to bootstrap your Ts.ED project
The npm package @tsed/cli receives a total of 901 weekly downloads. As such, @tsed/cli popularity was classified as not popular.
We found that @tsed/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.