chore: Update icons builder and destination
This commit is contained in:
parent
6ddfaa95fb
commit
13ef387c49
4 changed files with 12 additions and 11 deletions
|
@ -39,7 +39,7 @@ gulp.task('build:icons', cb => {
|
|||
return;
|
||||
}
|
||||
|
||||
const path = './.material-theme-icons.tmp';
|
||||
const path = './themes/.material-theme-icons.tmp';
|
||||
fs.writeFileSync(path, contents, 'utf-8');
|
||||
gutil.log('Generated', gutil.colors.green(path));
|
||||
|
||||
|
|
10
package.json
10
package.json
|
@ -22,12 +22,12 @@
|
|||
"vscode": "^1.11.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run ricons && build-themes",
|
||||
"build": "npm run icons && build-themes",
|
||||
"icons": "npm run remove-icons && npm run minimize-icons && npm run build-icons && npm run minimize-json",
|
||||
"minimize-icons": "svgo -f src/icons/svgs -o icons",
|
||||
"minimize-json": "json-minify .material-theme-icons.tmp > material-theme-icons.json && npm run remove-icons-tmp",
|
||||
"remove-icons": "rimraf icons && rimraf material-theme-icons.json",
|
||||
"remove-icons-tmp": "rimraf .material-theme-icons.tmp",
|
||||
"minimize-json": "json-minify themes/.material-theme-icons.tmp > themes/Material-Theme-Icons.json && npm run remove-icons-tmp",
|
||||
"remove-icons": "rimraf icons && rimraf themes/Material-Theme-Icons.json",
|
||||
"remove-icons-tmp": "rimraf themes/.material-theme-icons.tmp",
|
||||
"build-icons": "gulp build:icons",
|
||||
"build-themes": "gulp build:themes",
|
||||
"release": "npm run bump && npm run changelog",
|
||||
|
@ -65,7 +65,7 @@
|
|||
{
|
||||
"id": "material-theme-icons",
|
||||
"label": "Material Theme Icons",
|
||||
"path": "./material-theme-icons.json"
|
||||
"path": "./themes/Material-Theme-Icons.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
"iconDefinitions": {
|
||||
"_folder_dark": {
|
||||
"iconPath": "./icons/folder.svg"
|
||||
"iconPath": "../icons/folder.svg"
|
||||
},
|
||||
"_folder_light": {
|
||||
"iconPath": "./icons/folder-light.svg"
|
||||
"iconPath": "../icons/folder-light.svg"
|
||||
},
|
||||
"_folder_open": {
|
||||
"iconPath": "./icons/folder-outline.svg"
|
||||
"iconPath": "../icons/folder-outline.svg"
|
||||
},
|
||||
"_file_dark": {
|
||||
"iconPath": "./icons/file.svg"
|
||||
"iconPath": "../icons/file.svg"
|
||||
},
|
||||
{{#icons}}
|
||||
"_file_{{name}}": {
|
||||
"iconPath": "./icons/{{name}}.svg"
|
||||
"iconPath": "../icons/{{name}}.svg"
|
||||
}{{^last}},{{/last}}
|
||||
{{/icons}}
|
||||
},
|
||||
|
|
1
themes/Material-Theme-Icons.json
Normal file
1
themes/Material-Theme-Icons.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue