Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@opendevstack/generator-node-express-typescript
Advanced tools
A minimal Yeoman Generator for creating NodeJS modules using TypeScript and including a minimal express server.
This is a fork of this generator but I added express to it.
I'm a minimal Yeoman generator for creating NodeJS express servers using TypeScript. I let you quickly setup a project with latest available tools and best practices.
I use:
I don't use: a UI renderer or anything visual I am a pure API targeted generator. So with me, you should build REST API's.
You want to know if you can change any of these? Of course, why not? It is your module after all. I simply get down to business of generating, no questions asked. Once done, I get out of the way and you can do as you please!
Install generator-node-express-typescript
globally. If you are planning to use gulp, install gulp-cli
globally.
$npm install -g generator-node-express-typescript
Create a new directory and cd
into it.
$mkdir my-new-project && cd $_
Run the generator.
$yo node-express-typescript
You can choose to use gulp as your build system using command - $yo node-express-typescript --gulp
Run npm run
for information on available tasks.
$npm run
Lifecycle scripts included in node-ts:
test
npm run build && mocha --compilers ts:ts-node/register --recursive test/**/*-spec.ts
coverage
nyc --reporter=text --reporter=html mocha --compilers ts:ts-node/register
available via `npm run-script`:
clean
rimraf lib
lint
tslint --format verbose 'src/**/*.ts'
build
npm run clean && npm run lint && echo Using TypeScript && tsc --version && tsc --pretty
coverage
nyc --reporter=text --reporter=html mocha --compilers ts:ts-node/register
watch
npm run build -- --watch
watch:test
npm run test -- --watch
If you choose to use gulp, you can find the available tasks using command gulp help
.
$gulp help
Usage
gulp [TASK] [OPTIONS...]
Available tasks
build Compiles all TypeScript source files [lint]
clean Cleans the generated js files from lib directory
help Display this help text.
lint Lints all TypeScript source files
test Runs the mocha test specs [build]
watch Watches ts source files and runs build on change
build
, clean
, lint
, coverage
and test
tasks that you can run using Run Task
option.MIT
FAQs
A minimal Yeoman Generator for creating NodeJS modules using TypeScript and including a minimal express server.
The npm package @opendevstack/generator-node-express-typescript receives a total of 2 weekly downloads. As such, @opendevstack/generator-node-express-typescript popularity was classified as not popular.
We found that @opendevstack/generator-node-express-typescript 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.