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-html-5-bp

v0.2.2

Published

A simple html5 & grunt setup for front end web development

Downloads

5

Readme

generator-html-5-bp NPM version

A simple html5 & grunt setup for front end web development

Installation

First, install Yeoman and generator-html-5-bp using npm (we assume you have pre-installed node.js).

$ npm install -g yo
$ npm install -g generator-html-5-bp

Start

You can now run the generator:

$ yo html-5-bp

Updates

Updates are added from time to time. Make sure you're updated to the latest version of the generator by running:

$ npm update -g generator-html-5-bp

Note:

If you wish to run the php generator you will be required to have the following installed on your machine.

  • PHP >= 5.5.9
  • Composer (Dependency manager)

Installing PHP

First check which version of php you're on

	$ php -v

Next run this curl command to update to 5.6/7

	$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

Now you need to update the PATH variable to reference the new php version

	$ vim ~/.profile

Add this to that file and save

	$ export PATH=/usr/local/php5/bin:$PATH

Once you've completed all of the above, run the following

	$ source ~/.profile
	$ sudo apachectl restart

Run php -v once again to check the version has updated

Installing Composer

Please make sure this is run in root folder, and once done make sure it has been install to /usr/local/bin

	$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
	$ php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
	$ php composer-setup.php
	$ php -r "unlink('composer-setup.php');"

Refer to these docs if you'd like to know more https://laravel.com/docs/5.1/installation

Static HTML or PHP Application

Once the generator is up and running you should see the following:

Alt text

At this point you only need to name the project. This will be the name of the directory the project will be scaffolded into.

Alt text

You have the option to generate a static html project (boilerplate) for front end development or a php application (laravel). Once the project has been scaffolded the npm installation will take place.

GIT

After generation has been completed git will have been initialized. Add this your .gitignore file so that you don't add any unneccessary or redundant files.

Note:

This is intended for the static build

dist/*
!dist/assets/

dist/assets/*
!dist/assets/img/
!dist/assets/fonts/

dev/assets/css/*
*.DS_Store
*.sln
Web.config
*.sass-cache
node_modules
npm-debug.log

License

MIT © Punk