Skip to content

Commit e506b67

Browse files
Convert to gulp-based build with optional polyfill
1 parent 6041d59 commit e506b67

19 files changed

+124
-82
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"StackFrame": false,
2020
"ErrorStackParser": false,
2121
"StackTraceGPS": false,
22-
"ES6Promise": false,
22+
"Promise": false,
2323
"afterEach": false,
2424
"beforeEach": false,
2525
"define": false,

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.32
1+
0.12.4

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: node_js
22
node_js:
3-
- '0.10'
4-
script: make test-ci
3+
- '0.12'
4+
script: gulp ci
55
install:
66
- npm install
7-
- npm install bower -g
7+
sudo: false
88
addons:
99
sauce_connect: true
1010
env:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Want to be listed as a *Contributor*? Make a pull request with:
2222
* Run `npm install` from the project directory
2323

2424
## Testing
25-
* (Local) Run `make test`. Make sure [Karma Local Config](karma.conf.js) has the browsers you want.
25+
* (Local) Run `gulp test`. Make sure [Karma Local Config](karma.conf.js) has the browsers you want.
2626
* (Any browser, remotely) If you have a [Sauce Labs](https://saucelabs.com) account, you can run `make ci`.
2727
Make sure the target browser is enabled in [Karma CI Config](karma.conf.ci.js).
2828
Otherwise, Travis will run all browsers if you submit a Pull Request.

Makefile

Lines changed: 0 additions & 41 deletions
This file was deleted.

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "stacktrace-js",
3-
"version": "0.6.4",
43
"main": "./stacktrace.js",
54
"homepage": "https://github.com/stacktracejs/stacktrace.js",
65
"authors": [

dist/stacktrace-with-polyfills.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stacktrace-with-polyfills.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stacktrace.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
(function (root, factory) {
22
'use strict';
33
// Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.
4+
5+
/* istanbul ignore next */
46
if (typeof define === 'function' && define.amd) {
5-
define('stacktrace', ['error-stack-parser', 'stack-generator', 'stacktrace-gps', 'es6-promise'], factory);
7+
define('stacktrace', ['error-stack-parser', 'stack-generator', 'stacktrace-gps'], factory);
68
} else if (typeof exports === 'object') {
7-
module.exports = factory(require('error-stack-parser'), require('stack-generator'), require('stacktrace-gps'), require('es6-promise'));
9+
module.exports = factory(require('error-stack-parser'), require('stack-generator'), require('stacktrace-gps'));
810
} else {
9-
root.StackTrace = factory(root.ErrorStackParser, root.StackGenerator, root.StackTraceGPS, root.ES6Promise);
11+
root.StackTrace = factory(root.ErrorStackParser, root.StackGenerator, root.StackTraceGPS);
1012
}
11-
}(this, function StackTrace(ErrorStackParser, StackGenerator, StackTraceGPS, ES6Promise) {
12-
ES6Promise.polyfill();
13-
var Promise = ES6Promise.Promise;
14-
13+
}(this, function StackTrace(ErrorStackParser, StackGenerator, StackTraceGPS) {
1514
var _options = {
1615
filter: function (stackframe) {
1716
// Filter out stackframes for this library by default

dist/stacktrace.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/stacktrace.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stacktrace.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)