Comparing version 1.1.7 to 1.1.8
/** | ||
* scrolldir - Vertical scroll direction in CSS | ||
* @version v1.1.6 | ||
* @version v1.1.7 | ||
* @link https://github.com/dollarshaveclub/scrolldir.git | ||
@@ -5,0 +5,0 @@ * @author Patrick Fisher <patrick@pwfisher.com> |
@@ -20,12 +20,20 @@ const gulp = require('gulp'); | ||
gulp.task('test', () => qunit('tests/index.html')); | ||
gulp.task('test', () => { | ||
qunit('tests/auto/index.html'); | ||
qunit('tests/standard/index.html'); | ||
}); | ||
gulp.task('minify', () => { | ||
gulp.src('dist/scrolldir.js') | ||
.pipe(uglify()) | ||
.pipe(head(banner, { pkg })) | ||
.pipe(rename({ suffix: '.min' })) | ||
.pipe(gulp.dest('dist/')); | ||
.pipe(uglify()) | ||
.pipe(head(banner, { pkg })) | ||
.pipe(rename({ suffix: '.min' })) | ||
.pipe(gulp.dest('dist/')); | ||
gulp.src('dist/scrolldir.auto.js') | ||
.pipe(uglify()) | ||
.pipe(head(banner, { pkg })) | ||
.pipe(rename({ suffix: '.min' })) | ||
.pipe(gulp.dest('dist/')); | ||
}); | ||
gulp.task('default', ['test', 'minify']); |
{ | ||
"name": "scrolldir", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Vertical scroll direction in CSS", | ||
@@ -8,2 +8,3 @@ "main": "dist/scrolldir.min.js", | ||
"test": "gulp test", | ||
"start": "rollup -c && rollup -c --environment entry:.auto && gulp", | ||
"postpublish": "git tag $npm_package_version && git push origin --tags" | ||
@@ -10,0 +11,0 @@ }, |
@@ -63,5 +63,8 @@ <figure align="center"> | ||
## Setup 📤 | ||
Default: | ||
Add **dist/scrolldir.min.js**. | ||
Auto: | ||
Add **dist/scrolldir.auto.min.js** and your done! Scrolldir will **just** conveniently work. | ||
## Usage 🛠 | ||
@@ -68,0 +71,0 @@ |
@@ -0,1 +1,5 @@ | ||
// rollup bundle commands | ||
// rollup -c => builds default scrolldir (default) | ||
// rollup -c --environment entry:.auto => builds self envoking scrolldir | ||
import babel from 'rollup-plugin-babel'; | ||
@@ -6,7 +10,9 @@ import eslint from 'rollup-plugin-eslint'; | ||
const name = process.env.entry ? process.env.entry : '.auto'; | ||
export default { | ||
entry: 'src/scrolldir.js', | ||
dest: 'dist/scrolldir.js', | ||
entry: `src/scrolldir${name}.js`, | ||
dest: `dist/scrolldir${name}.js`, | ||
format: 'umd', | ||
moduleName: 'scrollDir', | ||
moduleName: `scrollDir${name}`, | ||
sourceMap: false, // removes the souremap at the bottom of the file | ||
@@ -13,0 +19,0 @@ plugins: [ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
124021
22
402
120
2