Comparing version 0.0.2 to 0.0.3
@@ -98,3 +98,3 @@ /* | ||
convert: function(type, variable){ | ||
var templateFile = './templates/' + type.toLowerCase() + '.hbs' | ||
var templateFile = path.join(path.dirname(fs.realpathSync(__filename)), '../templates/' + type.toLowerCase() + '.hbs') | ||
if(fs.existsSync(templateFile)){ | ||
@@ -101,0 +101,0 @@ var template = handlebars.compile(fs.readFileSync(templateFile).toString()); |
{ | ||
"name": "theo", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Theme tokenizer working with JSON input generating variables for Sass, Stylus, Less and Aura", | ||
@@ -30,3 +30,2 @@ "keywords": [ | ||
"devDependencies": { | ||
"coffee-script": "~1.7.1", | ||
"mocha": "~1.17.1", | ||
@@ -33,0 +32,0 @@ "should": "*" |
@@ -16,2 +16,27 @@ theo | ||
The input folder `./variables` in this examples should contain at least one JSON file with the following format: | ||
{ | ||
"theme": { | ||
"name": "Name of the theme", | ||
"categories": [ | ||
{ | ||
"name": "Name of the category like colors", | ||
"properties": [ | ||
{ | ||
"name":"COLOR_PRIMARY", | ||
"value":"#2a94d6" | ||
}, | ||
{ | ||
"name":"COLOR_LINK", | ||
"value":"#006eb3" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
You could also start by cloning one if the [mock files](test/mock/s1base.json). | ||
## Test | ||
@@ -18,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
19065
2
49