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

@technologyadvice/genesis-core

v0.15.5

Published

Simplified build tooling for a complected world

Downloads

93

Readme

Take advantage of the modern JavaScript ecosystem without any of the headache. Genesis Core provides a consistent, simplified interface over powerful build tooling. Configure it once and get to work; you'll enjoy the same experience whether you're building a Single Page Application or distributable NPM package.

Table of Contents

  1. Features
  2. Installation
  3. Usage

Installation

It's recommended to install Genesis Core as a project-level dependency, and not a global depdendency. This will give you the freedom to run multiple projects independently and will provide more fine-grained control over upgrades.

# Yarn (recommended)
yarn add --dev @technologyadvice/genesis-core

# NPM
npm install --save-dev @technologyadvice/genesis-core

Targets

Web App

This compiler is still in progress.

NPM Package

This compiler is still in progress.

Usage

Genesis is configured with the same options no matter which API is used.

Configuration

{
  entry        : string | Array<string>,      // path(s) to your application entry point(s)
  templatePath : string,                      // path to your main index.html file
  vendors      : Array<string>,               // package names to bundle separately
  alias        : { [key: string]: string },   // module resolution aliases
  globals      : { [key: string]: any },      // variables to expose globally
  sourcemaps   : boolean,                     // generate sourcemaps?
  verbose      : boolean,                     // enable more verbose output?
  transpile    : boolean | 'typescript',      // transpile? `true` defaults to babel
}

Command Line Interface

After installing Genesis Core in your project, you can use the gen binary to run tasks. To do this, configure your package.json scripts to run gen commands.

{
  "scripts": {
    "start": "gen start",
    "build": "gen build",
    "test": "gen test"
  }
}

Once this is done, you can run these just like any other npm command. Note that you can also pass options to the genesis task:

npm start -- --port 3000

Node API

const genesis = require('@technologyadvice/genesis-core')

const compiler = genesis({
  // your genesis configuration
})

// Each task returns a promise:
compiler.build()
  .then(() => { /* app has been built! */ })

// You can pass task-specific option:
compiler.start({ host: 'localhost', port: 3000 })
compiler.test({ watch: true })