chore: Update icons builder and destination

This commit is contained in:
Mattia Astorino 2017-04-12 09:20:32 +02:00
parent 6ddfaa95fb
commit 13ef387c49
4 changed files with 12 additions and 11 deletions

View file

@ -39,7 +39,7 @@ gulp.task('build:icons', cb => {
return; return;
} }
const path = './.material-theme-icons.tmp'; const path = './themes/.material-theme-icons.tmp';
fs.writeFileSync(path, contents, 'utf-8'); fs.writeFileSync(path, contents, 'utf-8');
gutil.log('Generated', gutil.colors.green(path)); gutil.log('Generated', gutil.colors.green(path));

View file

@ -22,12 +22,12 @@
"vscode": "^1.11.0" "vscode": "^1.11.0"
}, },
"scripts": { "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", "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-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", "minimize-json": "json-minify themes/.material-theme-icons.tmp > themes/Material-Theme-Icons.json && npm run remove-icons-tmp",
"remove-icons": "rimraf icons && rimraf material-theme-icons.json", "remove-icons": "rimraf icons && rimraf themes/Material-Theme-Icons.json",
"remove-icons-tmp": "rimraf .material-theme-icons.tmp", "remove-icons-tmp": "rimraf themes/.material-theme-icons.tmp",
"build-icons": "gulp build:icons", "build-icons": "gulp build:icons",
"build-themes": "gulp build:themes", "build-themes": "gulp build:themes",
"release": "npm run bump && npm run changelog", "release": "npm run bump && npm run changelog",
@ -65,7 +65,7 @@
{ {
"id": "material-theme-icons", "id": "material-theme-icons",
"label": "Material Theme Icons", "label": "Material Theme Icons",
"path": "./material-theme-icons.json" "path": "./themes/Material-Theme-Icons.json"
} }
] ]
}, },

View file

@ -1,19 +1,19 @@
"iconDefinitions": { "iconDefinitions": {
"_folder_dark": { "_folder_dark": {
"iconPath": "./icons/folder.svg" "iconPath": "../icons/folder.svg"
}, },
"_folder_light": { "_folder_light": {
"iconPath": "./icons/folder-light.svg" "iconPath": "../icons/folder-light.svg"
}, },
"_folder_open": { "_folder_open": {
"iconPath": "./icons/folder-outline.svg" "iconPath": "../icons/folder-outline.svg"
}, },
"_file_dark": { "_file_dark": {
"iconPath": "./icons/file.svg" "iconPath": "../icons/file.svg"
}, },
{{#icons}} {{#icons}}
"_file_{{name}}": { "_file_{{name}}": {
"iconPath": "./icons/{{name}}.svg" "iconPath": "../icons/{{name}}.svg"
}{{^last}},{{/last}} }{{^last}},{{/last}}
{{/icons}} {{/icons}}
}, },

File diff suppressed because one or more lines are too long