Skip to content

Commit 08f18ca

Browse files
authoredDec 7, 2016
Merge pull request #1237 from plotly/world-cals-trimmed
use only the calendars we need from 'world-calendars'
2 parents bc457a9 + 1444f55 commit 08f18ca

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
 

‎src/components/calendars/calendars.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* Copyright 2012-2016, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
// a trimmed down version of:
12+
// https://github.com/alexcjohnson/world-calendars/blob/master/dist/index.js
13+
14+
module.exports = require('world-calendars/dist/main');
15+
16+
require('world-calendars/dist/plus');
17+
18+
require('world-calendars/dist/calendars/coptic');
19+
require('world-calendars/dist/calendars/discworld');
20+
require('world-calendars/dist/calendars/ethiopian');
21+
require('world-calendars/dist/calendars/hebrew');
22+
require('world-calendars/dist/calendars/islamic');
23+
require('world-calendars/dist/calendars/julian');
24+
require('world-calendars/dist/calendars/mayan');
25+
require('world-calendars/dist/calendars/nanakshahi');
26+
require('world-calendars/dist/calendars/nepali');
27+
require('world-calendars/dist/calendars/persian');
28+
require('world-calendars/dist/calendars/taiwan');
29+
require('world-calendars/dist/calendars/thai');
30+
require('world-calendars/dist/calendars/ummalqura');

‎src/components/calendars/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
var calendars = require('world-calendars');
11+
var calendars = require('./calendars');
1212

1313
var Lib = require('../../lib');
1414
var constants = require('../../constants/numerical');

0 commit comments

Comments
 (0)
Please sign in to comment.