basicplaceholder
Advanced tools
Comparing version 1.3.0 to 1.4.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
0
18435
121