Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
update build scripts
  • Loading branch information
steffans committed Jan 28, 2017
1 parent e0ca524 commit adc7f44
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
9 changes: 3 additions & 6 deletions build/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs');
var rollup = require('rollup');
var uglify = require('uglify-js');
var babel = require('rollup-plugin-babel');
var buble = require('rollup-plugin-buble');
var package = require('../package.json');
var banner =
"/*!\n" +
Expand All @@ -12,11 +12,7 @@ var banner =

rollup.rollup({
entry: 'src/index.js',
plugins: [
babel({
presets: ['es2015-loose-rollup']
})
]
plugins: [buble()]
})
.then(function (bundle) {
return write('dist/vue-resource.js', bundle.generate({
Expand All @@ -32,6 +28,7 @@ rollup.rollup({
})
.then(function (bundle) {
return write('dist/vue-resource.es2015.js', bundle.generate({
format: 'es',
banner: banner,
footer: 'export { Url, Http, Resource };'
}).code, bundle);
Expand Down
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@
"release": "node build/release.js"
},
"devDependencies": {
"babel-core": "^6.14.0",
"babel-loader": "^6.2.5",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-es2015-loose-rollup": "^7.0.0",
"buble": "^0.15.2",
"buble-loader": "^0.4.0",
"generate-release": "^0.10.1",
"jasmine-core": "^2.5.0",
"jasmine-core": "^2.5.2",
"replace-in-file": "^2.0.1",
"rollup": "^0.34.13",
"rollup": "^0.41.4",
"rollup-plugin-babel": "^2.6.1",
"uglify-js": "^2.7.3",
"vue": "^1.0.26",
"webpack": "2.1.0-beta.21"
"rollup-plugin-buble": "^0.15.0",
"uglify-js": "^2.7.5",
"vue": "^2.1.10",
"webpack": "^2.2.0"
}
}
8 changes: 4 additions & 4 deletions test/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = {
entry: __dirname + "/index.js",
entry: __dirname + '/index.js',
output: {
path: __dirname + "/",
filename: "specs.js"
path: __dirname + '/',
filename: 'specs.js'
},
module: {
loaders: [
{test: /.js/, exclude: /node_modules/, loader: 'babel', query: {presets: [['es2015', {modules: false}]]}}
{test: /\.js$/, loader: 'buble-loader', exclude: /node_modules/}
]
}
};

0 comments on commit adc7f44

Please sign in to comment.