atcss
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -18,3 +18,3 @@ #!/usr/bin/env node | ||
var fs = require('fs') | ||
var Acss = require('./') | ||
var Atcss = require('./') | ||
@@ -41,4 +41,4 @@ if (argv.V) console.log(pkg.version) | ||
var css = fs.readFileSync(input, 'utf-8') | ||
var acss = new Acss(css, options) | ||
fs.writeFile(output, acss.process(css), function (err) { | ||
var atcss = new Atcss(css, options) | ||
fs.writeFile(output, atcss.process(css), function (err) { | ||
if (err) throw err | ||
@@ -45,0 +45,0 @@ console.log('Processed') |
12
index.js
@@ -9,9 +9,9 @@ var postcss = require('postcss') | ||
var extend = require('postcss-extend') | ||
var constantBlock = require('postcss-acss-constant') | ||
var inherit = require('postcss-acss-inherit') | ||
var constantBlock = require('postcss-atcss-constant') | ||
var inherit = require('postcss-atcss-inherit') | ||
module.exports = Acss | ||
module.exports = Atcss | ||
function Acss (css, options) { | ||
if (!this instanceof Acss) return new Acss(css, options) | ||
function Atcss (css, options) { | ||
if (!this instanceof Atcss) return new Atcss(css, options) | ||
options = options || {} | ||
@@ -22,3 +22,3 @@ this.css = css | ||
Acss.prototype.process = function () { | ||
Atcss.prototype.process = function () { | ||
var output = postcss() | ||
@@ -25,0 +25,0 @@ .use(imprt()) |
{ | ||
"name": "atcss", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Annotations based CSS Processor", | ||
@@ -27,5 +27,5 @@ "main": "index.js", | ||
"minimist": "^1.1.0", | ||
"postcss": "^4.0.3", | ||
"postcss-acss-constant": "0.0.2", | ||
"postcss-acss-inherit": "0.0.1", | ||
"postcss": "^4.1.4", | ||
"postcss-atcss-constant": "0.0.2", | ||
"postcss-atcss-inherit": "0.0.1", | ||
"postcss-constant": "^0.2.0", | ||
@@ -35,3 +35,3 @@ "postcss-extend": "^0.3.0", | ||
"postcss-important": "^0.2.0", | ||
"postcss-include": "^0.2.0" | ||
"postcss-include": "0.2.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
var fs = require('fs') | ||
var test = require('tape') | ||
var Acss = require('..') | ||
var Atcss = require('..') | ||
@@ -16,5 +16,5 @@ function input (name) { | ||
options = options || {} | ||
var acss = new Acss(input(name)) | ||
var atcss = new Atcss(input(name)) | ||
return test(description, function (t) { | ||
t.equal(acss.process(input(name), options), output(name)) | ||
t.equal(atcss.process(input(name), options), output(name)) | ||
t.end() | ||
@@ -21,0 +21,0 @@ }) |
Sorry, the diff of this file is not supported yet
14861
+ Addedpostcss-atcss-constant@0.0.2
+ Addedpostcss-atcss-inherit@0.0.1
+ Addedpostcss-atcss-constant@0.0.2(transitive)
+ Addedpostcss-atcss-inherit@0.0.1(transitive)
+ Addedpostcss-include@0.2.0(transitive)
- Removedpostcss-acss-constant@0.0.2
- Removedpostcss-acss-inherit@0.0.1
- Removedpostcss-acss-constant@0.0.2(transitive)
- Removedpostcss-acss-inherit@0.0.1(transitive)
- Removedpostcss-include@0.2.1(transitive)
Updatedpostcss@^4.1.4
Updatedpostcss-include@0.2.0