This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
wlxsp
/
test1
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Removes README note from pre-releases
Since pre-releases feed the marketplace content
main
Eric Amodio
2 years ago
parent
e615721002
commit
aa7ccd988d
3 changed files
with
8 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
README.pre.md
+4
-2
scripts/applyInsidersPatch.js
+4
-2
scripts/applyPreReleasePatch.js
+ 0
- 1
README.pre.md
View File
@ -1 +0,0 @@
> **This is the pre-release edition of GitLens for early feedback, and testing. It works best with [
VS Code Insiders
](
https://code.visualstudio.com/insiders
).**
+ 4
- 2
scripts/applyInsidersPatch.js
View File
@ -3,8 +3,10 @@ const fs = require('fs');
// Patch README
const
insert
=
fs
.
readFileSync
(
'./README.insiders.md'
,
{
encoding
:
'utf8'
}
)
;
const
data
=
fs
.
readFileSync
(
'./README.md'
,
{
encoding
:
'utf8'
}
)
;
fs
.
writeFileSync
(
'./README.md'
,
`
${
insert
}
\
n
${
data
}
`
)
;
if
(
insert
.
trim
(
)
.
length
!==
0
)
{
const
data
=
fs
.
readFileSync
(
'./README.md'
,
{
encoding
:
'utf8'
}
)
;
fs
.
writeFileSync
(
'./README.md'
,
`
${
insert
}
\
n
${
data
}
`
)
;
}
// Patch package.json
const
date
=
new
Date
(
new
Date
(
)
.
toLocaleString
(
'en-US'
,
{
timeZone
:
'America/New_York'
}
)
)
;
+ 4
- 2
scripts/applyPreReleasePatch.js
View File
@ -3,8 +3,10 @@ const fs = require('fs');
// Patch README
const
insert
=
fs
.
readFileSync
(
'./README.pre.md'
,
{
encoding
:
'utf8'
}
)
;
const
data
=
fs
.
readFileSync
(
'./README.md'
,
{
encoding
:
'utf8'
}
)
;
fs
.
writeFileSync
(
'./README.md'
,
`
${
insert
}
\
n
${
data
}
`
)
;
if
(
insert
.
trim
(
)
.
length
!==
0
)
{
const
data
=
fs
.
readFileSync
(
'./README.md'
,
{
encoding
:
'utf8'
}
)
;
fs
.
writeFileSync
(
'./README.md'
,
`
${
insert
}
\
n
${
data
}
`
)
;
}
// Patch package.json
const
date
=
new
Date
(
new
Date
(
)
.
toLocaleString
(
'en-US'
,
{
timeZone
:
'America/New_York'
}
)
)
;
Write
Preview
Loading…
Cancel
Save