-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
31 lines (29 loc) · 1.34 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/// <binding BeforeBuild='default' />
const fs = require("fs");
const gulp = require("gulp");
const js_yaml = require("js-yaml");
const plist = require("plist");
gulp.task("default", done => {
fs.writeFileSync(
"T4Language/Snippets/assembly.tmSnippet",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Snippets/assembly.tmSnippet.yml"))));
fs.writeFileSync(
"T4Language/Snippets/import.tmSnippet",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Snippets/import.tmSnippet.yml"))));
fs.writeFileSync(
"T4Language/Snippets/include.tmSnippet",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Snippets/include.tmSnippet.yml"))));
fs.writeFileSync(
"T4Language/Snippets/parameter.tmSnippet",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Snippets/parameter.tmSnippet.yml"))));
fs.writeFileSync(
"T4Language/Syntaxes/csharp.tmLanguage",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Syntaxes/csharp.tmLanguage.yml"))));
fs.writeFileSync(
"T4Language/Syntaxes/t4.tmLanguage",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Syntaxes/t4.tmLanguage.yml"))));
fs.writeFileSync(
"T4Language/Syntaxes/t4.tmTheme",
plist.build(js_yaml.load(fs.readFileSync("T4Language/Syntaxes/t4.tmTheme.yml"))));
done();
});