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

assetflow

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assetflow - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

16

package.json
{
"name": "assetflow",
"description": "Asset deployment for node",
"version": "0.1.4",
"version": "0.1.5",
"homepage": "https://github.com/verbling/assetflow",

@@ -45,11 +45,11 @@ "author": "Verbling",

"async": "~0.2.8",
"knox": "~0.8.0",
"grunt-s3": "~0.2.0-alpha.1"
"knox": "~0.8.4",
"grunt-s3": "~0.2.0-alpha.2"
},
"devDependencies": {
"grunt-mocha-test": "~0.2.0",
"chai": "~1.5.0",
"sinon": "~1.5.2",
"grunt-contrib-watch": "~0.2.0",
"grunt-contrib-clean": "~0.4.0",
"grunt-mocha-test": "~0.6.1",
"chai": "~1.7.2",
"sinon": "~1.7.3",
"grunt-contrib-watch": "~0.5.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-release": "~0.3.3"

@@ -56,0 +56,0 @@ },

@@ -270,2 +270,71 @@ # assetflow

```
Files that are produced with the `assetsReplace` task should be in your codebase and tracked.
For example, here is a typical setup for less files:
#### Directory Structure
```
assets-replace.less
assets.less <--- this is auto-generated by Grunt
main.less
restStyles.less
```
#### main.less
```less
@import "assets"
@import "restStyles"
// ....
```
#### assets-replace.less
```less
//
// ONLY ADD IMAGES TO assets-replace.less
// IMAGES ADDED TO assets.less WILL BE OVERWRITTEN
//
@asset_img_logo: "__ASSET(/assets/logo.png)";
@asset_img_cover: "__ASSET(/assets/cover.jpg)";
```
#### assetsReplace task generates assets.less:
This file is generated by the `assetsReplace` Grunt task.
```less
//
// ONLY ADD IMAGES TO assets-replace.less
// IMAGES ADDED TO assets.less WILL BE OVERWRITTEN
//
@asset_img_logo: "/assets/logo.png";
@asset_img_cover: "/assets/cover.jpg";
```
#### restStyles.less
```less
#header{
.logo {
position: relative;
margin: 0;
background: url(@asset_img_logo) bottom center no-repeat;
}
.cover {
background: url(@asset_img_cover) no-repeat #577d9c;
cursor: default;
padding-left: 35px;
background-position: 9px 9px;
}
}
```
<sup>[↑ Back to TOC](#table-of-contents)</sup>

@@ -357,3 +426,3 @@

The `assetsS3` task will read the `manifest.json` file and upload all the assets to **S3**. Although it's optional, it is highly advised to use the `chechS3Head` option which enables md5 hash checking between S3 and your local files.
The `assetsS3` task will read the `manifest.json` file and upload all the assets to **S3**. Although it's optional, it is highly advised to use the `checkS3Head` option which enables md5 hash checking between S3 and your local files.

@@ -505,2 +574,5 @@ > The `assetsS3` task is based on [grunt-S3][grunt-S3] by [@pifantastic][pifantastic]. [All options from that task](https://github.com/pifantastic/grunt-s3#options) are available in this one too.

## Release History
- **v0.1.5**, *21 Jul 2013*
- Updated dependencies versions (Knox specifically had issues that are now fixed)
- **v0.1.4**, *08 May 2013*

@@ -507,0 +579,0 @@ - Updated Knox so Assetflow will work for node 0.10.x

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