UNPKG
@25sprout/react-starter
Version:
latest (0.15.0-alpha.11)
0.15.0-alpha.11
0.15.0-alpha.10
0.15.0-alpha.9
0.15.0-alpha.8
0.15.0-alpha.7
0.15.0-alpha.6
0.15.0-alpha.5
0.15.0-alpha.4
0.15.0-alpha.3
0.15.0-alpha.2
0.15.0-alpha.1
0.15.0-alpha.0
0.14.0
0.14.0-alpha.0
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.1
0.7.0
0.6.1
25sprout web starter with React
@25sprout/react-starter
/
scripts
/
preprocess
/
gitignore.js
14 lines
(10 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
fs
from
'fs/promises'
;
async
function
processGitignore
(
projectPath
) {
try
{
await
fs.
rename
(
`
${projectPath}
/gitignore`
,
`
${projectPath}
/.gitignore`
);
console
.
log
(
'Complete .gitignore'
); }
catch
(error) {
console
.
log
(error); } }
export
default
processGitignore;