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 🙏

© 2025 – Pkg Stats / Ryan Hefner

webpack-js-app

v1.1.3

Published

Generator pozwala za pomocą jednej komendy npm wygenerować boilerplate aplikacji ze skonfigurowanymi środowiskami `dev, test, pros`.

Downloads

15

Readme

Webpack JS App - built with webpack 4 (4.29.6) javascript boilerplate

Generator pozwala za pomocą jednej komendy npm wygenerować boilerplate aplikacji ze skonfigurowanymi środowiskami dev, test, pros.

Idealny boilerplate do tworzenia prostych stron oraz aplikacji webowych w czystym JS. Narzędzie, pomimo iż z założenia przeznaczone głównie dla początkujących, może być śmiało wykorzystywane przez bardziej doświadczonych developerów, którzy nie mają czasu na ręczną konfigurację webpacka.

Instalacja:

Node 11.10+

npm i -g webpack-js-app
cd <projects>
create-js-app
  > choose boilerplate
  > name a project
  
cd my-app
npm install

Development

  • npm start - startuje środowisko dev na: http://localhost:8080
  • npm run build - buduje wersję produkcyjną

Konfiguracje

Porównanie

| | webpack-onepage-js-starter | webpack-spa-js-starter (TBD) | | :---------------------- | :------------------------: | :--------------------: | | Hot Module Replacement | :white_check_mark: | :white_check_mark: | | Dev Environment | webpack-dev-server | webpack-dev-server | | Basic prod minification | :white_check_mark: | :white_check_mark: | | CSS Preprocessor | Sass (scss) | Sass (scss) | | Autoprefixer | :white_check_mark: | :white_check_mark: | | Normalize.css | :white_check_mark: | :white_check_mark: | | Html template | :white_check_mark: | :x: | | Write code in JS | :white_check_mark: | :white_check_mark: | | Unit Tests | :x: | :white_check_mark: | | E2E Tests | :x: | :white_check_mark: | | Eslint | :x: | :white_check_mark: | | Prettier | :x: | :white_check_mark: |

Webpack-onepage-js-starter

  • minimalistyczny, idealny do tworzenia stron typu one page,
  • kod (strukturę) strony można w całości pisać zarówno w plikach index.html bądź javascript,
  • w razie potrzeby config można bardzo prosto rozbudować o wszelkie funkcjonalności dostępne w webpack-spa-js-starter,

Webpack-spa-js-starter (TBD)

  • idealny do tworzenia aplikacji SPA,
  • kod strony pisany w JS,
  • skonfigurowane środowisko testowe,
  • bardziej skupiony na web performance,

Struktura katalogów

|-- package.json
|-- config
|-- dist
|-- src
|    |-- index.html
|    |-- scripts
|    |    |-- index.js
|    |
|    |-- styles
|    |    |-- main.scss
|    |    |-- base
|    |    |     |-- _base.scss
|    |    |     |-- _typography.scss
|    |
|    |-- assets
|

// webpack-spa-js-starter has also:

|-- __e2e__
|    |-- example.test.js
|
|-- src
|    |-- scripts
|    |    |-- index.js
|    |    |-- index.test.js
|
|-- .eslintrc.json
|-- .prettierrc

Testy (TBD)

Webpack-spa-js-starter korzysta z następujących narzędzi:

  • Jest https://github.com/facebook/jest
  • DOM-Testing-Library https://github.com/kentcdodds/dom-testing-library
  • Puppeteer https://github.com/GoogleChrome/puppeteer
  • Jest-Pupeteer https://github.com/smooth-code/jest-puppeteer
  • Pixelmatch https://github.com/mapbox/pixelmatch