From 9a5e34b9ebcbeeb66976ef529032e7c06300fef1 Mon Sep 17 00:00:00 2001 From: Nicolas Pio Date: Wed, 9 Mar 2016 17:11:34 -0300 Subject: [PATCH 1/7] Update to use new API from Laravel Elixir --- index.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 3d99522..a8a64f0 100644 --- a/index.js +++ b/index.js @@ -20,13 +20,11 @@ elixir.extend('jscs', function(src, options) { // default options options = options || {}; - // Setup the task - gulp.task('jscs', function() { - return gulp.src(files) - .pipe(jscs(options)) - }); + new elixir.Task('jscs', function () { - // register the task to actually run via elixir - this.registerWatcher('jscs', files); - return this.queueTask('jscs'); + // Setup the task + return gulp.task('jscs', function() { + return gulp.src(files).pipe(jscs(options)); + }); + }); }); From bea29675a9e8febae6bbb42366fa3bf0ef145cef Mon Sep 17 00:00:00 2001 From: Nicolas Pio Date: Wed, 9 Mar 2016 17:45:10 -0300 Subject: [PATCH 2/7] Add console reporter --- README.md | 19 +++++++++++++++++++ index.js | 5 ++++- package.json | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 486501c..06ac1c4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ # laravel-elixir-jscs Laravel Elixir JSCS Extension + +## Install +``` +$ npm install --save-dev laravel-elixir-jscs +``` + +## Usage + +```js +require('laravel-elixir-jscs'); + +elixir(function(mix) { + mix.jscs(['assets/my-assets/js/**/*.js']. { + 'configPath': __dirname + '/.jscsrc' + }); +}); +``` + +Create `.jscsrc` with your settings follow [jscs options](http://jscs.info/overview#options) diff --git a/index.js b/index.js index a8a64f0..035f706 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,10 @@ elixir.extend('jscs', function(src, options) { // Setup the task return gulp.task('jscs', function() { - return gulp.src(files).pipe(jscs(options)); + + return gulp.src(files) + .pipe(jscs(options)) + .pipe(jscs.reporter()); }); }); }); diff --git a/package.json b/package.json index 943d1b1..8ae9b22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "laravel-elixir-jscs", - "version": "1.0.0", + "version": "2.0.0", "description": "Laravel Elixir JSCS Extension", "main": "index.js", "dependencies": { From 0532057ec158e7061c569dd00b2f984120985103 Mon Sep 17 00:00:00 2001 From: Nicolas Pio Date: Tue, 15 Mar 2016 16:50:46 -0300 Subject: [PATCH 3/7] Update package to register in npmjs --- README.md | 9 +++++---- package.json | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 06ac1c4..2f28dfc 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ -# laravel-elixir-jscs -Laravel Elixir JSCS Extension +# Laravel Elixir JSCS Extension + +This is a fork from [chipbell4/laravel-elixir-jscs](https://github.com/chipbell4/laravel-elixir-jscs) with update to use new Laravel Elixir API ## Install ``` -$ npm install --save-dev laravel-elixir-jscs +$ npm install --save-dev laravel-elixir-jscs-wrapper ``` ## Usage ```js -require('laravel-elixir-jscs'); +require('laravel-elixir-jscs-wrapper'); elixir(function(mix) { mix.jscs(['assets/my-assets/js/**/*.js']. { diff --git a/package.json b/package.json index 8ae9b22..9a450ef 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/chipbell4/laravel-elixir-jscs.git" + "url": "https://github.com/NicolasPio/laravel-elixir-jscs-wrapper" }, "keywords": [ "laravel", @@ -22,10 +22,10 @@ "jscs", "gulp" ], - "author": "Chip Bell", + "author": "Nicolas Pio", "license": "MIT", "bugs": { - "url": "https://github.com/chipbell4/laravel-elixir-jscs/issues" + "url": "https://github.com/NicolasPio/laravel-elixir-jscs-wrapper/issues" }, - "homepage": "https://github.com/chipbell4/laravel-elixir-jscs" + "homepage": "https://github.com/NicolasPio/laravel-elixir-jscs-wrapper" } From 54663e17b74ed2b220150df6ca2abfbcb24fc4aa Mon Sep 17 00:00:00 2001 From: Nicolas Pio Date: Tue, 15 Mar 2016 16:55:18 -0300 Subject: [PATCH 4/7] Change name from module --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a450ef..0348669 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "laravel-elixir-jscs", + "name": "laravel-elixir-jscs-wrapper", "version": "2.0.0", "description": "Laravel Elixir JSCS Extension", "main": "index.js", From ec2e8f728bef35f80b802312b59ebd3652fb8800 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 1 Sep 2016 19:17:20 +0000 Subject: [PATCH 5/7] fix: package.json & .snyk to reduce vulnerabilities --- .snyk | 20 ++++++++++++++++++++ package.json | 16 ++++++++++------ 2 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ed91a10 --- /dev/null +++ b/.snyk @@ -0,0 +1,20 @@ +version: v1.5.0 +ignore: + 'npm:shell-quote:20160621': + - laravel-elixir > browserify > shell-quote: + reason: None given + expires: '2016-10-01T19:17:18.705Z' +patch: + 'npm:minimatch:20160620': + - laravel-elixir > browserify > glob > minimatch: + patched: '2016-09-01T19:17:18.824Z' + - laravel-elixir > gulp-phpunit > gulp > vinyl-fs > glob-stream > minimatch: + patched: '2016-09-01T19:17:18.824Z' + - laravel-elixir > gulp-phpunit > gulp > vinyl-fs > glob-stream > glob > minimatch: + patched: '2016-09-01T19:17:18.824Z' + - laravel-elixir > gulp-if > gulp-match > minimatch: + patched: '2016-09-01T19:17:18.824Z' + - laravel-elixir > gulp-phpunit > gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2016-09-01T19:17:18.824Z' + - laravel-elixir > gulp-phpunit > gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2016-09-01T19:17:18.824Z' diff --git a/package.json b/package.json index 0348669..bbfb527 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,16 @@ "description": "Laravel Elixir JSCS Extension", "main": "index.js", "dependencies": { - "gulp-jscs": "^1.6.0", - "laravel-elixir": "^2.3.12", - "gulp-notify": "^2.2.0" + "gulp-jscs": "2.0.0", + "laravel-elixir": "4.0.1", + "gulp-notify": "^2.2.0", + "snyk": "^1.19.1" }, "devDependencies": {}, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -27,5 +30,6 @@ "bugs": { "url": "https://github.com/NicolasPio/laravel-elixir-jscs-wrapper/issues" }, - "homepage": "https://github.com/NicolasPio/laravel-elixir-jscs-wrapper" -} + "homepage": "https://github.com/NicolasPio/laravel-elixir-jscs-wrapper", + "snyk": true +} \ No newline at end of file From 9f929db766086aedbebd66f49f80e51da2e39e58 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 25 May 2017 03:56:22 +0000 Subject: [PATCH 6/7] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for nicolaspio/laravel-elixir-jscs-wrapper: https://snyk.io/test/github/nicolaspio/laravel-elixir-jscs-wrapper --- .snyk | 40 +++++++++++++++++++++++++++++++++++++++- package.json | 2 +- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/.snyk b/.snyk index ed91a10..18fa503 100644 --- a/.snyk +++ b/.snyk @@ -1,9 +1,12 @@ -version: v1.5.0 +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +# ignores vulnerabilities until expiry date; change duration by modifying expiry date ignore: 'npm:shell-quote:20160621': - laravel-elixir > browserify > shell-quote: reason: None given expires: '2016-10-01T19:17:18.705Z' +# patches apply the minimum changes required to fix a vulnerability patch: 'npm:minimatch:20160620': - laravel-elixir > browserify > glob > minimatch: @@ -18,3 +21,38 @@ patch: patched: '2016-09-01T19:17:18.824Z' - laravel-elixir > gulp-phpunit > gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: patched: '2016-09-01T19:17:18.824Z' + 'npm:ms:20170412': + - laravel-elixir > browser-sync > serve-static > send > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > connect > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > serve-index > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > localtunnel > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > socket.io-parser > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io-client > socket.io-parser > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > socket.io-client > socket.io-parser > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > socket.io-adapter > socket.io-parser > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > connect > finalhandler > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > engine.io > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > socket.io-adapter > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io-client > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > socket.io-client > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io-client > engine.io-client > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > socket.io > socket.io-client > engine.io-client > debug > ms: + patched: '2017-05-25T03:56:22.137Z' + - laravel-elixir > browser-sync > serve-static > send > debug > ms: + patched: '2017-05-25T03:56:22.137Z' diff --git a/package.json b/package.json index bbfb527..91885cf 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "gulp-jscs": "2.0.0", "laravel-elixir": "4.0.1", "gulp-notify": "^2.2.0", - "snyk": "^1.19.1" + "snyk": "^1.30.1" }, "devDependencies": {}, "scripts": { From 2c8041090c1490031b41d1c273a41afb6b6459db Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 10 Oct 2019 02:13:49 +0000 Subject: [PATCH 7/7] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131 --- .snyk | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.snyk b/.snyk index 18fa503..5813c60 100644 --- a/.snyk +++ b/.snyk @@ -1,5 +1,5 @@ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.7.1 +version: v1.13.5 # ignores vulnerabilities until expiry date; change duration by modifying expiry date ignore: 'npm:shell-quote:20160621': @@ -56,3 +56,8 @@ patch: patched: '2017-05-25T03:56:22.137Z' - laravel-elixir > browser-sync > serve-static > send > debug > ms: patched: '2017-05-25T03:56:22.137Z' + SNYK-JS-HTTPSPROXYAGENT-469131: + - snyk > proxy-agent > https-proxy-agent: + patched: '2019-10-10T02:13:47.742Z' + - snyk > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-10T02:13:47.742Z' diff --git a/package.json b/package.json index 91885cf..b1d6215 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "gulp-jscs": "2.0.0", "laravel-elixir": "4.0.1", "gulp-notify": "^2.2.0", - "snyk": "^1.30.1" + "snyk": "^1.234.0" }, "devDependencies": {}, "scripts": {