repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/global-scss-asset-resolution/src/index.js | test/fixtures/global-scss-asset-resolution/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import './index.scss';
ReactDOM.render(<div />, document.getElementById('root'));
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/builds-with-multiple-runtimes/index.test.js | test/fixtures/builds-with-multiple-runtimes/index.test.js | 'use strict';
const testSetup = require('../__shared__/test-setup');
test('builds in development', async () => {
const { fulfilled } = await testSetup.scripts.start({ smoke: true });
expect(fulfilled).toBe(true);
});
test('builds in production', async () => {
const { fulfilled } = await testSetup.scripts.build(... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/builds-with-multiple-runtimes/src/index.js | test/fixtures/builds-with-multiple-runtimes/src/index.js | import React from 'react';
import dva from 'dva';
import createHistory from 'history/createHashHistory';
import ky from 'ky';
const app = dva({ history: createHistory() });
app.router(() => {
ky.get('https://canihazip.com/s')
.then(r => r.text())
.then(console.log, console.error)
.then(() => console.log(... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/index.test.js | test/fixtures/webpack-message-formatting/index.test.js | 'use strict';
const testSetup = require('../__shared__/test-setup');
const fs = require('fs-extra');
const path = require('path');
test('formats babel syntax error', async () => {
fs.copySync(
path.join(__dirname, 'src', 'AppBabel.js'),
path.join(testSetup.testDirectory, 'src', 'App.js')
);
const { st... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/FooExport.js | test/fixtures/webpack-message-formatting/src/FooExport.js | export function foo() {
console.log('bar');
}
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppUnknownFile.js | test/fixtures/webpack-message-formatting/src/AppUnknownFile.js | import React, { Component } from 'react';
import DefaultExport from './ThisFileSouldNotExist';
class App extends Component {
render() {
return <div className="App" />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppLintError.js | test/fixtures/webpack-message-formatting/src/AppLintError.js | import React, { Component } from 'react';
function foo() {
const a = b;
}
class App extends Component {
render() {
return <div />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/index.js | test/fixtures/webpack-message-formatting/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppLintWarning.js | test/fixtures/webpack-message-formatting/src/AppLintWarning.js | import React, { Component } from 'react';
function foo() {}
class App extends Component {
render() {
return <div />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppNoDefault.js | test/fixtures/webpack-message-formatting/src/AppNoDefault.js | import React, { Component } from 'react';
import myImport from './ExportNoDefault';
class App extends Component {
render() {
return <div className="App">{myImport}</div>;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/Export5.js | test/fixtures/webpack-message-formatting/src/Export5.js | export default 5;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppOutOfScopeImport.js | test/fixtures/webpack-message-formatting/src/AppOutOfScopeImport.js | import React, { Component } from 'react';
import myImport from '../OutOfScopeImport';
class App extends Component {
render() {
return <div className="App">{myImport}</div>;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppBabel.js | test/fixtures/webpack-message-formatting/src/AppBabel.js | import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div>
<span>
</div>
);
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppSass.js | test/fixtures/webpack-message-formatting/src/AppSass.js | import React, { Component } from 'react';
import './AppSass.scss';
class App extends Component {
render() {
return <div className="App" />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppUnknownExport.js | test/fixtures/webpack-message-formatting/src/AppUnknownExport.js | import React, { Component } from 'react';
import { bar } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar();
}
render() {
return <div />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppIncorrectCase.js | test/fixtures/webpack-message-formatting/src/AppIncorrectCase.js | import React, { Component } from 'react';
import five from './export5';
class App extends Component {
render() {
return <div className="App">{five}</div>;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppMissingPackage.js | test/fixtures/webpack-message-formatting/src/AppMissingPackage.js | import React, { Component } from 'react';
import { bar } from 'unknown-package';
class App extends Component {
componentDidMount() {
bar();
}
render() {
return <div />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/ExportNoDefault.js | test/fixtures/webpack-message-formatting/src/ExportNoDefault.js | export const six = 6;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppAliasUnknownExport.js | test/fixtures/webpack-message-formatting/src/AppAliasUnknownExport.js | import React, { Component } from 'react';
import { bar as bar2 } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar2();
}
render() {
return <div />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/webpack-message-formatting/src/AppCss.js | test/fixtures/webpack-message-formatting/src/AppCss.js | import React, { Component } from 'react';
import './AppCss.css';
class App extends Component {
render() {
return <div className="App" />;
}
}
export default App;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/typescript/index.test.js | test/fixtures/typescript/index.test.js | 'use strict';
const testSetup = require('../__shared__/test-setup');
test('passes tests', async () => {
const { fulfilled } = await testSetup.scripts.test({
jestEnvironment: 'node',
});
expect(fulfilled).toBe(true);
});
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/relative-paths/index.test.js | test/fixtures/relative-paths/index.test.js | 'use strict';
const testSetup = require('../__shared__/test-setup');
const fs = require('fs-extra');
const globby = require('globby');
const path = require('path');
test('contains a relative path in production build', async () => {
await testSetup.scripts.build();
const buildDir = path.join(testSetup.testDirect... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/relative-paths/src/index.js | test/fixtures/relative-paths/src/index.js | import './index.css';
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/test/fixtures/issue-5947-not-typescript/index.test.js | test/fixtures/issue-5947-not-typescript/index.test.js | 'use strict';
const testSetup = require('../__shared__/test-setup');
const path = require('path');
const fs = require('fs');
test('Ignores node_modules when detecting TypeScript', async () => {
// CRA build will check for TypeScript files by
// globbing for src/**/*.ts however this shouldn't
// include any node... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/docusaurus/website/docusaurus.config.js | docusaurus/website/docusaurus.config.js | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const siteConfig = {
title: 'Create React App',
tagline:
'Create React App has been deprecated. Please visit react... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/docusaurus/website/src/pages/index.js | docusaurus/website/src/pages/index.js | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Link from '@docusaurus/Link';
import Head from '@docusaurus/Head';
import useDocusaurusContext from '@... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-plugin-named-asset-import/index.test.js | packages/babel-plugin-named-asset-import/index.test.js | 'use strict';
const pluginTester = require('babel-plugin-tester/pure');
const namedAssetImport = require('./index');
pluginTester.default({
plugin: namedAssetImport,
pluginOptions: {
loaderMap: {
svg: {
ReactComponent: '@svgr/webpack?-svgo![path]',
},
},
},
pluginName: 'named-asset... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-plugin-named-asset-import/index.js | packages/babel-plugin-named-asset-import/index.js | 'use strict';
const { extname } = require('path');
function namedAssetImportPlugin({ types: t }) {
const visited = new WeakSet();
function generateNewSourcePath(loaderMap, moduleName, sourcePath) {
const ext = extname(sourcePath).substr(1);
const extMap = loaderMap[ext];
return extMap[moduleName]
... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/getProcessForPort.js | packages/react-dev-utils/getProcessForPort.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var chalk = require('chalk');
var execSync = require('child_process').execSync;
var execFileSync = require('child_process... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/crossSpawn.js | packages/react-dev-utils/crossSpawn.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var crossSpawn = require('cross-spawn');
module.exports = crossSpawn;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/getCacheIdentifier.js | packages/react-dev-utils/getCacheIdentifier.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = function getCacheIdentifier(environment, packages) {
let cacheIdentifier = environment == null ? '' : ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/globby.js | packages/react-dev-utils/globby.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var globby = require('globby');
module.exports = globby;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/clearConsole.js | packages/react-dev-utils/clearConsole.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
function clearConsole() {
process.stdout.write(
process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/launchEditor.js | packages/react-dev-utils/launchEditor.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const fs = require('fs');
const path = require('path');
const child_process = require('child_process');
const os = require... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/ForkTsCheckerWarningWebpackPlugin.js | packages/react-dev-utils/ForkTsCheckerWarningWebpackPlugin.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// References:
// - https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#plugin-hooks
// - https://github.com/Typ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/formatWebpackMessages.js | packages/react-dev-utils/formatWebpackMessages.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const friendlySyntaxErrorLabel = 'Syntax error:';
function isLikelyASyntaxError(message) {
return message.indexOf(frie... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/getPublicUrlOrPath.js | packages/react-dev-utils/getPublicUrlOrPath.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const { URL } = require('url');
module.exports = getPublicUrlOrPath;
/**
* Returns a URL or a path with slash at the e... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/launchEditorEndpoint.js | packages/react-dev-utils/launchEditorEndpoint.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// TODO: we might want to make this injectable to support DEV-time non-root URLs.
module.exports = '/__open-stack-frame-in... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/WebpackDevServerUtils.js | packages/react-dev-utils/WebpackDevServerUtils.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const address = require('address');
const fs = require('fs');
const path = require('path');
const url = require('url');
co... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/getCSSModuleLocalIdent.js | packages/react-dev-utils/getCSSModuleLocalIdent.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const loaderUtils = require('loader-utils');
const path = require('path');
module.exports = function getLocalIdent(
co... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/chalk.js | packages/react-dev-utils/chalk.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var chalk = require('chalk');
module.exports = chalk;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/checkRequiredFiles.js | packages/react-dev-utils/checkRequiredFiles.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
function checkRequiredFiles(files) {
... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/redirectServedPathMiddleware.js | packages/react-dev-utils/redirectServedPathMiddleware.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
module.exports = function createRedirectServedPathMiddleware(servedPath) {
// remove end ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/ModuleScopePlugin.js | packages/react-dev-utils/ModuleScopePlugin.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('chalk');
const path = require('path');
const os = require('os');
class ModuleScopePlugin {
cons... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/eslintFormatter.js | packages/react-dev-utils/eslintFormatter.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
const chalk = require('chalk');
const stripAnsi = require('strip-ansi');
const table = requ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/InterpolateHtmlPlugin.js | packages/react-dev-utils/InterpolateHtmlPlugin.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// This webpack plugin lets us interpolate custom variables into `index.html`.
// Usage: `new InterpolateHtmlPlugin(HtmlWebpackPlugin, {... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/openBrowser.js | packages/react-dev-utils/openBrowser.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var chalk = require('chalk');
var execSync = require('child_process').execSync;
var spawn = require('cross-spawn');
var o... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/printHostingInstructions.js | packages/react-dev-utils/printHostingInstructions.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('chalk');
const url = require('url');
const globalModules = require('global-modules');
const fs = r... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/webpackHotDevClient.js | packages/react-dev-utils/webpackHotDevClient.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// This alternative WebpackDevServer combines the functionality of:
// https://github.com/webpack/webpack-dev-server/blob... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/FileSizeReporter.js | packages/react-dev-utils/FileSizeReporter.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
var filesize = require('filesize');
var... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/errorOverlayMiddleware.js | packages/react-dev-utils/errorOverlayMiddleware.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const launchEditor = require('./launchEditor');
const launchEditorEndpoint = require('./launchEditorEndpoint');
module.ex... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/ignoredFiles.js | packages/react-dev-utils/ignoredFiles.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
const escape = require('escape-string-regexp');
module.exports = function ignoredFiles(app... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/noopServiceWorkerMiddleware.js | packages/react-dev-utils/noopServiceWorkerMiddleware.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
module.exports = function createNoopServiceWorkerMiddleware(servedPath) {
return functio... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/browsersHelper.js | packages/react-dev-utils/browsersHelper.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const browserslist = require('browserslist');
const chalk = require('chalk');
const os = require('os');
const prompts = re... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/evalSourceMapMiddleware.js | packages/react-dev-utils/evalSourceMapMiddleware.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
function base64SourceMap(source) {
const base64 = Buffer.from(JSON.stringify(source.map()), 'utf8').toString(
'base6... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/printBuildError.js | packages/react-dev-utils/printBuildError.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('chalk');
module.exports = function printBuildError(err) {
const message = err != null && err.me... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/InlineChunkHtmlPlugin.js | packages/react-dev-utils/InlineChunkHtmlPlugin.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
class InlineChunkHtmlPlugin {
constructor(htmlWebpackPlugin, tests) {
this.htmlWebpackPlugin = htmlWebpackPlugin;
... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/ModuleNotFoundPlugin.js | packages/react-dev-utils/ModuleNotFoundPlugin.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('chalk');
const findUp = require('find-up');
const path = require('path');
class ModuleNotFoundPlu... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/refreshOverlayInterop.js | packages/react-dev-utils/refreshOverlayInterop.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
const {
dismissRuntimeErrors,
reportRuntimeError,
} = require('react... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/immer.js | packages/react-dev-utils/immer.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var immer = require('immer');
module.exports = immer;
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/ForkTsCheckerWebpackPlugin.js | packages/react-dev-utils/ForkTsCheckerWebpackPlugin.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = ForkTsCheckerWebpackPlugin;... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/__tests__/getPublicUrlOrPath.test.js | packages/react-dev-utils/__tests__/getPublicUrlOrPath.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const getPublicUrlOrPath = require('../getPublicUrlOrPath');
const tests = [
// DEVELOPMENT with homepage
{ dev: tru... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/__tests__/ignoredFiles.test.js | packages/react-dev-utils/__tests__/ignoredFiles.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const ignoredFiles = require('../ignoredFiles');
describe('ignore watch files regex', () => {
it('normal file', () => ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-dev-utils/__tests__/getCSSModuleLocalIdent.test.js | packages/react-dev-utils/__tests__/getCSSModuleLocalIdent.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const getCSSModuleLocalIdent = require('../getCSSModuleLocalIdent');
const rootContext = '/path';
const defaultClassName... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/index.js | packages/babel-preset-react-app/index.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const create = require('./create');
module.exports = function (api, opts) {
// This is similar to how `env` works in Ba... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/test.js | packages/babel-preset-react-app/test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const create = require('./create');
module.exports = function (api, opts) {
return create(api, Object.assign({ helpers:... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/dependencies.js | packages/babel-preset-react-app/dependencies.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
const validateBoolOption = (name, value, defaultValue) => {
if (typeof value === 'undefin... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/create.js | packages/babel-preset-react-app/create.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const path = require('path');
const validateBoolOption = (name, value, defaultValue) => {
if (typeof value === 'undefin... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/prod.js | packages/babel-preset-react-app/prod.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const create = require('./create');
module.exports = function (api, opts) {
return create(api, Object.assign({ helpers:... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/dev.js | packages/babel-preset-react-app/dev.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const create = require('./create');
module.exports = function (api, opts) {
return create(api, Object.assign({ helpers:... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/babel-preset-react-app/webpack-overrides.js | packages/babel-preset-react-app/webpack-overrides.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const crypto = require('crypto');
const macroCheck = new RegExp('[./]macro');
module.exports = function () {
return {
... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-app-polyfill/ie9.js | packages/react-app-polyfill/ie9.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
require('./ie11');
// React 16+ relies on Map, Set, and requestAnimationFrame
require('core-js/features/map');
require('c... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-app-polyfill/ie11.js | packages/react-app-polyfill/ie11.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (typeof Promise === 'undefined') {
// Rejection tracking prevents a common issue where React gets into an
// incons... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-app-polyfill/jsdom.js | packages/react-app-polyfill/jsdom.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// Make sure we're in a Browser-like environment before importing polyfills
// This prevents `fetch()` from being imported... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-app-polyfill/stable.js | packages/react-app-polyfill/stable.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// Polyfill stable language features.
// It's recommended to use @babel/preset-env and browserslist
// to only include the... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/create-react-app/index.js | packages/create-react-app/index.js | #!/usr/bin/env node
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/create-react-app/createReactApp.js | packages/create-react-app/createReactApp.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// /!\ DO NOT MODIFY THIS FILE /!\
// ~~~~~~~~~~~~~~~~... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | true |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/create-react-app/__tests__/getTemplateInstallPackage.test.js | packages/create-react-app/__tests__/getTemplateInstallPackage.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const { getTemplateInstallPackage } = require('../createReactApp');
describe('getTemplateInstallPackage', () => {
it('... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/start.js | packages/react-scripts/scripts/start.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
// Do this as the first thing so that any code reading it knows the righ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/test.js | packages/react-scripts/scripts/test.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
// Do this as the first thing so that any code reading it knows the righ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/build.js | packages/react-scripts/scripts/build.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
// Do this as the first thing so that any code reading it knows the righ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/eject.js | packages/react-scripts/scripts/eject.js | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the fu... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/init.js | packages/react-scripts/scripts/init.js | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the fu... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/utils/createJestConfig.js | packages/react-scripts/scripts/utils/createJestConfig.js | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const fs = require('fs');
const chalk = require('react-dev-utils/chalk');
const paths = require('... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js | packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('react-dev-utils/chalk');
const fs = require('fs');
const resolve = requir... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/jest.integration.config.js | packages/react-scripts/fixtures/kitchensink/template/jest.integration.config.js | 'use strict';
module.exports = {
testEnvironment: 'node',
testMatch: ['**/integration/*.test.js'],
transform: { '^.+\\.js$': './jest.transform.js' },
};
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/jest.transform.js | packages/react-scripts/fixtures/kitchensink/template/jest.transform.js | 'use strict';
const babelOptions = { presets: ['react-app'] };
const babelJest = require('babel-jest').default;
module.exports = babelJest.createTransformer(babelOptions);
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/integration/webpack.test.js | packages/react-scripts/fixtures/kitchensink/template/integration/webpack.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import initDOM, { fetchFile } from './initDOM';
import url from 'url';
const matchCSS = (doc, regexes) => {
if (process.env.E2E_FILE)... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/integration/syntax.test.js | packages/react-scripts/fixtures/kitchensink/template/integration/syntax.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import initDOM from './initDOM';
describe('Integration', () => {
describe('Language syntax', () => {
let doc;
afterEach(() =... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/integration/env.test.js | packages/react-scripts/fixtures/kitchensink/template/integration/env.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import initDOM from './initDOM';
describe('Integration', () => {
describe('Environment variables', () => {
let doc;
afterEac... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/integration/config.test.js | packages/react-scripts/fixtures/kitchensink/template/integration/config.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import initDOM from './initDOM';
describe('Integration', () => {
describe('jsconfig.json/tsconfig.json', () => {
let doc;
af... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/integration/initDOM.js | packages/react-scripts/fixtures/kitchensink/template/integration/initDOM.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const fs = require('fs');
const { JSDOM, ResourceLoader } = require('jsdom');
const path = require('path');
const url = require('url');
... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/absoluteLoad.js | packages/react-scripts/fixtures/kitchensink/template/src/absoluteLoad.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const absoluteLoad = () => [
{ id: 1, name: '1' },
{ id: 2, name: '2' },
{ id: 3, name: '3' },
{ id: 4, name: '4' },
];
export ... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/index.js | packages/react-scripts/fixtures/kitchensink/template/src/index.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import App from './App';
import ReactDOMClient from 'react-dom/client';
ReactDOMClient.createRoot(document.g... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/App.js | packages/react-scripts/fixtures/kitchensink/template/src/App.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component, createElement } from 'react';
import PropTypes from 'prop-types';
class BuiltEmitter extends Component {
s... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/subfolder/lol.js | packages/react-scripts/fixtures/kitchensink/template/src/subfolder/lol.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = function () {
return `haha`;
};
| javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/features/env/FileEnvVariables.test.js | packages/react-scripts/fixtures/kitchensink/template/src/features/env/FileEnvVariables.test.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import FileEnvVariables from './FileEnvVariables';
import ReactDOMClient from 'react-dom/client';
import { fl... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/features/env/PublicUrl.js | packages/react-scripts/fixtures/kitchensink/template/src/features/env/PublicUrl.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
const PublicUrl = () => (
<span id="feature-public-url">{process.env.PUBLIC_URL}.</span>
);
export defaul... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/features/env/ShellEnvVariables.js | packages/react-scripts/fixtures/kitchensink/template/src/features/env/ShellEnvVariables.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
const ShellEnvVariables = () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
facebook/create-react-app | https://github.com/facebook/create-react-app/blob/6254386531d263688ccfa542d0e628fbc0de0b28/packages/react-scripts/fixtures/kitchensink/template/src/features/env/ExpandEnvVariables.js | packages/react-scripts/fixtures/kitchensink/template/src/features/env/ExpandEnvVariables.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
const ExpandEnvVariables = () => (
<span>
<span id="feature-expand-env-1">{process.env.REACT_APP_BASIC... | javascript | MIT | 6254386531d263688ccfa542d0e628fbc0de0b28 | 2026-01-04T14:56:49.538607Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.