Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

basicplaceholder

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basicplaceholder - npm Package Compare versions

Comparing version 1.3.0 to 1.4.2

11

bower.json
{
"name": "basicPlaceholder",
"version": "1.3.0",
"authors": [

@@ -20,11 +19,3 @@ "Tobias Reich <tobias@electerious.com>"

"url": "https://github.com/electerious/basicPlaceholder.git"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"etc"
]
}
}
'use strict'
let name = require('./package.json').moduleName,
gulp = require('gulp'),
browserify = require('browserify'),
babelify = require('babelify'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
plugins = require('gulp-load-plugins')()
let name = require('./package.json').moduleName,
gulp = require('gulp'),
tasks = require('@electerious/basictasks')(gulp, name)
const catchError = function(err) {
const scripts = tasks.scripts({
from : './src/scripts/main.js',
to : './dist'
})
console.log(err.toString())
this.emit('end')
const styles = tasks.styles({
from : './src/styles/main.scss',
to : './dist'
})
}
const scripts = function() {
let bify = browserify({
entries : './src/scripts/main.js',
standalone : name
})
let transformer = babelify.configure({
presets: ['es2015']
})
bify.transform(transformer)
.bundle()
.on('error', catchError)
.pipe(source(name + '.min.js'))
.pipe(buffer())
.pipe(plugins.uglify())
.on('error', catchError)
.pipe(gulp.dest('./dist'))
}
const styles = function() {
gulp.src('./src/styles/main.scss')
.pipe(plugins.sass())
.on('error', catchError)
.pipe(plugins.rename((path) => path.basename = name + '.min'))
.pipe(plugins.autoprefixer('last 2 version', '> 1%'))
.pipe(plugins.minifyCss())
.pipe(gulp.dest('./dist'))
}
const watch = function() {
gulp.watch('./src/scripts/**/*.js', ['scripts'])
gulp.watch('./src/styles/**/*.scss', ['styles'])
gulp.watch('./src/scripts/**/*.js', ['scripts'])
}

@@ -58,0 +21,0 @@

{
"name": "basicplaceholder",
"moduleName": "basicPlaceholder",
"version": "1.3.0",
"version": "1.4.2",
"authors": [

@@ -22,24 +22,6 @@ "Tobias Reich <tobias@electerious.com>"

},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"etc"
],
"devDependencies": {
"babel-preset-es2015": "^6.1.2",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"gulp": "^3.9.0",
"gulp-autoprefixer": "3.1.0",
"gulp-load-plugins": "^1.1.0",
"gulp-minify-css": "^1.2.1",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.1.0",
"gulp-uglify": "^1.4.2",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"@electerious/basictasks": "^1.1.1",
"gulp": "^3.9.0"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc