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

grunt-hotbox-deploy

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-hotbox-deploy - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

20

lib/deployBranch.js

@@ -64,3 +64,3 @@ var gitInfo = require('./gitInfo');

grunt.log.subhead('Make replacements in static');
grunt.log.subhead('Make replacements in js');

@@ -103,2 +103,20 @@ var filesToReplace;

grunt.log.subhead('Make replacements in css');
filesToReplace = grunt.file.expandMapping(['**/*.css'], '/', {
expand: true,
cwd: path.join(options.dest, STATIC_PATH)
});
filesToReplace.forEach(function(file) {
file = file.src[0];
var content = grunt.file.read(file);
content = content.replace(options.stylesRegexp, '$1' + HTTP_PREFIX + VERSIONED_STATIC_PATH + '$2');
grunt.file.write(file, content);
grunt.log.writeln('Replaced paths in ' + file);
});
grunt.config.set('aws_s3.hotbox_deploy_static', {

@@ -105,0 +123,0 @@ options: {

2

package.json
{
"name": "grunt-hotbox-deploy",
"description": "Grunt task for deploying front-end bundles to Hotbox",
"version": "1.0.0",
"version": "1.1.0",
"author": "e.dydykin@corp.mail.ru",

@@ -6,0 +6,0 @@ "bugs": {

@@ -23,2 +23,3 @@ /*

templatesRegexp: /((?:src|href|content|srcset)=['"]|url\(['"]?|\s\dx,\s)\/static(\/.+?['"]?)/g,
stylesRegexp: /((?:url)\(['"]?)\/static(\/\S+?['"]?\))/g,
endoint: 'hb.bizmrg.com',

@@ -25,0 +26,0 @@ bucket: '',

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