@technologyadvice/genesis-core
Simplified build tooling for a complected world
Last updated 2 years ago by davezuko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @technologyadvice/genesis-core 
SYNC missed versions from official npm registry.

Genesis Core

Simplified build tooling for a complected world

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 })

Current Tags

  • 0.15.5                                ...           latest (2 years ago)

36 Versions

  • 0.15.5                                ...           2 years ago
  • 0.15.4                                ...           2 years ago
  • 0.15.3                                ...           2 years ago
  • 0.15.2                                ...           2 years ago
  • 0.15.1                                ...           2 years ago
  • 0.15.0                                ...           2 years ago
  • 0.14.2                                ...           2 years ago
  • 0.14.1                                ...           2 years ago
  • 0.14.0                                ...           2 years ago
  • 0.13.0                                ...           2 years ago
  • 0.12.1                                ...           2 years ago
  • 0.12.0                                ...           2 years ago
  • 0.11.1                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.6                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago

Copyright 2014 - 2017 © taobao.org |