FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
msgraph-sdk-javascript/gulpfile.js at dev · microsoftgraph/msgraph-sdk-javascript · GitHub
microsoftgraph
msgraph-sdk-javascript
Repository navigation
Code
Issues
79
(79)
Pull requests
35
(35)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
msgraph-sdk-javascript
/
gulpfile.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (25 loc) · 855 Bytes
Breadcrumbs
msgraph-sdk-javascript
/
gulpfile.js
Copy path
File metadata and controls
31 lines (25 loc) · 855 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
const
{
series
}
=
require
(
"gulp"
)
;
const
licenseStr
=
`/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
`
;
const
moduleHeader
=
`/**
* @module Version
*/
`
;
const
versionFile
=
`
${
licenseStr
}
// THIS FILE IS AUTO GENERATED
// ANY CHANGES WILL BE LOST DURING BUILD
${
moduleHeader
}
export const PACKAGE_VERSION = "[VERSION]";
`
;
function
setVersion
(
cb
)
{
var
pkg
=
require
(
"./package.json"
)
;
var
fs
=
require
(
"fs"
)
;
fs
.
writeFileSync
(
"src/Version.ts"
,
versionFile
.
replace
(
"[VERSION]"
,
pkg
.
version
)
)
;
cb
(
)
;
}
exports
.
setVersion
=
setVersion
;
Back
|
FazBrowse Home
|
New Git URL