Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-mfiles-appdef

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-mfiles-appdef

Gulp plugin for transforming appdef.json to M-Files appdef.xml

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gulp-mfiles-appdef

Gulp plugin for transforming appdef.json to M-Files appdef.xml.

Installation

npm install gulp-mfiles-appdef

Example

appdef.json:

{
    "guid": "b1915115-931c-4279-86ea-6edb9e5a23b8",
    "name": "M-Files Sample Application",
    "description": "Sample application with a JSON appdef.",
    "environments": {
        "shellui": {
            "files": [ "lib/shellui/**/*.js" ]
        }
    },
	"dashboards": [
		{
			"content": "dashboards/**/*.html",
			"trusted-content": [
				"http://www.m-files.com",
				"http://www.m-files.fi"
			]
		}
	]
}

gulpfile.js:

var gulp = require( "gulp" );
var rename = require( "gulp-rename" );
var appdef = require( "gulp-mfiles-appdef" );

gulp.task( "build", function() {

	return gulp.src( "appdef.json" )
        .pipe( appdef() )
        .pipe( rename( { extname: ".xml" } ) )
        .pipe( gulp.dest( "./build" ) ) );

} );

Features

  • Simple JSON format over XML
  • Glob support for file paths

Also I want overriding values through the gulpfile at some point. For example forcing certain version for the builds by defining it in the gulpfile instead of having to change the appdef file each time.

Keywords

FAQs

Package last updated on 03 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc