在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):adamayres/gulp-extend开源软件地址(OpenSource Url):https://github.com/adamayres/gulp-extend开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-extendUsageFirst, install npm install gulp-extend --save-dev Then, add it to your Extend the contents of json files var extend = require('gulp-extend');
gulp.src('./src/*.en.json')
.pipe(extend('text.en.json'))
.pipe(gulp.dest('./dist')); Extend the contents of a json file and then wrap them in a code block var extend = require('gulp-extend');
var wrap = require('gulp-wrap');
gulp.src('./src/*.json')
.pipe(extend('text.en.js') //use .js extension since we plan to wrap
.pipe(wrap('angular.module(\'text\', []).value(<%= contents %>);'))
.pipe(gulp.dest("./dist")); APIextend(fileName[, deep [, jsonSpace]])fileNameType: The output filename deepType: If the extend should be deep. jsonSpaceType: JSON.stringify's space attribute for pretty-printing the resulting JSON. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论