Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.
This repository was archived by the owner on May 22, 2019. It is now read-only.

How to 'whitesource' from Makefile #23

Description

@andygnewman

cc: @matthew-andrews

Steps would be;

  • validate that the whitesource npm module exists in the application (if not, skip)
  • get the whitesource api key (from config vars)
  • write a whitesource config json file
  • run the whitesource commands (whitesource run and whitesource bower)

Something like this (but not quite);

_whitesource:
    @if [ -e node_modules/whitesource/package.json ];
    then
    $(eval WHITESOURCE_API_KEY = $(call CONFIG_VARS,deployment) | $(call JSON_GET_VALUE,WHITESOURCE_API_KEY))
    $(shell echo "{\"apiKey\":\""$(WHITESOURCE_API_KEY)"\", \"checkPolicies\":true, \"productName\": \"Next\", \"projectName\": \""$(APP_NAME)"\"}" > whitesource.config.json)
    $(shell whitesource run)
    $(shell whitesource bower)
    @$(DONE) ;
    fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions