在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):iamricard/gulp-cordova开源软件地址(OpenSource Url):https://github.com/iamricard/gulp-cordova开源编程语言(OpenSource Language):JavaScript 99.1%开源软件介绍(OpenSource Introduction):gulp-cordovaThis aims to provide a very basic interface to be used in a gulp build system, bare in mind this doesn't provide much really, it's just to abstract the spawn process and the such.
As with many node projects, send a PR if it is accepted you're added to the repo with full-access rights. If there are any bugs open an issue and we can figure out a solution! Same thing for feature requests or any other kind of problems you might have. Why this exists: I'm building a project with cordova and I find it cumbersome
to have to go to the CLI every time and run Why this might be useful to you: Initialise a project without a script,
instead use what you already use for the rest of your javascript projects. You
could also use it in watch tasks where you want to re-run the APIThere's two ways to use this plugin, via a JSON configuration file or just
passing parameters to the cordova()Usage example: gulp.task('cordova:init', function() {
gulp.src('./package.json')
.pipe(cordova())
}) Notice I'm using file: config.json/package.json/xxx.json
{
"cordova": [
[
"platform",
"add",
"ios",
"android",
"browser"
],
[
"plugin",
"add",
"org.apache.cordova.device",
"org.apache.cordova.geolocation",
"org.apache.cordova.console"
]
]
} cordova(command, options)command (optional)Type: Values: In theory, any cordova cli command. I haven't tested all of them. Eg: // ...
.pipe(cordova(['plugins', 'add', 'org.apache.cordova.battery-status', 'org.apache.cordova.device-motion']))
// ... options (optional)verboseType: Default: cwd EXPERIMENTALType: Default: You can use this to run the specified Run command is not supported for the time being |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论