-
Notifications
You must be signed in to change notification settings - Fork 121
/
const.js
43 lines (39 loc) · 1.69 KB
/
const.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @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)});