martinmicunda/employee-scheduling-ui

View on GitHub
gulp/const.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @author    Martin Micunda {@link http://martinmicunda.com}
 * @copyright Copyright (c) 2015, Martin Micunda
 * @license   GPL-3.0
 */
'use strict';

import util from 'gulp-util';
import moment from 'moment';
import pkg from '../package.json';

//=============================================
//   !!!FEEL FREE TO EDIT THESE CONSTANTS!!!
//=============================================

export const E2E_STAGING_URL     = 'http://your-staging-url.com';
export const E2E_DEVELOPMENT_URL = 'http://127.0.0.1:8000';
export const API_URL = 'http://127.0.0.1:3000';
export const CDN_URL = 'http://martinmicunda.com/employee-scheduling-ui/dist/'; // make sure you include slash in the end!!
export const GH_PAGES_TOKEN = process.env.GH_TOKEN; // Generate OAuth token on GitHub > Settings > Application page
export const GH_PAGES_USERNAME = process.env.USERNAME;
export const GH_PAGES_PROJECT_NAME = process.env.PROJECT_NAME;
export const GH_PAGES_BASE_URL = `/${GH_PAGES_PROJECT_NAME}/dist/`;
export const COVERAGE = {
    statements : 70,
    branches : 60,
    lines : 70,
    functions : 70
};

/**
 * The banner is the comment that is placed at the top of our compiled
 * source files. It is first processed as a Gulp template, where the `<%=`
 * pairs are evaluated based on this very configuration object.
 */
export const BANNER = util.template(
    '/**\n' +
    ' * <%= pkg.description %>\n' +
    ' * @version v<%= pkg.version %> - <%= today %>\n' +
    ' * @author <%= pkg.author.name %>\n' +
    ' * @copyright <%= year %>(c) <%= pkg.author.name %>\n' +
    ' * @license <%= pkg.license %>\n' +
    ' */\n', {file: '', pkg: pkg, today: moment(new Date()).format('D/MM/YYYY'), year: new Date().toISOString().substr(0, 4)});