mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-21 15:52:56 +00:00
.npmrc .yarnrc 不需要提交
This commit is contained in:
parent
06f271da25
commit
f3d2e43787
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
|
@ -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);
|
||||
})
|
@ -25,4 +25,7 @@ docker-volumes
|
||||
# steedos-packages/**/**
|
||||
!/steedos-packages/*.package
|
||||
server.log
|
||||
logs
|
||||
logs
|
||||
|
||||
.npmrc
|
||||
.yarnrc
|
5
steedos-projects/project-template/.gitignore
vendored
5
steedos-projects/project-template/.gitignore
vendored
@ -25,4 +25,7 @@ docker-volumes
|
||||
# steedos-packages/**/**
|
||||
!/steedos-packages/*.package
|
||||
server.log
|
||||
logs
|
||||
logs
|
||||
|
||||
.npmrc
|
||||
.yarnrc
|
Loading…
Reference in New Issue
Block a user