How to use the @ff0000-ad-tech/wp-deploy-manager.payload function in @ff0000-ad-tech/wp-deploy-manager

To help you get started, we’ve selected a few @ff0000-ad-tech/wp-deploy-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ff0000-ad-tech / tmpl-standard-base / webpack.config.js View on Github external
get: function() {
								return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
									return obj.source
								})
							},
							importPath: `./${DM.ad.get().paths.ad.images}`,
							requestPath: `${DM.ad.get().paths.ad.images}`
						}
					}
				]
			},
			config.payload
		)
	)
	log('\nPayload:')
	log(DM.payload.get())

	// patterns that can be used w/ rollup-plugin-utils' createFilter util
	// (see: https://github.com/rollup/rollup-pluginutils)
	// accepts either a RegExp, glob/minimatch pattern, or an array of either of the types mentioned
	// also allows for optional query strings
	const imageIncludes = /\.(png|jpg|gif|svg)(\?.*)?$/
	const fontIncludes = /\.(ttf|woff)(\?.*)?$/

	/** -- LOADERS -----------------------------------------------------------------------------------------------
	 *
	 *
	 *
	 */
	const loaders = [
		// loads images and fonts
		{
github ff0000-ad-tech / tmpl-velvet-base / webpack.config.js View on Github external
assets: {
						get: function () {
							return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
								return obj.source
							})
						},
						importPath: `./${DM.ad.get().paths.ad.images}`,
						requestPath: `${DM.ad.get().paths.ad.images}`
					}
				}]
			},
			config.payload
		)
	)
	log('\nPayload:')
	log(DM.payload.get())

	// patterns that can be used w/ rollup-plugin-utils' createFilter util
	// (see: https://github.com/rollup/rollup-pluginutils)
	// accepts either a RegExp, glob/minimatch pattern, or an array of either of the types mentioned
	// also allows for optional query strings
	const imageIncludes = /\.(png|jpg|gif|svg)(\?.*)?$/
	const fontIncludes = /\.(ttf|woff)(\?.*)?$/

	/** -- LOADERS -----------------------------------------------------------------------------------------------
	 *
	 *
	 *
	 */
	const loaders = [
		// loads images and fonts
		{
github ff0000-ad-tech / tmpl-standard-base / webpack.config.js View on Github external
)
	// give deploy ability to override ad environment
	DM.ad.setAdEnvironment(DM.deploy.get().profile.adEnvironment, DM.deploy.get().output.debug)

	/*** LOAD EXTERNAL SETTINGS **/
	DM.ad.refresh()
	log('\nAd:')
	log(DM.ad.get())

	/** -- PAYLOAD SETTINGS -----------------------------------------------------------------------------------------------
	 *
	 *	these settings are unique to packaging-style
	 *
	 *
	 */
	DM.payload.prepare(
		_.merge(
			{
				// payload settings
				watchPaths: [path.resolve(`${__dirname}/${DM.ad.get().settings.source.path}`)],
				entries: [
					{
						name: 'inline',
						type: 'inline',
						assets: {
							get: function() {
								return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
									return obj.source
								})
							},
							importPath: `./${DM.ad.get().paths.ad.images}`,
							requestPath: `${DM.ad.get().paths.ad.images}`
github ff0000-ad-tech / tmpl-velvet-base / webpack.config.js View on Github external
)
	// give deploy ability to override ad environment
	DM.ad.setAdEnvironment(DM.deploy.get().profile.adEnvironment, DM.deploy.get().output.debug)

	/*** LOAD EXTERNAL SETTINGS **/
	DM.ad.refresh()
	log('\nAd:')
	log(DM.ad.get())

	/** -- PAYLOAD SETTINGS -----------------------------------------------------------------------------------------------
	 *
	 *	these settings are unique to packaging-style
	 *
	 *
	 */
	DM.payload.prepare(
		_.merge({
				// payload settings
				watchPaths: [path.resolve(`${__dirname}/${DM.ad.get().settings.source.path}`)],
				entries: [{
					name: 'inline',
					type: 'inline',
					assets: {
						get: function () {
							return DM.ad.get().settings.ref.assets.preloader.images.map(obj => {
								return obj.source
							})
						},
						importPath: `./${DM.ad.get().paths.ad.images}`,
						requestPath: `${DM.ad.get().paths.ad.images}`
					}
				}]