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-project-boilerplate

v2.3.2

Published

ES6+ boilerplate to create websites and web apps using tailwind, Babel and Parcel

Downloads

17

Readme

Create Project Boilerplate

npm version

Project boilerplate for a modern ES6+ cross-browser compatible workflow with no build configuration.

Create Project Boilerplate works on macOS, Windows, and Linux.

Prerequisites

npm v5.2 or later

Quick Overview

mkdir my-dir
cd my-dir
npx create-project-boilerplate
npm start

Then open http://localhost:3000/ to see your app. When you’re ready to deploy to production, the dist folder can be deployed to the server.

demo

Get Started Immediately

Comes with the following tools and libraries. You don’t need to install or configure anything.

  • Core languages supported: HTML, CSS, Javascript
  • Helper libraries/frameworks: Alpine.js, Tailwindcss
  • Module bundlers: Parcel
  • Transcompilers: Babel
  • Preprocessors: SASS
  • Autoprefixers: PostCSS
  • Icon libraries: Fontawesome
  • Linting tools: ESLint
  • Testing libraries: Jest, DOM Testing Library

Create a project, and you’re good to go.

Comes with the following libraries and utilities

Libraries

Features

  • No build configuration. dist folder is rebuilt everytime you make changes in src folder
  • Cross-browser compatible code using Babel
  • Integrated Fontawesome support using CDN
  • Support for CSS Modules using Parcel
  • Support for autoprefixers using PostCSS
  • Hot Module Reload(HMR) and support for ES Modules using Parcel
  • Built-in Alpine.js, SASS & tailwindcss support to help you write industry-level code
  • ESLint to quickly find and fix problems in your Javascript code
  • Comes with testing libraries - Jest & DOM Testing Library

Authors

Biswajit Mukherjee

Check npm version

To check npm version, type the following command in the terminal:

npm -v

As long as it is 5.2 or later, you're good to go!

Creating a boilerplate

You’ll need to have npm 5.2 or later version. We recommend using the latest LTS version of node.

npx

npx create-project-boilerplate

To know more, refer to the usage section.

Usage

  • Create a working directory
mkdir my-dir
  • Navigate to that directory in the terminal
cd my-dir
  • Run the following command to create the project structure
npx create-project-boilerplate

Inside the working directory, it will generate the following project structure and install and configure all the required dependencies

my-dir
├── node_modules
├── package.json
├── package-lock.json
├── tailwind.config.js
├── .parcel-cache
├── .babelrc
├── .postcssrc
├── .gitignore
├── dist
│   ├── # bundled css and js files
│   └── index.html
└── src
    ├── scripts
    │   └── main.js
    ├── styles
    │   ├── base.css
    │   ├── index.css
    │   └── main.css
    └── index.html
  • Once the setup is finished, run the following command to start the server
npm start

This will build and start the server at http://localhost:3000 by default. It will rebuild your website/app everytime you make changes in the src folder. Once the website/app is production ready, the dist folder can be deployed to the server.

  • To run tests using Jest
npm test
  • To stop the server press CTRL + C (CMD + C for Mac/Linux)

  • To restart the server

npm start

This will open the page on a new tab in the browser. The port number can be changed to any port of your choice in the package.json file.