mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-30 10:22:33 +08:00
Temporarily disable Windows in CI (#7773)
This commit is contained in:
@@ -8,8 +8,8 @@ parameters:
|
||||
configurations:
|
||||
LinuxNode8: { vmImage: 'ubuntu-16.04', nodeVersion: 8.x }
|
||||
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
|
||||
WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
|
||||
WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x }
|
||||
# WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
|
||||
# WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x }
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
||||
@@ -58,8 +58,8 @@ jobs:
|
||||
configurations:
|
||||
LinuxNode8: { vmImage: 'ubuntu-16.04', nodeVersion: 8.x }
|
||||
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
|
||||
WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
|
||||
WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x }
|
||||
# WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
|
||||
# WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x }
|
||||
MacNode8: { vmImage: 'macOS-10.13', nodeVersion: 8.x }
|
||||
MacNode10: { vmImage: 'macOS-10.13', nodeVersion: 10.x }
|
||||
|
||||
|
||||
@@ -225,9 +225,7 @@ function createApp(
|
||||
if (!semver.satisfies(process.version, '>=8.10.0')) {
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
`You are using Node ${
|
||||
process.version
|
||||
} so the project will be bootstrapped with an old unsupported version of tools.\n\n` +
|
||||
`You are using Node ${process.version} so the project will be bootstrapped with an old unsupported version of tools.\n\n` +
|
||||
`Please update to Node 8.10 or higher for a better, fully supported experience.\n`
|
||||
)
|
||||
);
|
||||
@@ -241,9 +239,7 @@ function createApp(
|
||||
if (npmInfo.npmVersion) {
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
`You are using npm ${
|
||||
npmInfo.npmVersion
|
||||
} so the project will be bootstrapped with an old unsupported version of tools.\n\n` +
|
||||
`You are using npm ${npmInfo.npmVersion} so the project will be bootstrapped with an old unsupported version of tools.\n\n` +
|
||||
`Please update to npm 5 or higher for a better, fully supported experience.\n`
|
||||
)
|
||||
);
|
||||
@@ -257,9 +253,7 @@ function createApp(
|
||||
if (yarnInfo.yarnVersion) {
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
`You are using Yarn ${
|
||||
yarnInfo.yarnVersion
|
||||
} together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` +
|
||||
`You are using Yarn ${yarnInfo.yarnVersion} together with the --use-pnp flag, but Plug'n'Play is only supported starting from the 1.12 release.\n\n` +
|
||||
`Please update to Yarn 1.12 or higher for a better, fully supported experience.\n`
|
||||
)
|
||||
);
|
||||
|
||||
@@ -17,7 +17,9 @@ class InlineChunkHtmlPlugin {
|
||||
if (tag.tagName !== 'script' || !(tag.attributes && tag.attributes.src)) {
|
||||
return tag;
|
||||
}
|
||||
const scriptName = publicPath ? tag.attributes.src.replace(publicPath, '') : tag.attributes.src;
|
||||
const scriptName = publicPath
|
||||
? tag.attributes.src.replace(publicPath, '')
|
||||
: tag.attributes.src;
|
||||
if (!this.tests.some(test => scriptName.match(test))) {
|
||||
return tag;
|
||||
}
|
||||
|
||||
6
packages/react-scripts/scripts/build.js
vendored
6
packages/react-scripts/scripts/build.js
vendored
@@ -124,9 +124,11 @@ checkBrowsers(paths.appPath, isInteractive)
|
||||
err => {
|
||||
const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true';
|
||||
if (tscCompileOnError) {
|
||||
console.log(chalk.yellow(
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
'Compiled with the following type errors (you may want to check these before deploying your app):\n'
|
||||
));
|
||||
)
|
||||
);
|
||||
printBuildError(err);
|
||||
} else {
|
||||
console.log(chalk.red('Failed to compile.\n'));
|
||||
|
||||
Reference in New Issue
Block a user