Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "boost", | ||
"version": "0.0.3", | ||
"description": "inline css into your html", | ||
"main": "index.js", | ||
"version": "0.0.4", | ||
"description": "Robust pipeline for creating build tools that separate logic into routines and tasks.", | ||
"keywords": [], | ||
"main": "./lib/index.js", | ||
"files": [ | ||
"*.md", | ||
"lib" | ||
], | ||
"scripts": { | ||
"test": "mocha" | ||
"clean": "rimraf ./lib", | ||
"build": "babel ./src -d ./lib", | ||
"lint": "eslint ./src ./tests", | ||
"flow": "flow check", | ||
"mocha": "mocha --opts ./mocha.opts './tests/**/*.test.js'", | ||
"pretest": "yarn run lint", | ||
"test": "yarn run mocha", | ||
"posttest": "yarn run flow", | ||
"preversion": "yarn test && yarn run clean && yarn run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/superjoe30/boost.git" | ||
"url": "git+https://github.com/milesj/boost.git" | ||
}, | ||
"keywords": [ | ||
"juice", | ||
"inline", | ||
"css", | ||
"email", | ||
"style" | ||
], | ||
"author": "Andrew Kelley", | ||
"license": "BSD", | ||
"devDependencies": { | ||
"mocha": "~1.8.1" | ||
"author": { | ||
"name": "Miles Johnson", | ||
"url": "http://milesj.me" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/milesj/boost/issues" | ||
}, | ||
"homepage": "https://github.com/milesj/boost#readme", | ||
"dependencies": { | ||
"jsdom": "~0.4.0", | ||
"juice": "0.0.9", | ||
"superagent": "~0.12.1", | ||
"batch": "~0.2.1" | ||
"babel-runtime": "^6.18.0", | ||
"chalk": "^1.1.3", | ||
"lodash": "^4.17.2" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-eslint": "^7.1.0", | ||
"babel-plugin-transform-flow-comments": "^6.17.0", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-preset-latest": "^6.16.0", | ||
"babel-preset-stage-2": "^6.18.0", | ||
"babel-register": "^6.18.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.12.1", | ||
"eslint-config-airbnb-base": "^11.0.0", | ||
"eslint-plugin-flowtype": "^2.25.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"flow-bin": "^0.37.0", | ||
"mocha": "^3.1.2", | ||
"rimraf": "^2.5.4" | ||
} | ||
} |
@@ -1,55 +0,20 @@ | ||
# boost ![](http://i.imgur.com/fSEY9.gif) | ||
# Boost v0.0.0 | ||
[![Build Status](https://travis-ci.org/milesj/boost.svg?branch=master)](https://travis-ci.org/milesj/boost) | ||
Given HTML, boost will inline your CSS properties into the `style` attribute. | ||
Robust pipeline for creating build tools that separate logic into routines and tasks. | ||
boost builds on [juice](https://github.com/LearnBoost/juice), making your | ||
email templating task Even More Convenient. | ||
# Example | ||
## How to use | ||
If Babel + Babili was created using this library, the implementation would look something like the following. | ||
```js | ||
var boost = require('boost'); | ||
boost("/path/to/file.html", function(err, html) { | ||
console.log(html); | ||
}); | ||
Pipeline.fromConfig('./.babelrc') | ||
.phase(new LocateRoutine('locate')) // Glob initial files | ||
.phase(new ResolveRoutine('resolve')) // Resolve dependency lookups | ||
.phase(new TransformRoutine('transform')) // Apply transformations | ||
.phase(new MinifyRoutine('minify')) // Apply minification | ||
.phase(new BundleRoutine('bundle', { // Bundle and or output the files | ||
out: './lib', | ||
})) | ||
.execute('./src'); | ||
``` | ||
`/path/to/file.html`: | ||
```html | ||
<html> | ||
<head> | ||
<style> | ||
p { color: red; } | ||
</style> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<p>Test</p> | ||
</body> | ||
</html> | ||
``` | ||
`style.css` | ||
```css | ||
p { | ||
text-decoration: underline; | ||
} | ||
``` | ||
Output: | ||
```html | ||
<p style="color: red; text-decoration: underline;">Test</p> | ||
``` | ||
## What is this useful for ? | ||
- HTML emails. See [juice](https://github.com/LearnBoost/juice) | ||
- Embedding HTML in 3rd-party websites. | ||
## Why not just use juice directly ? | ||
Because then you cannot take advantage of template inheritance with your css. | ||
## Projects using boost | ||
- [swig-email-templates](https://github.com/superjoe30/swig-email-templates) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
15277
3
0
304
1
1
1
15
9
21
2
+ Addedbabel-runtime@^6.18.0
+ Addedchalk@^1.1.3
+ Addedlodash@^4.17.2
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
- Removedbatch@~0.2.1
- Removedjsdom@~0.4.0
- Removedjuice@0.0.9
- Removedsuperagent@~0.12.1
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbatch@0.2.1(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbindings@1.5.0(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcontextify@0.1.15(transitive)
- Removedcookiejar@1.3.0(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcssom@0.2.5(transitive)
- Removedcssstyle@4.1.0(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedemitter-component@0.0.6(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedformidable@1.0.9(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhtmlparser@1.7.7(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjsdom@0.4.2(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedjuice@0.0.9(transitive)
- Removedmethods@0.0.1(transitive)
- Removedmime@1.2.5(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedmootools-slick-parser@1.3.2(transitive)
- Removednan@2.22.0(transitive)
- Removednwmatcher@1.4.4(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@0.5.26.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrrweb-cssom@0.7.1(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedsuperagent@0.12.4(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)