Comparing version 0.2.4 to 0.2.5
@@ -8,2 +8,3 @@ 'use strict'; | ||
const sourcemaps = require('gulp-sourcemaps'); | ||
const utils = require('fepper-utils'); | ||
@@ -13,12 +14,5 @@ const conf = global.conf; | ||
const cssBldDir = conf.ui.paths.source.cssBld; | ||
const cssSrcDir = conf.ui.paths.source.cssSrc; | ||
// Set up pref.less. | ||
pref.less = pref.less || {}; | ||
if (typeof pref.less.paths === 'undefined') { | ||
pref.less.paths = [cssSrcDir + '/less']; | ||
} | ||
// Opt for line comments by default. | ||
@@ -29,2 +23,18 @@ if (typeof pref.less.dumpLineNumbers === 'undefined') { | ||
const cssBldDir = conf.ui.paths.source.cssBld; | ||
const cssSrcDir = conf.ui.paths.source.cssSrc; | ||
if (typeof pref.less.paths === 'undefined') { | ||
pref.less.paths = [cssSrcDir + '/less']; | ||
} | ||
const streamUntouched = () => new Transform({ | ||
readableObjectMode: true, | ||
writableObjectMode: true, | ||
transform(file, enc, cb) { | ||
this.push(file); | ||
cb(); | ||
} | ||
}); | ||
function getSourcemapDest() { | ||
@@ -75,13 +85,2 @@ if ( | ||
function streamUntouched() { | ||
return new Transform({ | ||
readableObjectMode: true, | ||
writableObjectMode: true, | ||
transform(file, enc, cb) { | ||
this.push(file); | ||
cb(); | ||
} | ||
}); | ||
} | ||
// Declare gulp tasks. | ||
@@ -140,1 +139,22 @@ | ||
}); | ||
gulp.task('less:help', function (cb) { | ||
let out = ` | ||
Fepper Less Extension | ||
Use: | ||
<task> [<additional args>...] | ||
Tasks: | ||
fp less Build Fepper's Less files into frontend CSS. | ||
fp less:frontend-copy Copy Less-built frontend CSS to backend. | ||
fp less:no-comment Like 'fp less' but without line comments. | ||
fp less:once Same as 'fp less'. | ||
fp less:watch Watch for modifications to Less files and build when modified. | ||
fp less:watch-no-comment Like 'fp less:watch' but without line comments. | ||
fp less:help Print fp-less tasks and descriptions. | ||
`; | ||
utils.info(out); | ||
cb(); | ||
}); |
{ | ||
"name": "fp-less", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Less extension for Fepper", | ||
@@ -5,0 +5,0 @@ "main": "less~extend.js", |
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
10268
124