Skip to content

Commit fd8eaed

Browse files
committed
Build after all changes
1 parent 6e71306 commit fd8eaed

File tree

7 files changed

+64
-40
lines changed

7 files changed

+64
-40
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
bower_components
3+
yarn-error.log
34

45
# IntelliJ project files
56
.idea

dev/simplyCountdown.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
/*!
2-
* Project : simply-countdown
3-
* Date : 27/06/2015
4-
* License : MIT
5-
* Version : 1.4.0
6-
* Author : Vincent Loy <[email protected]>
7-
* Contributors :
8-
* - Justin Beasley <[email protected]>
9-
* - Nathan Smith <[email protected]>
10-
*/
11-
121
(function (exports) {
132
'use strict';
143

4+
/*!
5+
* Project : simply-countdown
6+
* Date : 27/06/2015
7+
* License : MIT
8+
* Version : 1.4.0
9+
* Author : Vincent Loy <[email protected]>
10+
* Contributors :
11+
* - Justin Beasley <[email protected]>
12+
* - Nathan Smith <[email protected]>
13+
*/
14+
1515
/**
1616
* Function that merge user parameters with defaults one.
1717
* @param output

dist/simplyCountdown.min.js

+11-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const gulp = require('gulp'),
77
babel = require('gulp-babel'),
88
autoprefixer = require('gulp-autoprefixer'),
99
cssCompressor = require('gulp-csso'),
10-
uglify = require('gulp-uglify'),
10+
terser = require('gulp-terser'),
1111
eslint = require('gulp-eslint'),
1212
saveLicense = require('uglify-save-license'),
1313
browserSync = require('browser-sync'),
@@ -25,7 +25,7 @@ const buildScss = function (filePath) {
2525
cascade: false,
2626
}))
2727
.pipe(cssCompressor({
28-
restructure: false,
28+
restructure: false
2929
}))
3030
.pipe(gulp.dest('css'));
3131
};
@@ -53,10 +53,10 @@ gulp.task('build:es6', ['lint:es6'], function () {
5353
.pipe(babel({
5454
presets: ['@babel/env']
5555
}))
56-
.pipe(uglify({
56+
.pipe(terser({
5757
output: {
58-
comments: saveLicense,
59-
},
58+
comments: saveLicense
59+
}
6060
}))
6161
.pipe(gulp.dest('dist'));
6262
});

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ <h3>1.0.0</h3>
276276

277277
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
278278
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js"></script>
279-
<script src="dev/simplyCountdown.js"></script>
279+
<script src="dist/simplyCountdown.min.js"></script>
280280
<script>
281281
/**
282282
* WARNING: I set this coundtown to be running until the end of times.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"gulp-csso": "^3.0.1",
4444
"gulp-eslint": "^5.0.0",
4545
"gulp-sass": "^4.0.2",
46+
"gulp-terser": "^1.1.5",
4647
"gulp-uglify": "^3.0.1",
4748
"prismjs": "^1.15.0",
4849
"uglify-save-license": "^0.4.1"

yarn.lock

+34-2
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,11 @@ bs-snippet-injector@^2.0.1:
10731073
resolved "https://registry.yarnpkg.com/bs-snippet-injector/-/bs-snippet-injector-2.0.1.tgz#61b5393f11f52559ed120693100343b6edb04dd5"
10741074
integrity sha1-YbU5PxH1JVntEgaTEANDtu2wTdU=
10751075

1076+
buffer-from@^1.0.0:
1077+
version "1.1.1"
1078+
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
1079+
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
1080+
10761081
builtin-modules@^1.0.0:
10771082
version "1.1.1"
10781083
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
@@ -2433,6 +2438,16 @@ gulp-sass@^4.0.2:
24332438
through2 "^2.0.0"
24342439
vinyl-sourcemaps-apply "^0.2.0"
24352440

2441+
gulp-terser@^1.1.5:
2442+
version "1.1.5"
2443+
resolved "https://registry.yarnpkg.com/gulp-terser/-/gulp-terser-1.1.5.tgz#7cf3c890ab6757f6aedf8e6b8923295f6b8676e5"
2444+
integrity sha512-WNk9DPCQgwnoWOs2FhkLYzE+Z32fi0tCHSLxjgQagdH7mbwM/ZqfygNEDgewRXX0jmGc/9gfyimHZLhZtbOj0g==
2445+
dependencies:
2446+
plugin-error "^1.0.1"
2447+
terser "^3.8.2"
2448+
through2 "^2.0.3"
2449+
vinyl-sourcemaps-apply "^0.2.1"
2450+
24362451
gulp-uglify@^3.0.1:
24372452
version "3.0.1"
24382453
resolved "https://registry.yarnpkg.com/gulp-uglify/-/gulp-uglify-3.0.1.tgz#8d3eee466521bea6b10fd75dff72adf8b7ea2d97"
@@ -4800,6 +4815,14 @@ source-map-resolve@^0.5.0:
48004815
source-map-url "^0.4.0"
48014816
urix "^0.1.0"
48024817

4818+
source-map-support@~0.5.6:
4819+
version "0.5.9"
4820+
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f"
4821+
integrity sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==
4822+
dependencies:
4823+
buffer-from "^1.0.0"
4824+
source-map "^0.6.0"
4825+
48034826
source-map-url@^0.4.0:
48044827
version "0.4.0"
48054828
resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
@@ -4817,7 +4840,7 @@ source-map@^0.5.0, source-map@^0.5.1, source-map@^0.5.3, source-map@^0.5.6:
48174840
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
48184841
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
48194842

4820-
source-map@^0.6.1, source-map@~0.6.1:
4843+
source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
48214844
version "0.6.1"
48224845
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
48234846
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
@@ -5042,6 +5065,15 @@ tar@^4:
50425065
safe-buffer "^5.1.2"
50435066
yallist "^3.0.2"
50445067

5068+
terser@^3.8.2:
5069+
version "3.10.12"
5070+
resolved "https://registry.yarnpkg.com/terser/-/terser-3.10.12.tgz#06d40765e40b33fd97977c0896c75b2b5d42142d"
5071+
integrity sha512-3ODPC1eVt25EVNb04s/PkHxOmzKBQUF6bwwuR6h2DbEF8/j265Y1UkwNtOk9am/pRxfJ5HPapOlUlO6c16mKQQ==
5072+
dependencies:
5073+
commander "~2.17.1"
5074+
source-map "~0.6.1"
5075+
source-map-support "~0.5.6"
5076+
50455077
text-table@^0.2.0:
50465078
version "0.2.0"
50475079
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
@@ -5063,7 +5095,7 @@ through2@^0.6.1:
50635095
readable-stream ">=1.0.33-1 <1.1.0-0"
50645096
xtend ">=4.0.0 <4.1.0-0"
50655097

5066-
through2@^2.0.0:
5098+
through2@^2.0.0, through2@^2.0.3:
50675099
version "2.0.5"
50685100
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
50695101
integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==

0 commit comments

Comments
 (0)