Skip to content

Commit

Permalink
apply csp patch
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 27, 2016
1 parent a8d6330 commit 94cf00d
Show file tree
Hide file tree
Showing 9 changed files with 4,705 additions and 52 deletions.
9 changes: 6 additions & 3 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ rollup.rollup({
entry: 'src/index.js',
plugins: [
babel({
loose: 'all'
loose: 'all',
exclude: 'lib/**'
})
]
})
Expand All @@ -45,7 +46,8 @@ rollup.rollup({
'process.env.NODE_ENV': "'development'"
}),
babel({
loose: 'all'
loose: 'all',
exclude: 'lib/**'
})
]
})
Expand All @@ -66,7 +68,8 @@ rollup.rollup({
'process.env.NODE_ENV': "'production'"
}),
babel({
loose: 'all'
loose: 'all',
exclude: 'lib/**'
})
]
})
Expand Down
2 changes: 1 addition & 1 deletion build/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ -z $CI_PULL_REQUEST ]] && [[ $CIRCLE_BRANCH = master ]]; then
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
npm run build
npm run e2e
npm run sauce-all
npm run sauce #csp only need Chrome/FF
else
npm test
fi
2 changes: 1 addition & 1 deletion build/karma.cover.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function (config) {
options.webpack.module.postLoaders = [
{
test: /\.js$/,
exclude: /test|node_modules/,
exclude: /test|node_modules|lib\//,
loader: 'istanbul-instrumenter'
}
]
Expand Down

0 comments on commit 94cf00d

Please sign in to comment.