0.1.0 • Published 6 years ago

@daern91/build-actions v0.1.0

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

build-actions

Build Status Coverage Status JavaScript Style Guide

A small library to diff Customers and build update actions.

Installation

Required Tools and Dependencies

  • Node (This project uses the current LTS node version, which is v8.9.4)

Setup (git)

Execute these commands in the project's root directory:

  • git clone https://github.com/daern91/build-actions.git - Clone the git repo
  • cd build-actions/ - Move into package folder
  • npm i - Install all dependencies

CLI Usage

  • npm run generate-data - Generate a data.json file with test customers.
  • Duplicate the data.json file and change some of the customer info in the new copy, e.g. email.
  • buildactions import --file testCustomers/<newFileName.json>

Setup (npm)

npm install @daern91/build-actions

Usage

const buildActions = require('@daern91/build-actions');

const actions = buildActions(oldCustomerObject, newCustomerObject);

// Output should be an array of update actions

NOTE: You may also use CLI by installing package globally with npm install @daern91/build-actions -g

Tests

  • npm test for full testing including lint.
  • npm run cover for full testing including coverage.

Requirements

  • Setup the project in a github repository
  • Export buildActions function
  • Create test data generator
  • Write a CLI (matching with ID instead of name)
  • Provide JSDoc
  • Tests
  • Lint
  • README
  • Use ES6
  • TravisCI
  • Cucumber features for CLI integration tests (provided that you did the advanced part)
0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago