3.2.0 • Published 6 years ago

sassi-build-data v3.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

sassi-build-data

The sassi-build-data package is a CI/server library for generating, reading, and writing the ServerBuildData (defined in sassi-core). This assumes that your code is under a git repository. And it will generate commit data:

It's use is pretty straight forward:

// assuming you are using appveyor:
const { AppVeyorBuildService } = require('sassi-appveyor');
const ci = AppVeyorBuildService.fromEnv(process.env);

// grab the generator
const { generateBuildDataFromEnv } = require('sassi-build-data');

// choose what to expose
const envToExpose = {
    NODE_ENV: process.env.NODE_ENV
};

// generate the data
const BUILD_DATA = generateBuildDataFromEnv(envToExpose, ci);

// you can then use the write/read helpers for the data:
import {writeBuildData, readBuildDataFromFile} from 'sassi-build-data';

// or if you prefer, use a plugin in webpack:
const GenerateJsonPlugin = require('generate-json-webpack-plugin');
new GenerateJsonPlugin('build-data.json', BUILD_DATA, undefined, 4),

This data can now be passed to the sassi-server-api.

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago