Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copyright headers to more files #3

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading