Skip to content

Commit

Permalink
Merge pull request #3 from facebook/copyright-more
Browse files Browse the repository at this point in the history
Add copyright headers to more files
  • Loading branch information
nmn authored Nov 17, 2023
2 parents 73759e9 + 90586b8 commit 433bef5
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 2 deletions.
7 changes: 7 additions & 0 deletions apps/nextjs-example/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @type {import('next').NextConfig} */
const stylexPlugin = require('@stylexjs/nextjs-plugin');
const babelrc = require('./.babelrc.js');
Expand Down
8 changes: 8 additions & 0 deletions apps/nextjs-example/typetests/test1.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

/* eslint-disable no-unused-vars */

import stylex from '@stylexjs/stylex';
Expand Down
8 changes: 8 additions & 0 deletions apps/nextjs-example/typetests/test2.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

/* eslint-disable no-unused-vars */

import stylex from '@stylexjs/stylex';
Expand Down
8 changes: 8 additions & 0 deletions apps/nextjs-example/typetests/test3.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

/* eslint-disable no-unused-vars */

import stylex from '@stylexjs/stylex';
Expand Down
8 changes: 8 additions & 0 deletions apps/nextjs-example/typetests/test4.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

/* eslint-disable no-unused-vars */

import stylex from '@stylexjs/stylex';
Expand Down
7 changes: 7 additions & 0 deletions apps/nextjs-example/typetests/typetests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import stylex from '@stylexjs/stylex';
import type {
StaticStyles,
Expand Down
7 changes: 7 additions & 0 deletions packages/nextjs-plugin/src/custom-webpack-loader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const PLUGIN_NAME = 'stylex';

module.exports = function stylexLoader(inputCode) {
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

const WebpackPluginStylex = require('./custom-webpack-plugin');

let count = 0;
Expand Down
7 changes: 7 additions & 0 deletions packages/open-props/.babelrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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/preset-flow'],
};
7 changes: 7 additions & 0 deletions packages/scripts/gen-types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env node

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const fsPromises = require('fs/promises');
const monorepoPackage = require('../../package.json');
const path = require('path');
Expand Down
7 changes: 7 additions & 0 deletions packages/scripts/handle-flow-modules.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const fsPromises = require('fs/promises');
const path = require('path');

Expand Down
10 changes: 9 additions & 1 deletion packages/scripts/rewrite-imports.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env node
// @flow

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

const fs = require('fs').promises;
const path = require('path');
Expand Down

0 comments on commit 433bef5

Please sign in to comment.