Skip to content

Commit

Permalink
Merge pull request Leaflet#944 from kontrollanten/travis-node-8
Browse files Browse the repository at this point in the history
Upgrade deps and Node version
  • Loading branch information
danzel authored Mar 3, 2019
2 parents 3aae0cb + b06c4da commit 93bf540
Show file tree
Hide file tree
Showing 6 changed files with 5,855 additions and 21 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
sudo: false
language: node_js
node_js:
- 6
- 8
cache:
directories:
- "travis_phantomjs"
- "$HOME/.npm"

before_install:
- "export PHANTOMJS_VERSION=2.1.1"
- "hash -r"
Expand All @@ -17,4 +19,7 @@ before_install:
- "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "hash -r"
- "phantomjs --version"
- "phantomjs --version"

install:
- npm ci
2 changes: 1 addition & 1 deletion Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ task('build', ['lint'], {

desc('Compress bundled files');
task('uglify', ['build'], function(){
jake.exec('npm run-script uglify', function() { console.log('Uglyfied.'); });
jake.exec('npm run-script uglify', function() { console.log('Uglyfied.'); });
});

desc('Run PhantomJS tests');
Expand Down
16 changes: 9 additions & 7 deletions build/rollup-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ const banner = `/*
*/`;

export default {
format: 'umd',
moduleName: 'Leaflet.markercluster',
banner: banner,
entry: 'src/index.js',
dest: 'dist/leaflet.markercluster-src.js',
input: 'src/index.js',
output: {
banner,
file: 'dist/leaflet.markercluster-src.js',
format: 'umd',
legacy: true, // Needed to create files loadable by IE8
name: 'Leaflet.markercluster',
sourcemap: true,
},
plugins: [
release ? json() : rollupGitVersion(),
],
sourceMap: true,
legacy: true // Needed to create files loadable by IE8
};
Loading

0 comments on commit 93bf540

Please sign in to comment.