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

generator-elm-parcel

v1.0.4

Published

Generate a baisc Elm project with Parcel

Downloads

5

Readme

generator-elm-Parcel

Generates a simple Elm project, built with Parcel.

Why Parcel?

One of the nice things about Elm is that there's a lot less configuration to manage than in most JS build pipelines. Combining it with something like Webpack negates some of that benefit a bit, IMO. I prefer build tools that require less configuration, so Parcel works well for me!

Getting Started

Installation

Install yeoman.

npm install -g yo

Install generator-elm-parcel.

npm install -g generator-elm-parcel

Note: You don't have to install it globally, but it's designed to be run from the parent directory of the project you want to create, and it's usually inconvenient to install locally there.

Create your project

In the parent directory of your (soon-to-be) project:

▶ yo elm-parcel  
? What is your project called? myProject
? Please provide a brief description of your project: It's gonna be so great!
? Who is the author of this project? I am!
? What license would you like to use? (SPDX identifier) Apache-2.0
   create .gitignore
   create README.md
   create app/css/style.css
   create app/elm/Main.elm
   create app/index.html
   create app/js/app.js
   create elm-stuff/0.19.0/Main.elmi
   create elm-stuff/0.19.0/Main.elmo
   create elm-stuff/0.19.0/summary.dat
   create elm.json
   create package.json
   create tests/Example.elm
? What would you like to use to install dependencies? (Use arrow keys)
❯ npm
  yarn
  skip

I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself.

  ...NPM makes a bunch of noise...

You're all set. The generated README.md in /whever/you/started/myProject contains
instructions for running the live server, tests, etc.

Have fun!

What about Less, Sass, ESlint, Typescript, Coffescript, Bucklescript, Service Workers, Babel, Autoprefixer, Bootstrap, PostCSS, PostHTML...???

I like starting with a basic project and adding those things as I need them. Also, my preferences for many of those options might not match up with yours! I'd rather provide something basic without too many opinions baked in than scare people off by picking their least favorite CSS preprocessor.

However, I think it would be interesting to add additional generators that folks could use after the basic setup to configure those things as they need. If there's something in particular you'd like to see, open an issue and maybe we figure out a pattern to incorporate it with that approach.