diff --git a/v2/.eslintrc.js b/v2/.eslintrc.js index 2d8ce0fadb..5d7711c808 100644 --- a/v2/.eslintrc.js +++ b/v2/.eslintrc.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + const OFF = 0; const WARNING = 1; const ERROR = 2; diff --git a/v2/babel.config.js b/v2/babel.config.js index 0463bc9131..8d9313c391 100644 --- a/v2/babel.config.js +++ b/v2/babel.config.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + module.exports = { presets: ['@babel/env', '@babel/react'], }; diff --git a/v2/bin/docusaurus.js b/v2/bin/docusaurus.js index ea7fc3ef50..49d68f0032 100644 --- a/v2/bin/docusaurus.js +++ b/v2/bin/docusaurus.js @@ -1,5 +1,12 @@ #!/usr/bin/env node +/** + * 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. + */ + const chalk = require('chalk'); const semver = require('semver'); const path = require('path'); diff --git a/v2/jest.transform.js b/v2/jest.transform.js index 53f44714ea..007fdfb91b 100644 --- a/v2/jest.transform.js +++ b/v2/jest.transform.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + const babelConfig = require('./babel.config'); module.exports = require('babel-jest').createTransformer(babelConfig); diff --git a/v2/lib/commands/build.js b/v2/lib/commands/build.js index dcc907e63f..6a02b37f07 100644 --- a/v2/lib/commands/build.js +++ b/v2/lib/commands/build.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + const webpack = require('webpack'); const path = require('path'); const chalk = require('chalk'); diff --git a/v2/lib/commands/deploy.js b/v2/lib/commands/deploy.js index ba2d3851c8..384937cdba 100644 --- a/v2/lib/commands/deploy.js +++ b/v2/lib/commands/deploy.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + const path = require('path'); const shell = require('shelljs'); const fs = require('fs-extra'); diff --git a/v2/lib/commands/eject.js b/v2/lib/commands/eject.js index 3914d2bd78..9c8581d949 100644 --- a/v2/lib/commands/eject.js +++ b/v2/lib/commands/eject.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + const fs = require('fs-extra'); const chalk = require('chalk'); const path = require('path'); diff --git a/v2/lib/commands/init.js b/v2/lib/commands/init.js index cdc13aca82..cb5bed2b94 100644 --- a/v2/lib/commands/init.js +++ b/v2/lib/commands/init.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + module.exports = async function init(projectDir, cliOptions = {}) { console.log('Init command invoked ...'); console.log(projectDir); diff --git a/v2/lib/commands/start.js b/v2/lib/commands/start.js index b21700ea1b..080b9d31eb 100644 --- a/v2/lib/commands/start.js +++ b/v2/lib/commands/start.js @@ -1,3 +1,10 @@ +/** + * 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. + */ + const path = require('path'); const fs = require('fs-extra'); const chalk = require('chalk'); diff --git a/v2/lib/core/App.js b/v2/lib/core/App.js index 272024b653..86f60d7151 100644 --- a/v2/lib/core/App.js +++ b/v2/lib/core/App.js @@ -1,3 +1,10 @@ +/** + * 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 {renderRoutes} from 'react-router-config'; import routes from '@generated/routes'; // eslint-disable-line diff --git a/v2/lib/core/clientEntry.js b/v2/lib/core/clientEntry.js index 339d29b3ef..001eaea047 100644 --- a/v2/lib/core/clientEntry.js +++ b/v2/lib/core/clientEntry.js @@ -1,3 +1,10 @@ +/** + * 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 Loadable from 'react-loadable'; import {BrowserRouter} from 'react-router-dom'; diff --git a/v2/lib/core/devTemplate.ejs b/v2/lib/core/devTemplate.ejs index 40db60cae3..2857217403 100644 --- a/v2/lib/core/devTemplate.ejs +++ b/v2/lib/core/devTemplate.ejs @@ -9,4 +9,4 @@