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-compiled-html

v0.0.3

Published

a component html

Downloads

3

Readme

Drag Racing

Compiled HTML Generator NPM version Build Status Dependency Status Coverage percentage

NPM

A Starter project to make writing html really simple and easy powered by gulp.

⚡️ Live Reload

🔥 Component Based

🔧 ~1MB

📝 Raw HTML

✅ SCSS supported

🚀 Deploy With Surge

Helper Functions

Still in progress coming up with useful helper by gulp-file-include and some other useful compilers

Installation

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

npm install -g yo
npm install -g generator-compiled-html

Then generate your new project:

yo compiled-html

Usage

Getting familiar with the template and you want to use some helper functions in your HTML file like import sidebar components or generate head components differently for each files @, Prefix to the world just import using them the following ways.

index.html

<!DOCTYPE html>
<html>
  <head>
    @include('./components/head.html', {"title": "Dashboard"})
  </head>
  <body>
    @include('./components/view.html')
  </body>
</html>

/components/head.html

<meta charset="utf-8" />
<title>@title of my first compiled html</title>
<meta name="description" content="" />
<meta name="author" content="" />

<meta name="viewport" content="width=device-width, initial-scale=1" />

/components/view.html

<h2>Hello There</h2>

Now your compiled HTML file should look like this

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>@title of my first compiled html</title>
    <meta name="description" content="" />
    <meta name="author" content="" />

    <meta name="viewport" content="width=device-width, initial-scale=1" />
  </head>
  <body>
    <h2>Hello There</h2>
  </body>
</html>

see more of what you can do here

Useful commands

$ npm run start #starts the app
$ npm run copy #copies any html code in working directory to build directory
$ npm run flush #delets cached compile by gulp
$ npm run watch #watchs files and updates
$ npm run connect #starts server without running gulp default
$ npm run deploy #deploys to surge automatically

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © Adenekan Wonderful