Skip to content

Commit

Permalink
feat: cache dependencies in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Oct 18, 2017
1 parent 33ca908 commit 4470bd9
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,6 @@ local.properties
# Code Recommenders
.recommenders/

# webpackmonitor
.monitor/

4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ node_js:
os:
- linux
- osx
cache:
yarn: true
directories:
- node_modules
install:
- yarn
# - yarn build
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ platform:
# - x86
- x64

cache:
- "%LOCALAPPDATA%\\Yarn"
- node_modules

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
Expand Down
5 changes: 4 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const webpack = require('webpack')
module.exports = {
srcDir: 'client/',
buildDir: 'dist/client/',
rootDir: './',
dev: (process.env.NODE_ENV !== 'production'),
/*
** Router config
Expand Down Expand Up @@ -89,7 +90,9 @@ module.exports = {
{src: '@/plugins/clipboard', ssr: false},
{src: '@/plugins/error-handler', ssr: false}
],

modules: [
'@nuxtjs/webpackmonitor'
],
// koa-proxies for dev, options reference https://github.com/nodejitsu/node-http-proxy#options
development: {
proxies: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"xmlify": "^1.1.0"
},
"devDependencies": {
"@nuxtjs/webpackmonitor": "^0.0.3",
"ava": "^0.22.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
Expand Down
Loading

0 comments on commit 4470bd9

Please sign in to comment.