@epig/create-app
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -110,2 +110,3 @@ const chalk = require('chalk'); | ||
'tslib', | ||
'buildcache', | ||
]; | ||
@@ -284,4 +285,10 @@ | ||
let entryConfigContent = fs.readFileSync(entryConfigPath, 'utf-8'); | ||
entryConfigContent = entryConfigContent.replace('<%= appName %>', () => appName); | ||
entryConfigContent = entryConfigContent.replace(/<%= appName %>/ig, () => appName); | ||
fs.writeFileSync(entryConfigPath, entryConfigContent, { encoding: 'utf-8' }); | ||
if (projectType === 'admin') { | ||
const dockerComposeYmlPath = path.join(root, 'docker-compose.yml'); | ||
let dockerComposeYmlContent = fs.readFileSync(dockerComposeYmlPath, 'utf-8'); | ||
dockerComposeYmlContent = dockerComposeYmlContent.replace(/<%= appName %>/ig, () => appName); | ||
fs.writeFileSync(dockerComposeYmlPath, dockerComposeYmlContent, { encoding: 'utf-8' }); | ||
} | ||
} catch (err) { | ||
@@ -288,0 +295,0 @@ console.log(); |
{ | ||
"name": "@epig/create-app", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "create react app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,6 +32,6 @@ # @epig/create-react-app | ||
管理后台 | ||
管理后台([使用说明看这里](https://github.com/evel-pig/create-admin-app)) | ||
```bash | ||
npx @epig/create-app my-admin-app --admin | ||
``` | ||
``` |
@@ -17,3 +17,5 @@ { | ||
"skipLibCheck": true, | ||
"experimentalDecorators": true | ||
"experimentalDecorators": true, | ||
"incremental": true, | ||
"tsBuildInfoFile": "./buildcache/front-end" | ||
}, | ||
@@ -20,0 +22,0 @@ "include": [ |
@@ -17,3 +17,5 @@ { | ||
"module": "esNext", | ||
"allowUnusedLabels": false | ||
"allowUnusedLabels": false, | ||
"incremental": true, | ||
"tsBuildInfoFile": "./buildcache/front-end" | ||
}, | ||
@@ -20,0 +22,0 @@ "exclude": [ |
@@ -17,3 +17,5 @@ { | ||
"module": "esNext", | ||
"allowUnusedLabels": false | ||
"allowUnusedLabels": false, | ||
"incremental": true, | ||
"tsBuildInfoFile": "./buildcache/front-end" | ||
}, | ||
@@ -20,0 +22,0 @@ "exclude": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57169
1560
37