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

@manufosela/wabuse-cli

v1.1.0

Published

Wabuse. Web-components Interactive Tool UX is a builder SSR pages with Web Components

Downloads

78

Readme

wabuse

wabuse is a set of tools to create static sites using standard javascript. Web Applications Built Using Standards Everywhere Tool Generate static web pages with links to js and css files that are stored in the dist folder. Oriented to HTML5, CSS, ES6 + and Web components standards through Lit. Based in conventions vs configurations.

All JavaScript code is executed on the client-side.

All JavaScript code located in the files within /js/pages named *.html.mjs is executed on the client-side but only in the development environment. This code dynamically generates the page content, and during the build process, an *.html file is generated that contains the content created by the JavaScript.

The JavaScript code that runs on the front-end will be in the *.js files within the /js and /js/lib directories.

Be careful where you place your JavaScript code. If you place it in the wrong file, it might not be displayed on the front-end, even if it works in the development environment.

Tools

wabuse, the command line interface to generate static pages

Install like global cli

    npm install -g @wabuse/wabuse-cli

Usage

Generate scafolding

    wabuse scafolding [--languages 'lang1','lang2'[,...]] [--commonfiles 'file1','file2'[,...]]

Generate new Page

    wabuse create-page PAGENAME [--languages 'lang1','lang2'[,...]]

Generate web-component

    wabuse create-wc WC-NAME

Generate Build

To generate static HTML pages

    wabuse build [--port PORT] [--workdir WORKDIR]

TREE DIR STRUCTURE

El proyecto consta de la siguiente estructura de carpetas:

    |__dist (after the build)
    |__resources
    |__src
    |__assets
    |__components
    |__css
    |__js
        |__lib
        |__pages
        |__tpl
    |__json

Path dist

Path when the html pages are building after npm run build

Path recursos

Path whith resources like robots.txt and sitemap.xml. These files are copied into dist dir.