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

adaptivejs

Package Overview
Dependencies
Maintainers
5
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adaptivejs - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

2

package.json
{
"name": "adaptivejs",
"version": "0.1.19",
"version": "0.1.20",
"description": "A framework for creating adaptive websites.",

@@ -5,0 +5,0 @@ "author": {

@@ -43,2 +43,61 @@ var path = require("path");

grunt.registerTask('adaptive:build-zepto', function() {
var path = require('path');
var done = this.async();
var envCopy = {};
var directory = path.join(process.cwd(), 'bower_components/zeptojs');
// Copy env variables and add proper zepto modules to build
for (var varName in process.env) {
envCopy[varName] = process.env[varName];
}
var modules = grunt.option('modules') || 'zepto event ajax form fx';
envCopy.MODULES = modules;
grunt.log.write('Building Zepto with the following modules: ' + modules);
var installOptions = {
cmd: 'npm',
args: ['install'],
opts: {
cwd: directory,
}
};
var buildOptions = {
cmd: 'npm',
args: ['run-script', 'dist'],
opts: {
cwd: directory,
env: envCopy
}
};
// First, do an `npm install` in the Zepto directory
grunt.util.spawn(installOptions, function(error, result, code) {
if (error) {
grunt.log.error(error);
done();
}
grunt.log.write(result);
// Then, build zepto!
grunt.util.spawn(buildOptions, function(error, result, code) {
if (error) {
grunt.log.error(error);
done();
}
grunt.log.write(result);
['.js', '.min.js'].forEach(function(extension) {
var src = path.join(directory, 'dist/zepto' + extension);
var dest = path.join(process.cwd(), 'vendor', 'zepto' + extension);
grunt.file.copy(src, dest);
});
done();
});
});
});
// restore cwd

@@ -45,0 +104,0 @@ process.chdir(parentcwd);

Sorry, the diff of this file is not supported yet

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