.npmrc .yarnrc 不需要提交

This commit is contained in:
baozhoutao 2021-12-09 20:01:09 +08:00
parent 06f271da25
commit f3d2e43787
4 changed files with 29 additions and 18 deletions

5
.gitignore vendored
View File

@ -63,4 +63,7 @@ packages/cli/dist/**
docker-volumes
packages/node-red-app-template/yarn.lock
steedos-projects/project-dev/**
steedos-projects/project-dev/**
.npmrc
.yarnrc

View File

@ -5,6 +5,8 @@ cpy([
'**',
'.steedos/**',
'!.steedos/node_modules/**',
'!.steedos/.npmrc',
'!.steedos/.yarnrc',
'.vscode/**',
'!**/node_modules/**',
'!logs/**',
@ -15,26 +17,26 @@ cpy([
'!init_home.sh',
'.env',
], '../../packages/create-steedos-app/templates/default', {
parents: true,
parents: true,
flat: false,
cwd: path.join(process.cwd(), 'steedos-projects', 'project-template'),
rename: (name) => {
switch (name) {
case '.env':
return 'env'
case '.gitignore': {
return 'gitignore'
}
case 'package.json': {
return '_package.json'
}
default: {
return name
}
case '.env':
return 'env'
case '.gitignore': {
return 'gitignore'
}
case 'package.json': {
return '_package.json'
}
default: {
return name
}
}
}
}).then(()=>{
}
}).then(() => {
console.log(`copy default template end: packages/create-steedos-app/templates/default`);
}).catch((result)=>{
}).catch((result) => {
console.log(`error`, result);
})

View File

@ -25,4 +25,7 @@ docker-volumes
# steedos-packages/**/**
!/steedos-packages/*.package
server.log
logs
logs
.npmrc
.yarnrc

View File

@ -25,4 +25,7 @@ docker-volumes
# steedos-packages/**/**
!/steedos-packages/*.package
server.log
logs
logs
.npmrc
.yarnrc