Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
{
"presets": [
[
"es2015",
{
"modules": false
["env", {
"modules": false,
"targets": {
"browsers": [
"> 1%",
"Chrome >= 14",
"Safari >= 4",
"Firefox >= 4",
"Opera >= 10",
"Edge >= 41",
"ie >= 9",
"iOS >= 6",
"ChromeAndroid >= 4",
"OperaMobile >= 12"
]
}
]
}]
],
"ignore": [
"dist/*.js",
"packages/**/*.js"
],
"plugins": [
"transform-object-assign",
"transform-es2015-modules-commonjs"
"transform-es2015-modules-commonjs",
"transform-object-assign"
]
}
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
"window": true
},
"rules": {
"semi-style": 0,
"no-cond-assign": 0,
"no-plusplus": 0,
"no-restricted-syntax": 0,
Expand Down
3 changes: 3 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
jshint:
ignore_file: .jshintignore
config_file: .jshintrc
6 changes: 6 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/test
/dist
/node_modules
/build
coverage
gulpfile.js
3 changes: 3 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esversion": 6
}
42 changes: 42 additions & 0 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import babel from 'rollup-plugin-babel';
import uglify from 'rollup-plugin-uglify';

export default {
input: 'src/index.js',
plugins: [
babel({
babelrc: false,
presets: [
["env", {
modules: false,
targets: {
browsers: [
"> 1%",
"Chrome >= 14",
"Safari >= 4",
"Firefox >= 4",
"Opera >= 10",
"Edge >= 41",
"ie >= 9",
"iOS >= 6",
"ChromeAndroid >= 4",
"OperaMobile >= 12"
]
}
}]
],
plugins: [
"transform-object-assign"
],
runtimeHelpers: true,
externalHelpers: false,
exclude: 'node_modules/**',
}),
(process.env.NODE_ENV === 'production' && uglify())
],
output: {
file: process.env.NODE_ENV === 'production' ? 'dist/vue-ls.min.js' : 'dist/vue-ls.js',
format: 'umd',
name: 'VueLocalStorage',
}
};
Loading