Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
generator-shimo-ts
Advanced tools
Readme
Bonjour! I'm a minimal Yeoman generator for creating NodeJS packages using TypeScript. I let you quickly setup a project with latest available tools and best practices.
I use:
You want to know if you can change any of these? Of course, why not? It is your package after all. I simply get down to business of generating, no questions asked and then quiety get out of the way!
Install generator-shimo-ts
globally.
$npm i -g generator-shimo-ts
Create a new directory and cd
into it.
$mkdir my-new-project && cd $_
Run the generator.
$yo node-typescript
You can choose to use mocha as your test framework using command - $yo node-typescript --mocha
You can choose to use ava as your test framework using command - $yo node-typescript --ava
Generate a new class and test file.
$yo node-typescript:classlib MyNewClass [--mocha | --ava]
I use latest version of TypeScript.
I use yarn in place of npm if it's available.
I use jest which is a "batteries-included" testing framework with coverage built-in (optionally mocha or ava). You write tests in TypeScript itself.
I use prettier integrated with tslint to provide no-fuss code formatting and linting.
I need no global dependencies. Every dependency such as TypeScript and tslint is installed as local dev dependency allowing you to freely use different versions of these for different packages.
I configure build
, clean
, lint
, coverage
, format
and test
tasks that you can run using Run Task
option.
You can directly run currently open source file using task Run current file
. I use ts-node to provide this functionality.
You can debug currently open source file using Debug file
launch configuration. You can also debug currently open test file using Debug test
launch configuration without the need of compiling it first. Here is the preview -
MIT
FAQs
A minimal Yeoman Generator for creating NodeJS modules using TypeScript
The npm package generator-shimo-ts receives a total of 1 weekly downloads. As such, generator-shimo-ts popularity was classified as not popular.
We found that generator-shimo-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.