Skip to content

Commit

Permalink
Add browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Oct 10, 2013
1 parent 7db38cf commit fb06ab9
Show file tree
Hide file tree
Showing 16 changed files with 7,432 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*.sublime-*
node_modules
lib
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- "0.11"
- "0.10"
8 changes: 8 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "parse-stack",
"version": "0.1.1",
"main": "lib/parse-stack.js",
"ignore": [
".*"
]
}
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rm -f lib/*
coffee -cbo lib/ src/

component build -s parse-stack -o . -n parse-stack

coffee -cb src/ test/
browserify test/*.js > test/browser/tests.js
rm src/*.js test/*.js
17 changes: 17 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "parse-stack",
"version": "0.1.1",
"license": "LGPLv3",
"description": "Parses the stack property of errors. Cross-browser.",
"main": "lib/parse-stack.js",
"repo": "lydell/parse-stack",
"keywords": [
"parse",
"stack",
"trace",
"error"
],
"scripts": [
"lib/parse-stack.js"
]
}
86 changes: 86 additions & 0 deletions lib/parse-stack.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse-stack",
"version": "0.1.0",
"version": "0.1.1",
"author": "Simon Lydell",
"license": "LGPLv3",
"description": "Parses the stack property of errors. Cross-browser.",
Expand All @@ -15,13 +15,16 @@
"error"
],
"scripts": {
"test": "mocha --compilers coffee:coffee-script",
"prepublish": "rm -rf lib && coffee --bare --output lib/ src/"
"test": "mocha",
"prepublish": "bash build.sh"
},
"devDependencies": {
"mocha": "~1.13.0",
"coffee-script": "~1.6.3",
"throws": "~0.1.0",
"equals": "~0.3.2"
"throws": "~0.1.6",
"equals": "~0.3.2",
"yaba": "~0.1.8",
"component": "~0.17.6",
"browserify": "~2.34.0"
}
}
Loading

0 comments on commit fb06ab9

Please sign in to comment.