Skip to content

Commit

Permalink
update for spm@3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 5, 2014
1 parent e5dd986 commit eed851d
Show file tree
Hide file tree
Showing 6 changed files with 276 additions and 286 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
language: node_js

node_js:
- "0.8"
- "0.10"

install:
- npm install mocha-browser nico
- npm install https://github.com/spmjs/spm/tree/master

before_script:
- git clone git://github.com/aralejs/nico-arale.git _theme
- node_modules/.bin/nico build --theme _theme -C _theme/nico.js
- node_modules/.bin/spm-install

script:
- node_modules/.bin/mocha-browser _site/tests/runner.html -S

after_success:
- npm install jscoverage coveralls
- node_modules/.bin/jscoverage --encoding=utf8 src _site/src-cov
- node_modules/.bin/mocha-browser _site/tests/runner.html?cov -S -R lcov | node_modules/.bin/coveralls
- node_modules/.bin/spm-test
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./src/class')
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"url": "https://github.com/aralejs/class/issues"
},
"spm": {
"main": "src/class.js",
"output": ["src/class.js"]
"main": "index.js",
"devDependencies": {
"expect": "0.3.1"
},
"engines": {
"seajs": "2.2.1"
},
"tests": "tests/*-spec.js"
}
}
Loading

0 comments on commit eed851d

Please sign in to comment.