Download pool/shard011/JavaScript/0069053_stylus.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 815 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0069053_stylus.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard011/JavaScript/0069053_stylus.js
-
curl -L -o 0069053_stylus.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard011/JavaScript/0069053_stylus.js
815 Bytes
| var gulp = require( "gulp" ); | |
| var plumber = require( "gulp-plumber" ); | |
| var browserSync = require( "browser-sync" ); | |
| var stylus = require( "gulp-stylus" ); | |
| var nib = require( "nib" ); | |
| var paths = require( "./config" ).paths; | |
| gulp.task( "styles", function() { | |
| create( false ); | |
| } ); | |
| gulp.task( "styles-build", function() { | |
| create( true ); | |
| } ); | |
| function create( isBuild ) { | |
| var opts = {} | |
| opts.use = [ nib() ]; | |
| opts.compress = isBuild; | |
| opts.sourcemap = isBuild ? false : { inline: true }; | |
| opts.url = { name: "url64" }; | |
| return gulp.src( paths.styles + "main.styl" ) | |
| .pipe( plumber() ) | |
| .pipe( stylus( opts) ) | |
| .pipe( plumber.stop() ) | |
| .pipe( gulp.dest( ( isBuild ? paths.build : paths.dist ) + "/css" ) ) | |
| .pipe( browserSync.stream() ); | |
| } | |