Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Fix a bug where color artboards were not used in sketchxport.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed Sep 19, 2018
1 parent 9ccb229 commit f1e05aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = (args, flags) => {

const primitivesPage = getPageArrays(response).find(i => i.name === 'primitives');
if (primitivesPage && flags.useColorArtboards) {
console.log("[sketchxport-scripts] 💎 Using color artboards instead of document colors")
colorLayers = getColorsFromArtboard(primitivesPage.layers);
} else {
colorLayers = response.document.assets.colors;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"node": ">=8.0"
},
"bin": {
"sketchxport-cli": "./cli.js"
"sketchxport-cli": "./cli.js",
"sketchxport": "bash sketchxport.sh"
},
"scripts": {
"start": "node cli.js",
Expand Down
2 changes: 1 addition & 1 deletion sketchxport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function log() {
# Generate config file from sketchxport
function generate_config() {
log "💎 Generating config from sketchfile..."
node cli.js "$SKETCHFILE" --outputDir="$CONFIG_OUTPUT_DIR"
node cli.js "$SKETCHFILE" --outputDir="$CONFIG_OUTPUT_DIR" "$@"
}

# Generate assets from sketchxport
Expand Down

0 comments on commit f1e05aa

Please sign in to comment.