Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #349 from idan/npmify
Browse files Browse the repository at this point in the history
[WIP] Make Batavia installable via NPM
  • Loading branch information
glasnt committed Dec 3, 2016
2 parents b731db0 + 478630c commit 4e10caf
Show file tree
Hide file tree
Showing 238 changed files with 13,137 additions and 31,747 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["latest"]
}
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "airbnb",
}
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@ _build
distribute-*
/batavia*.js
/batavia*.min.js
/batavia/modules/stdlib/*.js
/batavia*.map
/batavia/stdlib.js
/batavia/stdlib/*.js
/tests/temp
env
.eggs/
.python-version
make.exe
phantomjs.exe

# JS
node_modules/
package/

# PyCharm settings
.idea

# Py.test
.cache

14 changes: 3 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,14 @@ python:

install:
- "pip install ."
- "npm install"
- "npm install webpack -g"

script:
- "cd docs && make dirhtml ; cd .."
## The $PATH seems to need to be re-inforced here rather than in the 'before_install' stage.
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "python setup.py test -q"
- "python setup.py test"

## Cache the pip install (which is minimal at the moment), and the phantomjs install.
cache:
pip: []
directories:
- "travis_phantomjs"

## These phantomjs instructions are adapted from this comment:
## https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-200965782
before_install:
- "if [ ! -x $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ ! -x $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
- "if [ ! -x $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
160 changes: 0 additions & 160 deletions Makefile

This file was deleted.

Loading

0 comments on commit 4e10caf

Please sign in to comment.