
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
gulp-bem-project
Advanced tools
Gulp plugins for modern BEM projects.
npm install gulp-bem-project --save-dev
Concats BH template files into one. Emits one JS file which exports a function. This function takes BH engine object as the only parameter.
'use strict';
let gulp = require('gulp');
let concatBH = require('gulp-bem-project')['bh-server-concat'];
gulp.task('bh-server', () => {
gulp
.src([
'app/blocks/**/*.bh.js',
'app/blocks/**/*.bh.server.js'
])
// first argument is result relative file path
// second argument is base path (optional)
.pipe(concatBH('combined.bh.js', './relative/path/to/your/app'))
.pipe(gulp.dest("./"));
});
'use strict';
let gulp = require('gulp');
let clientBHEngine = require('gulp-bem-project')['bh-client-engine'];
gulp.task('bh-engine', () => {
gulp
.src('node_modules/bh/lib/bh.js')
// first and only argument is object with dependencies
// it is optional
.pipe(clientBHEngine({i18n: 'i18n'}))
.pipe(gulp.dest("./"));
});
'use strict';
let gulp = require('gulp');
let clientBHMatchers = require('gulp-bem-project')['bh-client-matchers'];
gulp.task('bh-client', ['bh-engine'], () => {
gulp
.src('app/blocks/**/*.bh.client.js')
.pipe(clientBHMatchers())
.pipe(concat('all.bh.client.js'))
.pipe(gulp.dest("./"));
});
'use strict';
let gulp = require('gulp');
let wrapWithPath = require('gulp-bem-project')['wrap-with-path'];
gulp.task('css', () => {
gulp
.src('app/blocks/**/*.css')
.pipe(wrapWithPath())
.pipe(concat('all.css'))
.pipe(gulp.dest('./'));
});
// all.css will contain something like:
/* begin: /home/user/www/project-name/app/blocks/award/award.css */
// ...selectors here...
/* end: /home/user/www/project-name/app/blocks/award/award.css */
/* begin: /home/user/www/project-name/app/blocks/user/user.css */
// ...selectors here...
/* end: /home/user/www/project-name/app/blocks/user/user.css */
/* begin: /home/user/www/project-name/app/blocks/wrapper/wrapper.css */
// ...selectors here...
/* end: /home/user/www/project-name/app/blocks/wrapper/wrapper.css */
wrap-with-path
plugin'use strict';
let gulp = require('gulp');
let wrapWithPath = require('gulp-bem-project')['wrap-with-path'];
let cssResolver = require('gulp-bem-project')['css-urls-resolver'];
let sass = require('gulp-sass');
gulp.task('css', ['bh-engine'], () => {
gulp
.src('app/blocks/**/*.scss')
.pipe(wrapWithPath())
.pipe(concat())
.pipe(sass())
.pipe(cssResolver())
.pipe(gulp.dest("./"));
});
FAQs
Gulp plugins for modern BEM projects
The npm package gulp-bem-project receives a total of 0 weekly downloads. As such, gulp-bem-project popularity was classified as not popular.
We found that gulp-bem-project demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.