Permalink
Browse files

remove rework(1) executable, use https://github.com/visionmedia/styl

  • Loading branch information...
1 parent ddfa710 commit e06380483b1b7032064a58ab6050d5673ae59457 @tj tj committed May 11, 2013
Showing with 0 additions and 98 deletions.
  1. +0 −22 Readme.md
  2. +0 −73 bin/rework
  3. +0 −3 package.json
View
@@ -28,28 +28,6 @@ or in the browser with the stand-alone build ./rework.js referencing the `rework
- [styl](https://github.com/visionmedia/styl) - CSS preprocessor built on Rework
- [autoprefixer](https://github.com/ai/autoprefixer) - prefixer based on the Can I Use database
-## rework(1)
-
-```
-
-Usage: rework [options]
-
-Options:
-
- -h, --help output usage information
- -V, --version output the version number
- -v, --vendors <list> specify list of vendors
- -e, --ease add additional easing functions
- --vars add css variable support
-
-```
-
-for example:
-
-```
-$ rework -v webkit,moz < my.css > my.reworked.css
-```
-
## API
### rework(css)
View
@@ -1,73 +0,0 @@
-#!/usr/bin/env node
-
-/**
- * Module dependencies.
- */
-
-var program = require('commander')
- , rework = require('..')
- , props = rework.properties
- , stdin = process.stdin;
-
-// options
-
-program
- .version(require('../package.json').version)
- .option('-v, --vendors <list>', 'specify list of vendors', list)
- .option('-e, --ease', 'add additional easing functions')
- .option('--vars', 'add css variable support')
- .parse(process.argv);
-
-// --vendors
-
-var vendors = prefix(program.vendors || ['o', 'ms', 'moz', 'webkit']);
-
-// stdin boilerplate...
-
-var str = '';
-stdin.setEncoding('utf8');
-stdin.on('data', function(chunk){ str += chunk });
-stdin.on('end', done);
-stdin.resume();
-
-// parse list
-
-function list(str) {
- return str.split(/ *, */);
-}
-
-// prefix names
-
-function prefix(names) {
- return names.map(function(name){
- return '-' + name + '-';
- });
-}
-
-// rework
-
-function done() {
- var style = rework(str);
- style.vendors(vendors);
- style.use(rework.keyframes());
-
- if (program.ease) {
- style.use(rework.ease());
- }
-
- style.use(rework.prefixValue('linear-gradient'))
- style.use(rework.prefixValue('radial-gradient'))
- style.use(rework.prefixValue('transform'))
- style.use(rework.prefix(props))
- style.use(rework.at2x())
-
- if (program.vars) {
- style.use(rework.vars());
- }
-
- if (~vendors.indexOf('-ms-')) {
- style.use(rework.opacity());
- }
-
- process.stdout.write(style.toString());
-}
View
@@ -4,9 +4,6 @@
"description": "CSS manipulations built on CSSOM",
"keywords": ["css", "manipulation", "preprocess", "transform"],
"author": "TJ Holowaychuk <tj@vision-media.ca>",
- "bin": {
- "rework": "./bin/rework"
- },
"dependencies": {
"css": "1.1.0",
"commander": "1.0.4",

0 comments on commit e063804

Please sign in to comment.