npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-typescript-project-scaffolding

v0.0.14

Published

Scaffold your new Typescript project with everything you need

Downloads

297

Readme

Summary: This package can create a new project file and folder structure with dependencies, example files and config files which you have selected to your needs!

On the left is an example output if you run the script and on the right is the created folder structure.

Usage

You can create the following project templates:

  • http-api server with express
  • websocket server with plain websocket
  • socket.io server
  • a generic npm package for publish etc.
  • an empty project with no presets, just the developer dependencies

Every Project can have

  • eslint, prettier, convict, winston, joi, amqp, mqtt configured
  • as well as different test frameworks like jest, mocha, cypress, vitest with code coverage via nyc
  • different database dependencies can be selected: mongoose, typeorm, mysql / mysql2, mongodb, redis
  • Dockerfile configuration can be created
  • CI/CD templates for github actions and gitlab ci can be created

Run:

npm init typescript-project-scaffolding@latest

If there is a question:

Need to install the following packages:
  create-typescript-project-scaffolding
Ok to proceed? (y) 

=> Enter "y" to install the init-project

The Following options can be customized:

| Question | Available Options | Default Value | Description | |----------------------------|------------------------------------------------------------------------------------------------------|----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1. Project-Name | "." or any path-string | | The Folder Name where to create the new project, use "." for the current directory (if some files already exist in the folder, you need to press Enter a few times to force use the given folder - Instructions are shown in the console) | | 2. Project-Type | ['http-api@express-utils', 'websocket-server', 'socket-io-server', 'npm-package', 'empty-project'] | | The Template for creating the new project, depending in this answer, custom project source files will be created | | 3. Dockerfile | true or false | true | Add a Dockerfile to run the project as a docker container (not available if project type is npm-package) | | 4. CI/CD Pipeline | ['gitlab', 'github', 'none'] | github | A CI/CD Pipeline template (GitHub Actions or Gitlab Pipelines) which automatically is configured for the build and deployment of the project-type (push to NPM Registry or Docker Registry) | | 5. Additional Packages | ['eslint', 'prettier', 'convict', 'ts-node-dev', 'winston', 'joi', 'amqp', 'mqtt'] | ['eslint', 'prettier', 'ts-node-dev', 'winston'] | Some dependencies which can be useful for the developer experience or for project functions (Multi-Select possible); Dependencies will be added as dependencies to package.json and if applicable, config files will be added | | 6. Testing Packages | ['mocha', 'chai-http', 'nyc', 'cypress', 'jest', 'vitest'] | | Select (multiple) dependencies used for unit/integration/end-to-end testing; Custom test npm run scripts will be added as well as example test files | | 7. Database Driver | ['mongoose', 'typeorm', 'mysql', 'mysql2', 'mongodb', 'redis'] | | Select a Database dependency for a DB connection (multiple answers can be possible) | | 8. latest package versions | true or false | false | If true, the latest npm package version will be installed, otherwise an hard-coded version will be used; If true, it is not guaranteed that the example files will be working, because it is only tested with the hard-coded versions | | 9. npm install | true or false | false | If true, the dependencies selected will be installed with npm install; If not, the installation step will be skipped. | | 10. git init | true or false | false | Create a git repository in the new project folder | | 11. .idea/ folder files | ['prettier', 'eslint'] | | Copy .idea files to the destination to auto-configure IDE settings |

Reference

  • npm package link: https://www.npmjs.com/package/create-typescript-project-scaffolding

Todo

  • [x] (prio: high) readme (pictures, videos)
  • [x] (prio: high) ci/cd templates
  • [ ] (prio: none) testing jest/vitest etc. framework

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to create issues here on GitHub.


Give a ⭐️ if this project helped you!

2022-2023 Trickfilm400