Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

npm - adobe xd extension for visual studio code don't compile on linux os

i have a fresh install of vscode on ubuntu 20.10 I have installed npm and nodejs by apt-get. i install adobe XD extension, il create a new package. I start editing,add a simple token and i stop editing Vscode say (install style-dictionary by nmp) i run a terminal and i write npm -i style-dictionary I restrat editing and stop for run compiling. I have nothing in dist. The file config.js is empty

I have test this installation in windows and i have a config.js not empty and a css directory wwith the good file.

Do you have idea.

In windows, the npm has installed in ../../styledictionary , i have tested but nothing.

thanks for your regards

Edit: i have fund a solution for waiting.

in the directory of package ../dist/styledictionnary yarn add style-dictionary --dev

cretae config.json in ../dist/styledictionnary

{
  "source": ["properties/**/*.json"],
  "platforms": {
    "scss": {
      "transformGroup": "scss",
      "buildPath": "build/scss/",
      "files": [{
        "destination": "_variables.scss",
        "format": "scss/variables"
      }]
    },
    "css": {
      "transformGroup": "css",
      "buildPath": "build/css/",
      "files": [{
        "destination": "_variables.css",
        "format": "css/variables"
      }]
    }
  }
}

and compil by yarn style-dictionary build

question from:https://stackoverflow.com/questions/65870548/adobe-xd-extension-for-visual-studio-code-dont-compile-on-linux-os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.6k users

...