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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js

node_js:
- "6"
- "8"
- "stable"

install:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

# vue-ls

[![Greenkeeper badge](https://badges.greenkeeper.io/RobinCK/vue-ls.svg)](https://greenkeeper.io/)

Vue plugin for work with local storage, session storage and memory storage from Vue context

[![NPM](https://nodei.co/npm/vue-ls.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/vue-ls/)
Expand Down
4 changes: 2 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
machine:
node:
version: 4.7.3
version: 8
environment:
YARN_VERSION: 0.20.3
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
Expand All @@ -22,4 +22,4 @@ compile:

test:
override:
- yarn run test
- yarn run test
2 changes: 2 additions & 0 deletions dist/vue-ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var _createClass = function () { function defineProperties(target, props) { for

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

/* eslint class-methods-use-this: off */

var ls = {};

var MemoryStorageInterface = function () {
Expand Down
27 changes: 14 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
var gulp = require('gulp');
var http = require('http');
var connect = require('connect');
var serveStatic = require('serve-static');
var nightwatch = require('gulp-nightwatch');
var gutil = require('gulp-util');
var args = require('get-gulp-args')();
var httpServer;
const gulp = require('gulp');
const http = require('http');
const connect = require('connect');
const serveStatic = require('serve-static');
const nightwatch = require('gulp-nightwatch');
const gutil = require('gulp-util');
const args = require('get-gulp-args')();

let httpServer;

function logger (message) {
gutil.log(gutil.colors.green(message));
}

gulp.task('http:start', function (done) {
gulp.task('http:start', (done) => {
logger('Start http server');

const app = connect().use(serveStatic('./'));
httpServer = http.createServer(app).listen(9000, done);
});

gulp.task('http:stop', function (done) {
gulp.task('http:stop', (done) => {
httpServer.close();
logger('Shutdown http server');
done();
});

gulp.task('e2e', gulp.series(['http:start'], function () {
var env = args.env || 'phantomjs';
gulp.task('e2e', gulp.series(['http:start'], () => {
const env = args.env || 'phantomjs';

return gulp.src('./build/nightwatch.config.js')
.pipe(nightwatch({
Expand All @@ -34,4 +36,3 @@ gulp.task('e2e', gulp.series(['http:start'], function () {
}));

gulp.task('test', gulp.series(['e2e', 'http:stop']));
gulp.task('default', gulp.parallel('js'));
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"bugs": {
"url": "https://github.com/RobinCK/vue-ls/issues"
},
"engines": {
"node": ">=6.11.5"
},
"homepage": "https://github.com/RobinCK/vue-ls#readme",
"license": "MIT",
"devDependencies": {
Expand All @@ -77,37 +80,37 @@
"browserstack-automate": "https://github.com/browserstack/browserstack-integration-nodejs.git#master",
"chromedriver": "^2.28.0",
"connect": "^3.6.0",
"coveralls": "^2.11.16",
"coveralls": "^3.0.0",
"eslint": "^4.7.0",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"get-gulp-args": "^0.0.1",
"gulp": "github:gulpjs/gulp#4.0",
"gulp-nightwatch": "^0.3.2",
"gulp-util": "^3.0.8",
"jasmine": "^2.5.3",
"jasmine-core": "^2.5.2",
"karma": "^1.5.0",
"jasmine": "^3.1.0",
"jasmine-core": "^3.1.0",
"karma": "^2.0.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-sauce-launcher": "^1.1.0",
"karma-webpack": "^2.0.3",
"karma-webpack": "^3.0.0",
"mock-browser": "^0.92.12",
"nightwatch": "^0.9.14",
"nyc": "^11.0.3",
"phantomjs": "^2.1.7",
"remove": "^0.1.5",
"rollup": "^0.50.0",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-local-resolve": "^1.0.7",
"rollup-plugin-uglify": "^3.0.0",
"selenium-server": "^3.3.1",
"serve-static": "^1.12.1",
"vue": "^2.2.4",
"webpack": "^3.3.0"
"webpack": "^4.5.0"
},
"semistandard": {
"ignore": [
Expand Down
2 changes: 2 additions & 0 deletions src/storage/MemoryStorage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint class-methods-use-this: off */

let ls = {};

class MemoryStorageInterface {
Expand Down