Skip to content

Commit

Permalink
Merge pull request uwdub#19 from jayfo/invoke
Browse files Browse the repository at this point in the history
Add Dependencies to Invoke
  • Loading branch information
jayfo committed Nov 21, 2015
2 parents 21d8fb3 + e6965dd commit bcb5a46
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 39 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
.idea

# Jekyll's build of the site
.jekyll-metadata
_site

# Our Python environment
env34

# Compiled Python
*.pyc

# Installed node packages
node_modules
44 changes: 8 additions & 36 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,62 +1,34 @@
GEM
remote: https://rubygems.org/
specs:
blankslate (2.1.2.4)
classifier-reborn (2.0.3)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.6.0)
fast-stemmer (1.0.2)
ffi (1.9.10-x86-mingw32)
hitimes (1.2.3-x86-mingw32)
jekyll (2.5.3)
classifier-reborn (~> 2.0)
jekyll (3.0.1)
colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 2.6.1)
liquid (~> 3.0)
mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
rouge (~> 1.7)
safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-gist (1.3.4)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
sass (~> 3.2)
jekyll-watch (1.3.0)
listen (~> 3.0)
kramdown (1.8.0)
liquid (2.6.3)
listen (3.0.3)
kramdown (1.9.0)
liquid (3.0.6)
listen (3.0.5)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
mercenary (0.3.5)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.11)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.6)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
redcarpet (3.3.3)
rouge (1.10.1)
safe_yaml (1.0.4)
sass (3.4.18)
toml (0.1.2)
parslet (~> 1.5.0)
yajl-ruby (1.2.1)
sass (3.4.19)

PLATFORMS
x86-mingw32
Expand Down
13 changes: 10 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@


@invoke.task
def update_dependencies():
print('Updating dependencies')
invoke.run('bundle install')
invoke.run('pip install -r requirements3.txt')


@invoke.task(pre=[update_dependencies])
def build():
invoke.run('jekyll build -t --config _config.yml,_config-dev.yml')
invoke.run('bundle exec jekyll build -t --config _config.yml,_config-dev.yml')


@invoke.task
@invoke.task(pre=[update_dependencies])
def serve():
invoke.run('jekyll serve -t --config _config.yml,_config-dev.yml --watch --force_polling')
invoke.run('bundle exec jekyll serve -t --config _config.yml,_config-dev.yml --watch --force_polling')


@invoke.task
Expand Down

0 comments on commit bcb5a46

Please sign in to comment.