From 7a2477ed491458d64753af4c8dab675d99001ede Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 20:36:19 +0000 Subject: [PATCH 01/19] (doc) Corrected Gitter link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2cea5f7..a8358df 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ You can find the documentation that is available for this project [here](https:/ If you would like to see any features added for this VS Code Extension, feel free to raise an [issue](https://github.com/gep13/CI-CD-assets-vscode/issues), and if possible, a follow up pull request. -You can also join in the Gitter Chat [![Join the chat at https://gitter.im/gep13/ci-cd-assets](https://badges.gitter.im/gep13/ci-cd-assets.svg)](https://gitter.im/gep13/ci-cd-assets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +You can also join in the Gitter Chat [![Join the chat at https://gitter.im/gep13/ci-cd-assets/community](https://badges.gitter.im/gep13/ci-cd-assets/community.svg)](https://gitter.im/gep13/ci-cd-assets/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Releases From e1beaabcd5c110bf54bfa68df2b16b9ce281a761 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 20:37:26 +0000 Subject: [PATCH 02/19] (doc) Corrected Gitter link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8358df..c87a648 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ You can find the documentation that is available for this project [here](https:/ If you would like to see any features added for this VS Code Extension, feel free to raise an [issue](https://github.com/gep13/CI-CD-assets-vscode/issues), and if possible, a follow up pull request. -You can also join in the Gitter Chat [![Join the chat at https://gitter.im/gep13/ci-cd-assets/community](https://badges.gitter.im/gep13/ci-cd-assets/community.svg)](https://gitter.im/gep13/ci-cd-assets/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +You can also join in the Gitter Chat [![Join the chat at https://gitter.im/ci-cd-assets/community](https://badges.gitter.im/ci-cd-assets/community.svg)](https://gitter.im/ci-cd-assets/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Releases From bb4ef17b877545a3702f9030ae423cecda53bcb0 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 22:21:39 +0000 Subject: [PATCH 03/19] (GH-1) Added ability to download editorconfig file --- package-lock.json | 122 +++++++++++----------------------------------- package.json | 31 ++++++++++-- src/extension.ts | 79 ++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+), 99 deletions(-) create mode 100644 src/extension.ts diff --git a/package-lock.json b/package-lock.json index 611869d..1c6d710 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,7 +66,6 @@ "version": "5.5.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", - "dev": true, "requires": { "co": "^4.6.0", "fast-deep-equal": "^1.0.0", @@ -186,7 +185,6 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, "requires": { "safer-buffer": "~2.1.0" } @@ -194,26 +192,22 @@ "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, "babel-code-frame": { "version": "6.26.0", @@ -263,7 +257,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, "optional": true, "requires": { "tweetnacl": "^0.14.3" @@ -326,8 +319,7 @@ "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" }, "chalk": { "version": "2.4.1", @@ -378,8 +370,7 @@ "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" }, "color-convert": { "version": "1.9.3", @@ -400,7 +391,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", - "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -429,14 +419,12 @@ "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -462,8 +450,7 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" }, "diff": { "version": "3.5.0", @@ -493,7 +480,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, "optional": true, "requires": { "jsbn": "~0.1.0", @@ -577,8 +563,7 @@ "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "extend-shallow": { "version": "1.1.4", @@ -609,20 +594,17 @@ "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" }, "fast-deep-equal": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", - "dev": true + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" }, "fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" }, "fd-slicer": { "version": "1.1.0", @@ -676,14 +658,12 @@ "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" }, "form-data": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", - "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "1.0.6", @@ -718,7 +698,6 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -1110,14 +1089,12 @@ "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" }, "har-validator": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", - "dev": true, "requires": { "ajv": "^5.3.0", "har-schema": "^2.0.0" @@ -1156,7 +1133,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, "requires": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -1263,8 +1239,7 @@ "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, "is-utf8": { "version": "0.2.1", @@ -1296,8 +1271,7 @@ "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, "jest-diff": { "version": "21.2.1", @@ -1365,20 +1339,17 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, "optional": true }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" }, "json-schema-traverse": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", - "dev": true + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" }, "json-stable-stringify": { "version": "1.0.1", @@ -1392,8 +1363,7 @@ "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" }, "jsonify": { "version": "0.0.0", @@ -1405,7 +1375,6 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -1488,14 +1457,12 @@ "mime-db": { "version": "1.36.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", - "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==", - "dev": true + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" }, "mime-types": { "version": "2.1.20", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", - "dev": true, "requires": { "mime-db": "~1.36.0" } @@ -1593,8 +1560,7 @@ "oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" }, "object-assign": { "version": "4.1.1", @@ -1679,8 +1645,7 @@ "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, "plugin-error": { "version": "0.1.2", @@ -1738,20 +1703,17 @@ "psl": { "version": "1.1.29", "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", - "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==", - "dev": true + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" }, "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" }, "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "querystringify": { "version": "2.0.0", @@ -1845,7 +1807,6 @@ "version": "2.88.0", "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, "requires": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -1896,19 +1857,12 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "semver": { "version": "5.5.1", @@ -1957,7 +1911,6 @@ "version": "1.14.2", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", - "dev": true, "requires": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -2121,7 +2074,6 @@ "version": "2.4.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, "requires": { "psl": "^1.1.24", "punycode": "^1.4.1" @@ -2166,7 +2118,6 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, "requires": { "safe-buffer": "^5.0.1" } @@ -2175,7 +2126,6 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, "optional": true }, "typemoq": { @@ -2224,8 +2174,7 @@ "uuid": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" }, "vali-date": { "version": "1.0.0", @@ -2237,7 +2186,6 @@ "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, "requires": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", @@ -2401,20 +2349,6 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "xml2js": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", - "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", - "requires": { - "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" - } - }, - "xmlbuilder": { - "version": "9.0.7", - "resolved": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", - "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=" - }, "xtend": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", diff --git a/package.json b/package.json index 7bc8ffd..45a6465 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "theme": "light" }, "activationEvents": [ - "onCommand:chocolatey.new", + "onCommand:cicd.editorconfig" ], "engines": { "vscode": "^1.24.0" @@ -34,19 +34,37 @@ "contributes": { "configuration": [ { + "type": "object", + "title": "CI/CD Assets Configuration", + "properties": { + "cicd.urls": { + "type": "object", + "default": { + "editorconfig": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig" + }, + "description": "The URL's to download files from.", + "properties": { + "editorconfig": { + "type": "string", + "description": "The URL to download the EditorConfig file from.", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig" + } + } + } + } } ], "commands": [ { - "command": "chocolatey.new", - "title": "Chocolatey: Create new Chocolatey package" + "command": "cicd.editorconfig", + "title": "CICD: Download EditorConfig File" } ] }, "scripts": { "vscode:prepublish": "npm run compile", - "compile": "%APPDATA%/npm/tsc -p ./", - "watch": "%APPDATA%/npm/tsc -watch -p ./", + "compile": "tsc -p ./", + "watch": "tsc -watch -p ./", "postinstall": "node ./node_modules/vscode/bin/install", "test": "npm run compile && node ./node_modules/vscode/bin/test" }, @@ -64,5 +82,8 @@ "typemoq": "^2.1.0", "typescript": "^2.6.1", "vscode": "^1.1.6" + }, + "dependencies": { + "request": "^2.87.0" } } diff --git a/src/extension.ts b/src/extension.ts new file mode 100644 index 0000000..b2b7a1d --- /dev/null +++ b/src/extension.ts @@ -0,0 +1,79 @@ +import {commands, window, workspace} from "vscode"; +import * as request from "request"; +import * as path from "path" +import * as fs from "fs"; + +export function activate(): void { + // register Commands + commands.registerCommand("cicd.editorconfig", async () => downloadEditorConfigFile()); +} + +async function checkForExisting(path: string): Promise { + if (fs.existsSync(path)) { + var message = `Overwrite the existing \'${path}\' file in this folder?`; + var option = await window.showWarningMessage(message, 'Overwrite'); + return option === 'Overwrite'; + } + + return true; +} + +function checkForWorkspace(): string { + if (workspace.rootPath !== undefined) { + return workspace.rootPath; + } else { + window.showErrorMessage("No workspace is currently open."); + return ""; + } +} + +function downloadFile(uriToDownload: string, stream: NodeJS.WritableStream): Thenable { + return new Promise((resolve, reject) => { + request + .get(uriToDownload, { timeout: 4000 }) + .on('response', function(response: any) { + if (response.statusCode === 200) { + resolve(true); + } else { + reject( + `Failed to download file: ${ + response.statusMessage + }` + ); + } + }) + .on('error', function(e: any) { + reject(`Failed to download file: ${e}`); + }) + .pipe(stream); + }); +} + +async function downloadEditorConfigFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var editorConfigFilePath = path.join(workspaceRootPath, '.editorconfig'); + var ready = await checkForExisting(editorConfigFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(editorConfigFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.editorconfig; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage("EditorConfig File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading EditorConfig File."); + } + } +} From e50644910e327ab525702c935f36f697117f5dd7 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 22:32:41 +0000 Subject: [PATCH 04/19] (doc) Added image --- images/cicd.png | Bin 0 -> 17318 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 images/cicd.png diff --git a/images/cicd.png b/images/cicd.png new file mode 100644 index 0000000000000000000000000000000000000000..9f826ae70efde94a3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vhdaCsMcqouP}+*nY5YAhkozD4bPo^=c=mW8D4R5EJIn0 zZA~Wf+W@ab6DOYiMuiKUmd~9eKbU&?dX&p}s6CF1OqQCUL{SDN%F+VefkhMoJ)Bo)Fni zbJYe(%4!<2*qL2o#pImV=Gg9S2Oyg~oFkUF-jUs|Ai!`?4c1ukvjxqB=z8V4KDZGV7nxV!VS? z>(b>KjL}~uQlD?Kr6id%U&2K2P(PwFdbU1XK;U+$8ZWo$tT@2ECOu7bh16 z2(iqX-e$u`Eb&_Hfkj3Z494fp%xepgw(qY2{oXTPK zaT2^qeCGyp0cowPb844oeVN0+S8E?8$V%&o&90OrrOsPGisPIoo_&vDkf;ubi4Alf zmzyFP9^1}orAIh}ez*#^bWjhW9HWtL=mY99Dp|_72ro^A=o#^#!5upEC>=uxIHkby z$W!!nf{eu|OwLm68t3=5u^}G2fw*AZ@#9T2rd=RH?>ZqvWlzbw$Zl+U!1bZcGxXTq zgTn?GT%03^iXwEj_Y@c5&baJKI%r2C{S9ikR=snpTBL2vCp!0n;uZ@jaD+_ykXpU` z(xLR`Z{^>JW-P&vhiCGJ#erg)8KuZy1}CjMaCTkNzjri@|9cleJ2Hyl8utjkH05K> zapM%y!O|h_u#tV1J8eg4eq-lzfD+$*_0uGDkR_1nMrZ44zPo&|^4K-WLfA$`-NqkC zy)M@-Mwc3!sT4H6a8>^Eb;3Oru^q3>`*Gc1P9&13^LCK17532~h`f!z{cpdv12 ByyXA@ literal 0 HcmV?d00001 From b2c53ea5843dcc0414e14637761cbf03123f323b Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 22:45:44 +0000 Subject: [PATCH 05/19] (GH-2) Add ability to download AppVeyor File --- package.json | 15 +++++++++++++-- src/extension.ts | 32 +++++++++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 45a6465..7b26272 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "theme": "light" }, "activationEvents": [ - "onCommand:cicd.editorconfig" + "onCommand:cicd.editorconfig", + "onCommand:cicd.appveyor" ], "engines": { "vscode": "^1.24.0" @@ -40,7 +41,8 @@ "cicd.urls": { "type": "object", "default": { - "editorconfig": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig" + "editorconfig": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig", + "appveyor": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml" }, "description": "The URL's to download files from.", "properties": { @@ -48,6 +50,11 @@ "type": "string", "description": "The URL to download the EditorConfig file from.", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig" + }, + "appveyor": { + "type": "string", + "description": "The URL to download the AppVeyor file from.", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml" } } } @@ -58,6 +65,10 @@ { "command": "cicd.editorconfig", "title": "CICD: Download EditorConfig File" + }, + { + "command": "cicd.appveyor", + "title": "CICD: Download AppVeyor File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index b2b7a1d..7a2c20e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -6,6 +6,7 @@ import * as fs from "fs"; export function activate(): void { // register Commands commands.registerCommand("cicd.editorconfig", async () => downloadEditorConfigFile()); + commands.registerCommand("cicd.appveyor", async () => downloadAppVeyorConfigFile()); } async function checkForExisting(path: string): Promise { @@ -71,9 +72,38 @@ async function downloadEditorConfigFile(): Promise { var result = await downloadFile(uri, file); if(result) { - window.showInformationMessage("EditorConfig File downloaded correctly."); + window.showInformationMessage("EditorConfig File downloaded correctly."); } else { window.showErrorMessage("Error downloading EditorConfig File."); } } } + +async function downloadAppVeyorConfigFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var appveyorFilePath = path.join(workspaceRootPath, '.appveyor.yml'); + var ready = await checkForExisting(appveyorFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(appveyorFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.appveyor; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage("AppVeyor File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading AppVeyor File."); + } + } +} From e6125dfed00c4869edf2b507424426ba5b38311a Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 22:55:49 +0000 Subject: [PATCH 06/19] (GH-3) Add ability to download .gitattributes file --- package.json | 15 +++++++++++++-- src/extension.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7b26272..3d6b436 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ }, "activationEvents": [ "onCommand:cicd.editorconfig", - "onCommand:cicd.appveyor" + "onCommand:cicd.appveyor", + "onCommand:cicd.gitattributes" ], "engines": { "vscode": "^1.24.0" @@ -42,7 +43,8 @@ "type": "object", "default": { "editorconfig": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig", - "appveyor": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml" + "appveyor": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml", + "gitattributes": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes" }, "description": "The URL's to download files from.", "properties": { @@ -55,6 +57,11 @@ "type": "string", "description": "The URL to download the AppVeyor file from.", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml" + }, + "gitattributes": { + "type": "string", + "description": "The URL to download the .gitattributes file from.", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes" } } } @@ -69,6 +76,10 @@ { "command": "cicd.appveyor", "title": "CICD: Download AppVeyor File" + }, + { + "command": "cicd.gitattributes", + "title": "CICD: Download .gitattributes File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index 7a2c20e..56e1b5b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -7,6 +7,7 @@ export function activate(): void { // register Commands commands.registerCommand("cicd.editorconfig", async () => downloadEditorConfigFile()); commands.registerCommand("cicd.appveyor", async () => downloadAppVeyorConfigFile()); + commands.registerCommand("cicd.gitattributes", async () => downloadGitAttributesFile()); } async function checkForExisting(path: string): Promise { @@ -107,3 +108,32 @@ async function downloadAppVeyorConfigFile(): Promise { } } } + +async function downloadGitAttributesFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var gitAttributesFilePath = path.join(workspaceRootPath, '.gitattributes'); + var ready = await checkForExisting(gitAttributesFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(gitAttributesFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.gitattributes; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage(".gitattributes File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading .gitattributes File."); + } + } +} From da3855723b8e8879165e8a653c0142278fc9e797 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Wed, 26 Dec 2018 22:57:36 +0000 Subject: [PATCH 07/19] (build) Fix AppVeyor build --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3d6b436..dae656a 100644 --- a/package.json +++ b/package.json @@ -85,8 +85,8 @@ }, "scripts": { "vscode:prepublish": "npm run compile", - "compile": "tsc -p ./", - "watch": "tsc -watch -p ./", + "compile": "%APPDATA%/npm/tsc -p ./", + "watch": "%APPDATA%/npm/tsc -watch -p ./", "postinstall": "node ./node_modules/vscode/bin/install", "test": "npm run compile && node ./node_modules/vscode/bin/test" }, From 92cf64877763dc4358b872c897512a2579ca6510 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 09:00:04 +0000 Subject: [PATCH 08/19] (GH-4) Add ability to download .gitignore file --- package.json | 15 +++++++++++++-- src/extension.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dae656a..a3558cb 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "activationEvents": [ "onCommand:cicd.editorconfig", "onCommand:cicd.appveyor", - "onCommand:cicd.gitattributes" + "onCommand:cicd.gitattributes", + "onCommand:cicd.gitignore" ], "engines": { "vscode": "^1.24.0" @@ -44,7 +45,8 @@ "default": { "editorconfig": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig", "appveyor": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml", - "gitattributes": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes" + "gitattributes": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes", + "gitignore": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore" }, "description": "The URL's to download files from.", "properties": { @@ -62,6 +64,11 @@ "type": "string", "description": "The URL to download the .gitattributes file from.", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes" + }, + "gitignore": { + "type": "string", + "description": "The URL to download the .gitignore file from.", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore" } } } @@ -80,6 +87,10 @@ { "command": "cicd.gitattributes", "title": "CICD: Download .gitattributes File" + }, + { + "command": "cicd.gitignore", + "title": "CICD: Download .gitignore File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index 56e1b5b..fd8f873 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -8,6 +8,7 @@ export function activate(): void { commands.registerCommand("cicd.editorconfig", async () => downloadEditorConfigFile()); commands.registerCommand("cicd.appveyor", async () => downloadAppVeyorConfigFile()); commands.registerCommand("cicd.gitattributes", async () => downloadGitAttributesFile()); + commands.registerCommand("cicd.gitignore", async () => downloadGitIgnoreFile()); } async function checkForExisting(path: string): Promise { @@ -137,3 +138,32 @@ async function downloadGitAttributesFile(): Promise { } } } + +async function downloadGitIgnoreFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var gitIgnoreFilePath = path.join(workspaceRootPath, '.gitignore'); + var ready = await checkForExisting(gitIgnoreFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(gitIgnoreFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.gitignore; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage(".gitignore File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading .gitignore File."); + } + } +} From aea2dd594eb4c1c05d0d343cc797578749d46dd8 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 09:09:16 +0000 Subject: [PATCH 09/19] (GH-5) Add ability to download .mergify.yml file --- package.json | 19 +++++++++++++++---- src/extension.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a3558cb..132a9b3 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "onCommand:cicd.editorconfig", "onCommand:cicd.appveyor", "onCommand:cicd.gitattributes", - "onCommand:cicd.gitignore" + "onCommand:cicd.gitignore", + "onCommand:cicd.mergify" ], "engines": { "vscode": "^1.24.0" @@ -46,7 +47,8 @@ "editorconfig": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.editorconfig", "appveyor": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml", "gitattributes": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes", - "gitignore": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore" + "gitignore": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore", + "mergify": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml" }, "description": "The URL's to download files from.", "properties": { @@ -69,6 +71,11 @@ "type": "string", "description": "The URL to download the .gitignore file from.", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore" + }, + "mergify": { + "type": "string", + "description": "The URL to download the .mergify.yml file from", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml" } } } @@ -78,11 +85,11 @@ "commands": [ { "command": "cicd.editorconfig", - "title": "CICD: Download EditorConfig File" + "title": "CICD: Download .editorconfig File" }, { "command": "cicd.appveyor", - "title": "CICD: Download AppVeyor File" + "title": "CICD: Download .appveyor.yml File" }, { "command": "cicd.gitattributes", @@ -91,6 +98,10 @@ { "command": "cicd.gitignore", "title": "CICD: Download .gitignore File" + }, + { + "command": "cicd.mergify", + "title": "CICD: Download .mergify.yml File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index fd8f873..64be1ac 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -9,6 +9,7 @@ export function activate(): void { commands.registerCommand("cicd.appveyor", async () => downloadAppVeyorConfigFile()); commands.registerCommand("cicd.gitattributes", async () => downloadGitAttributesFile()); commands.registerCommand("cicd.gitignore", async () => downloadGitIgnoreFile()); + commands.registerCommand("cicd.mergify", async () => downloadMergifyFile()); } async function checkForExisting(path: string): Promise { @@ -167,3 +168,32 @@ async function downloadGitIgnoreFile(): Promise { } } } + +async function downloadMergifyFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var mergifyFilePath = path.join(workspaceRootPath, '.mergify.yml'); + var ready = await checkForExisting(mergifyFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(mergifyFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.mergify; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage(".mergify.yml File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading .mergify.yml File."); + } + } +} From d780be4b25b42dbe5d0f49c46c3337724cbb3250 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 10:48:10 +0000 Subject: [PATCH 10/19] (GH-6) Add ability to download .travis.yml file --- package.json | 15 +++++++++++++-- src/extension.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 132a9b3..e29709a 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "onCommand:cicd.appveyor", "onCommand:cicd.gitattributes", "onCommand:cicd.gitignore", - "onCommand:cicd.mergify" + "onCommand:cicd.mergify", + "onCommand:cicd.travis" ], "engines": { "vscode": "^1.24.0" @@ -48,7 +49,8 @@ "appveyor": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.appveyor.yml", "gitattributes": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes", "gitignore": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore", - "mergify": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml" + "mergify": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml", + "travis": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml" }, "description": "The URL's to download files from.", "properties": { @@ -76,6 +78,11 @@ "type": "string", "description": "The URL to download the .mergify.yml file from", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml" + }, + "travis": { + "type": "string", + "description": "The URL to download the .travis.yml file from", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml" } } } @@ -102,6 +109,10 @@ { "command": "cicd.mergify", "title": "CICD: Download .mergify.yml File" + }, + { + "command": "cicd.travis", + "title": "CICD: Download .travis.yml File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index 64be1ac..725f09d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -10,6 +10,7 @@ export function activate(): void { commands.registerCommand("cicd.gitattributes", async () => downloadGitAttributesFile()); commands.registerCommand("cicd.gitignore", async () => downloadGitIgnoreFile()); commands.registerCommand("cicd.mergify", async () => downloadMergifyFile()); + commands.registerCommand("cicd.travis", async () => downloadTravisFile()); } async function checkForExisting(path: string): Promise { @@ -197,3 +198,32 @@ async function downloadMergifyFile(): Promise { } } } + +async function downloadTravisFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var travisFilePath = path.join(workspaceRootPath, '.travis.yml'); + var ready = await checkForExisting(travisFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(travisFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.travis; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage(".travis.yml File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading .travis.yml File."); + } + } +} From 3ac98ceeeac35a77446d0a1f0394886acd0b6f3c Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 10:54:33 +0000 Subject: [PATCH 11/19] (GH-7) Add ability to download GitReleaseManager.yaml file --- package.json | 15 +++++++++++++-- src/extension.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e29709a..265d3f0 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "onCommand:cicd.gitattributes", "onCommand:cicd.gitignore", "onCommand:cicd.mergify", - "onCommand:cicd.travis" + "onCommand:cicd.travis", + "onCommand:cicd.gitreleasemanager" ], "engines": { "vscode": "^1.24.0" @@ -50,7 +51,8 @@ "gitattributes": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitattributes", "gitignore": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore", "mergify": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml", - "travis": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml" + "travis": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml", + "gitreleasemanager": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/GitReleaseManager.yaml" }, "description": "The URL's to download files from.", "properties": { @@ -83,6 +85,11 @@ "type": "string", "description": "The URL to download the .travis.yml file from", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml" + }, + "gitreleasemanager": { + "type": "string", + "description": "The URL to download the GitReleaseManager.yaml file from", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/GitReleaseManager.yaml" } } } @@ -113,6 +120,10 @@ { "command": "cicd.travis", "title": "CICD: Download .travis.yml File" + }, + { + "command": "cicd.gitreleasemanager", + "title": "CICD: Download GitReleaseManager.yaml File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index 725f09d..c4fbb25 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -11,6 +11,7 @@ export function activate(): void { commands.registerCommand("cicd.gitignore", async () => downloadGitIgnoreFile()); commands.registerCommand("cicd.mergify", async () => downloadMergifyFile()); commands.registerCommand("cicd.travis", async () => downloadTravisFile()); + commands.registerCommand("cicd.gitreleasemanager", async () => downloadGitReleaseManagerFile()); } async function checkForExisting(path: string): Promise { @@ -227,3 +228,32 @@ async function downloadTravisFile(): Promise { } } } + +async function downloadGitReleaseManagerFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var gitReleaseManagerFilePath = path.join(workspaceRootPath, 'GitReleaseManager.yaml'); + var ready = await checkForExisting(gitReleaseManagerFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(gitReleaseManagerFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.gitreleasemanager; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage("GitReleaseManager.yaml File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading GitReleaseManager.yaml File."); + } + } +} From 9e5f91e6a1845bf93cb53bd6c8168bff4253d3a6 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 11:01:10 +0000 Subject: [PATCH 12/19] (GH-8) Add ability to download config.wyam file --- package.json | 15 +++++++++++++-- src/extension.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 265d3f0..94206f1 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "onCommand:cicd.gitignore", "onCommand:cicd.mergify", "onCommand:cicd.travis", - "onCommand:cicd.gitreleasemanager" + "onCommand:cicd.gitreleasemanager", + "onCommand:cicd.wyam" ], "engines": { "vscode": "^1.24.0" @@ -52,7 +53,8 @@ "gitignore": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.gitignore", "mergify": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml", "travis": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml", - "gitreleasemanager": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/GitReleaseManager.yaml" + "gitreleasemanager": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/GitReleaseManager.yaml", + "wyam": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/config.wyam" }, "description": "The URL's to download files from.", "properties": { @@ -90,6 +92,11 @@ "type": "string", "description": "The URL to download the GitReleaseManager.yaml file from", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/GitReleaseManager.yaml" + }, + "wyam": { + "type": "string", + "description": "The URL to download the config.wyam file from", + "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/config.wyam" } } } @@ -124,6 +131,10 @@ { "command": "cicd.gitreleasemanager", "title": "CICD: Download GitReleaseManager.yaml File" + }, + { + "command": "cicd.wyam", + "title": "CICD: Download config.wyam File" } ] }, diff --git a/src/extension.ts b/src/extension.ts index c4fbb25..376f9b9 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -12,6 +12,7 @@ export function activate(): void { commands.registerCommand("cicd.mergify", async () => downloadMergifyFile()); commands.registerCommand("cicd.travis", async () => downloadTravisFile()); commands.registerCommand("cicd.gitreleasemanager", async () => downloadGitReleaseManagerFile()); + commands.registerCommand("cicd.wyam", async () => downloadWyamFile()); } async function checkForExisting(path: string): Promise { @@ -257,3 +258,32 @@ async function downloadGitReleaseManagerFile(): Promise { } } } + +async function downloadWyamFile(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var wyamFilePath = path.join(workspaceRootPath, 'config.wyam'); + var ready = await checkForExisting(wyamFilePath); + + if(!ready) { + return; + } + + var file = fs.createWriteStream(wyamFilePath); + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + var uri = config.urls.wyam; + var result = await downloadFile(uri, file); + + if(result) { + window.showInformationMessage("config.wyam File downloaded correctly."); + } else { + window.showErrorMessage("Error downloading config.wyam File."); + } + } +} From b1be96c4465b5cdf080f3d2a4270562704e22108 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 11:06:02 +0000 Subject: [PATCH 13/19] (GH-10) Added description to nuspec --- chocolatey/ci-cd-assets-vscode.nuspec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/chocolatey/ci-cd-assets-vscode.nuspec b/chocolatey/ci-cd-assets-vscode.nuspec index 4a198ba..6a87297 100644 --- a/chocolatey/ci-cd-assets-vscode.nuspec +++ b/chocolatey/ci-cd-assets-vscode.nuspec @@ -18,6 +18,20 @@ CI-CD-assets-vscode vscode extension CI/CD Assets Extension for Visual Studio Code +This extension brings support for CI/CD Assets to Visual Studio Code. + +## Commands +The CI/CD Assets Visual Studio Code provides the following commands: + +- `CICD: Download .editorconfig File` +- `CICD: Download .appveyor.yml File` +- `CICD: Download .gitattributes File` +- `CICD: Download .gitignore File` +- `CICD: Download .mergify.yml File` +- `CICD: Download .travis.yml File` +- `CICD: Download GitReleaseManager.yaml File` +- `CICD: Download config.wyam File` +- `CICD: Download .github Files` Full release notes found on [GitHub Release Page](https://github.com/gep13/CI-CD-assets-vscode/releases) From 5fb3135f4cbb03b481fc59bb4e5019310d60b3f7 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 11:10:53 +0000 Subject: [PATCH 14/19] (GH-10) Added missing iconUrl --- chocolatey/ci-cd-assets-vscode.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chocolatey/ci-cd-assets-vscode.nuspec b/chocolatey/ci-cd-assets-vscode.nuspec index 6a87297..9b51d02 100644 --- a/chocolatey/ci-cd-assets-vscode.nuspec +++ b/chocolatey/ci-cd-assets-vscode.nuspec @@ -9,7 +9,7 @@ Gary Ewan Park https://github.com/gep13/CI-CD-assets-vscode - + iconUrl>https://cdn.jsdelivr.net/gh/gep13/CI-CD-assets-vscode@e50644910e327ab525702c935f36f697117f5dd7/images/cicd.png Copyright (c) 2018 Gary Ewan Park https://github.com/gep13/CI-CD-assets-vscode/blob/develop/LICENSE true From c24e7862306020463f104bf02bd7337f1ff054ef Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 11:13:24 +0000 Subject: [PATCH 15/19] (GH-10) Corrected xml --- chocolatey/ci-cd-assets-vscode.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chocolatey/ci-cd-assets-vscode.nuspec b/chocolatey/ci-cd-assets-vscode.nuspec index 9b51d02..9abfa27 100644 --- a/chocolatey/ci-cd-assets-vscode.nuspec +++ b/chocolatey/ci-cd-assets-vscode.nuspec @@ -9,7 +9,7 @@ Gary Ewan Park https://github.com/gep13/CI-CD-assets-vscode - iconUrl>https://cdn.jsdelivr.net/gh/gep13/CI-CD-assets-vscode@e50644910e327ab525702c935f36f697117f5dd7/images/cicd.png + https://cdn.jsdelivr.net/gh/gep13/CI-CD-assets-vscode@e50644910e327ab525702c935f36f697117f5dd7/images/cicd.png Copyright (c) 2018 Gary Ewan Park https://github.com/gep13/CI-CD-assets-vscode/blob/develop/LICENSE true From e115f99d24a8fb5fcdd026389de10c938efc7048 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 20:31:07 +0000 Subject: [PATCH 16/19] (GH-9) Add ability to download .github files --- package.json | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 94206f1..c72f80b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "onCommand:cicd.mergify", "onCommand:cicd.travis", "onCommand:cicd.gitreleasemanager", - "onCommand:cicd.wyam" + "onCommand:cicd.wyam", + "onCommand:cicd.github" ], "engines": { "vscode": "^1.24.0" @@ -54,7 +55,25 @@ "mergify": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.mergify.yml", "travis": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.travis.yml", "gitreleasemanager": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/GitReleaseManager.yaml", - "wyam": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/config.wyam" + "wyam": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/config.wyam", + "github": [ + { + "name": "CODEOFCONDUCT.md", + "url": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/CODEOFCONDUCT.md" + }, + { + "name": "CONTRIBUTING.md", + "url": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/CONTRIBUTING.md" + }, + { + "name": "ISSUE_TEMPLATE.md", + "url": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/ISSUE_TEMPLATE.md" + }, + { + "name": "PULL_REQUEST_TEMPLATE.md", + "url": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/PULL_REQUEST_TEMPLATE.md" + } + ] }, "description": "The URL's to download files from.", "properties": { @@ -97,6 +116,16 @@ "type": "string", "description": "The URL to download the config.wyam file from", "default": "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/config.wyam" + }, + "github": { + "type": "array", + "description": "Array of URL's to be placed in .github folder", + "default": [ + "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/CODEOFCONDUCT.md", + "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/CONTRIBUTING.md", + "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/ISSUE_TEMPLATE.md", + "https://raw.githubusercontent.com/gep13/CI-CD-assets/master/.github/PULL_REQUEST_TEMPLATE.md" + ] } } } @@ -135,6 +164,10 @@ { "command": "cicd.wyam", "title": "CICD: Download config.wyam File" + }, + { + "command": "cicd.github", + "title": "CICD: Download .github Files" } ] }, From 0662a23f9952e1e3ad772f91362b557ddcac3176 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 20:32:35 +0000 Subject: [PATCH 17/19] (GH-9) Add ability to download .github files --- src/extension.ts | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/extension.ts b/src/extension.ts index 376f9b9..c57739e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -13,6 +13,7 @@ export function activate(): void { commands.registerCommand("cicd.travis", async () => downloadTravisFile()); commands.registerCommand("cicd.gitreleasemanager", async () => downloadGitReleaseManagerFile()); commands.registerCommand("cicd.wyam", async () => downloadWyamFile()); + commands.registerCommand("cicd.github", async () => downloadGitHubFiles()); } async function checkForExisting(path: string): Promise { @@ -287,3 +288,44 @@ async function downloadWyamFile(): Promise { } } } + +async function downloadGitHubFiles(): Promise { + var workspaceRootPath = checkForWorkspace(); + if(workspaceRootPath !== "") { + var gitHubFolderPath = path.join(workspaceRootPath, ".github"); + if(!fs.existsSync(gitHubFolderPath)) { + fs.mkdirSync(gitHubFolderPath); + } + + var config = workspace.getConfiguration('cicd'); + + if (!config) { + window.showErrorMessage("Could not find CI/CD Configuration."); + return; + } + + const gitHubFiles = config.urls.github; + + Promise.all(gitHubFiles.map(async gitHubFile => { + var gitHubFilePath = path.join(workspaceRootPath, ".github", gitHubFile.name); + var ready = await checkForExisting(gitHubFilePath); + + if(!ready) { + return; + } + + let file = fs.createWriteStream(gitHubFilePath); + let result = await downloadFile(gitHubFile.url, file); + return { "success": result, "name": gitHubFile.name} + })).then(function(results) { + results.forEach(result => { + var castResult = (result as any); + if(castResult.success) { + window.showInformationMessage(`${castResult.name} File downloaded correctly.`); + } else { + window.showErrorMessage(`Error downloading ${castResult.name} File.`); + } + }); + }); + } +} From 094aee5996dbde48ff438511b4f1c5b02a14e4d8 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 20:40:17 +0000 Subject: [PATCH 18/19] (GH-11) Add ability to download all files --- chocolatey/ci-cd-assets-vscode.nuspec | 19 ++++++++++--------- package.json | 25 +++++++++++++++---------- src/extension.ts | 13 +++++++++++++ 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/chocolatey/ci-cd-assets-vscode.nuspec b/chocolatey/ci-cd-assets-vscode.nuspec index 9abfa27..4cda32d 100644 --- a/chocolatey/ci-cd-assets-vscode.nuspec +++ b/chocolatey/ci-cd-assets-vscode.nuspec @@ -23,15 +23,16 @@ This extension brings support for CI/CD Assets to Visual Studio Code. ## Commands The CI/CD Assets Visual Studio Code provides the following commands: -- `CICD: Download .editorconfig File` -- `CICD: Download .appveyor.yml File` -- `CICD: Download .gitattributes File` -- `CICD: Download .gitignore File` -- `CICD: Download .mergify.yml File` -- `CICD: Download .travis.yml File` -- `CICD: Download GitReleaseManager.yaml File` -- `CICD: Download config.wyam File` -- `CICD: Download .github Files` +- `CICD: Download .editorconfig file` +- `CICD: Download .appveyor.yml file` +- `CICD: Download .gitattributes file` +- `CICD: Download .gitignore file` +- `CICD: Download .mergify.yml file` +- `CICD: Download .travis.yml file` +- `CICD: Download GitReleaseManager.yaml file` +- `CICD: Download config.wyam file` +- `CICD: Download .github files` +- `CICD: Download all files` Full release notes found on [GitHub Release Page](https://github.com/gep13/CI-CD-assets-vscode/releases) diff --git a/package.json b/package.json index c72f80b..3fee7f2 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "onCommand:cicd.travis", "onCommand:cicd.gitreleasemanager", "onCommand:cicd.wyam", - "onCommand:cicd.github" + "onCommand:cicd.github", + "onCommand:cicd.all" ], "engines": { "vscode": "^1.24.0" @@ -135,39 +136,43 @@ "commands": [ { "command": "cicd.editorconfig", - "title": "CICD: Download .editorconfig File" + "title": "CICD: Download .editorconfig file" }, { "command": "cicd.appveyor", - "title": "CICD: Download .appveyor.yml File" + "title": "CICD: Download .appveyor.yml file" }, { "command": "cicd.gitattributes", - "title": "CICD: Download .gitattributes File" + "title": "CICD: Download .gitattributes file" }, { "command": "cicd.gitignore", - "title": "CICD: Download .gitignore File" + "title": "CICD: Download .gitignore file" }, { "command": "cicd.mergify", - "title": "CICD: Download .mergify.yml File" + "title": "CICD: Download .mergify.yml file" }, { "command": "cicd.travis", - "title": "CICD: Download .travis.yml File" + "title": "CICD: Download .travis.yml file" }, { "command": "cicd.gitreleasemanager", - "title": "CICD: Download GitReleaseManager.yaml File" + "title": "CICD: Download GitReleaseManager.yaml file" }, { "command": "cicd.wyam", - "title": "CICD: Download config.wyam File" + "title": "CICD: Download config.wyam file" }, { "command": "cicd.github", - "title": "CICD: Download .github Files" + "title": "CICD: Download .github files" + }, + { + "command": "cicd.all", + "title": "CICD: Download all files." } ] }, diff --git a/src/extension.ts b/src/extension.ts index c57739e..e4e81bd 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -14,6 +14,7 @@ export function activate(): void { commands.registerCommand("cicd.gitreleasemanager", async () => downloadGitReleaseManagerFile()); commands.registerCommand("cicd.wyam", async () => downloadWyamFile()); commands.registerCommand("cicd.github", async () => downloadGitHubFiles()); + commands.registerCommand("cicd.all", async () => downloadAllFiles()); } async function checkForExisting(path: string): Promise { @@ -329,3 +330,15 @@ async function downloadGitHubFiles(): Promise { }); } } + +async function downloadAllFiles(): Promise { + downloadAppVeyorConfigFile() + .then(downloadEditorConfigFile) + .then(downloadGitAttributesFile) + .then(downloadGitHubFiles) + .then(downloadGitIgnoreFile) + .then(downloadGitReleaseManagerFile) + .then(downloadMergifyFile) + .then(downloadTravisFile) + .then(downloadWyamFile); +} From db8dc1adc174da46992fb5b4ead9ed230b8cdafe Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 27 Dec 2018 20:42:24 +0000 Subject: [PATCH 19/19] (doc) Added information to readme --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c87a648..1b8f3ac 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,20 @@ CI/CD Assets is a collection of files that are useful when setting up a CI/CD pi For more information about [CI/CD Assets](https://github.com/gep13/CI-CD-assets), please see the [source code repository](https://github.com/gep13/CI-CD-assets). - ## Commands The CI/CD Assets Visual Studio Code provides the following commands: -* `Chocolatey: Create new Chocolatey package` to create the default templated Chocolatey package at the root of current workspace. +* `CICD: Download .editorconfig file` +* `CICD: Download .appveyor.yml file` +* `CICD: Download .gitattributes file` +* `CICD: Download .gitignore file` +* `CICD: Download .mergify.yml file` +* `CICD: Download .travis.yml file` +* `CICD: Download GitReleaseManager.yaml file` +* `CICD: Download config.wyam file` +* `CICD: Download .github files` +* `CICD: Download all files` ## Resources @@ -33,7 +41,7 @@ Short YouTube videos of each of the releases of this extension can be found in t You can either install this extension in the normal way, or you can choose to install using Chocolatey: -``` +```powershell choco install ci-cd-assets-vscode ```