Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@hloth/scaffold
Advanced tools
NPX tool for me to easily scaffold new project, containing TypeScript config for modern ES, eslint with my favorite code style and Jest tests with ts support
Readme
NPX tool for me to easily scaffold new project, containing TypeScript config for modern ES, eslint with my favorite code style and Jest tests with TS support.
Moreover, this tool was scaffolded with itself! It tests itself automatically with Jest after each build by creating simple test project and testing Jest with Jest's test.
This project is mostly for demonstrating which defaults I use, it is not intended to be used by anyone, simply because everyone has it's own preferences, so don't judge me for using X here. Though I'm still accepting any criticism that may help me improve this setup to work faster and better :)
Size of generated project is just 142 MB with all dependencies
I think there is a better alternatives to some things I use here, so suggest me alternative tools in the Issues tab if you know:
@zoltu/typescript-transformer-append-js-extension
plugin with ttypescript
del-cli
package and then files are copied via cpy-cli
which may pose threat with security vulnerabilities. Maybe change to native commands such as rm
and cp
?npx @hloth/scaffold project-name --tests
or
git clone https://github.com/VityaSchel/scaffold && cd scaffold && npm i && npm run set && sf project-name
.
├── src
│ ├── .env.ts
│ └── index.ts
├── out
├── test
│ └── index.test.ts
├── .env
├── babel.config.cjs
├── jest.config.js
├── tsconfig.json
├── .swcrc
├── LICENSE.md
├── package.json
└── package-lock.json
Build: npm run build
Run: npm start
or node out/index.js
Test (with TypeScript): npm test
Previusly building was done with ttsc which is a postprocessor for Typescript with plugins support. In v1.0.1 it was replaced with esbuild and then swc. swc was faster, so now we're using it.
FAQs
NPX tool for me to easily scaffold new project, containing TypeScript config for modern ES, eslint with my favorite code style and Jest tests with ts support
The npm package @hloth/scaffold receives a total of 4 weekly downloads. As such, @hloth/scaffold popularity was classified as not popular.
We found that @hloth/scaffold demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
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.