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

@dannyfranca/typescript-boilerplate

v0.4.3

Published

TypeScript starting point handsome, clean and easy with test, CI, code coverage, documentation and git hooks.

Downloads

10

Readme

Getting Started

  • Clone repository
git clone https://github.com/dannyfranca/typescript-boilerplate.git {{project_name}}
  • Install dependencies
cd {{project_name}}
yarn

Warnings

  • Experimental environment. Could change many times between versions, at least until v1.0 arrives.
  • If you don't want to use yarn, change yarn run for npm run in package.json commands and .lintstagedrc

Libs

  • Compiler - TypeScript
  • Linting - TypeScript ESLint
  • Code Formatter - Prettier
  • Bundler - Parcel JS
  • E2E/Unit/CI Suite - Cypress
  • Coverage Reports - Istanbul
  • Continuous Integration - CircleCI / TravisCI
  • Code Coverage - Codecov
  • Git Hooks - Husky + lint-staged

Usage

Start writing in src folder. modify any project files that fits you needs.

In package.json you have commands to dev, test, compile and build.

NPM Commands

Test

Commands to test you application

  • dev: Start developing with Parcel, Cypress and code coverage, all hot reloading
  • test: If you want to test and generate code coverage reports, use before publish
  • cy:open: Open cypress to test (server must be already running). Useful if you are already developing and just need to make some tests, without reload the whole process
  • cy:run: Run tests in terminal, without UI. Useful the same way cypress:open is
  • coverage: You don't need to run this command, it's for Circle CI perform Continuous Integration after git push

Bundle

Commands to help you bundling you front-end application

  • start: to develop only with Parcel, without tests and code coverage
  • build: Generate production bundles from public to dist folder
  • doc: Generate documentation from comments with Typedoc

Module

Commands to help you compile your TypeScript application to interoperable modules.

  • compile: Compile your TypeScript files in "src" to "lib" folder, with types, making your module interoperable with JavaScript
  • compile:watch: Same as compile, but keeps a process watching and recompiling the changes
  • compile:types: Only emits the type declaration files
  • type-check: Only check the types, good to run between commits to get errors when working with multiple files (If using built in git hooks with Husky, executed automatically before any commit)

Conclusion

Have a Nice Coding! 🤓

License

MIT License

Copyright (c) Danny França mailto:[email protected]