mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
chore(): fix plugin:create
This commit is contained in:
parent
f2cf1d4e03
commit
f4acc35cba
@ -34,7 +34,7 @@ gulp.task('lint', function() {
|
|||||||
gulp.task('plugin:create', function(){
|
gulp.task('plugin:create', function(){
|
||||||
if(flags.n && flags.n !== ''){
|
if(flags.n && flags.n !== ''){
|
||||||
var src = flags.m?'./TEMPLATE-MIN':'./TEMPLATE';
|
var src = flags.m?'./TEMPLATE-MIN':'./TEMPLATE';
|
||||||
return gulp.src()
|
return gulp.src(src)
|
||||||
.pipe(replace('PluginName', flags.n))
|
.pipe(replace('PluginName', flags.n))
|
||||||
.pipe(rename(decamelize(flags.n, '-') + '.ts'))
|
.pipe(rename(decamelize(flags.n, '-') + '.ts'))
|
||||||
.pipe(gulp.dest('./src/plugins/'));
|
.pipe(gulp.dest('./src/plugins/'));
|
||||||
|
Loading…
Reference in New Issue
Block a user