Skip to content

Commit

Permalink
MPL-2.0 license all the files (#1679)
Browse files Browse the repository at this point in the history
* remove some unnecessary stuff from .gitignore

* first pass at config

* stick that license on there!

* Bot commit: format with prettier

* check license header in CI

* try automatically fixing the license in CI

* Revert "try automatically fixing the license in CI"

62cd005

* Update app/components/NoLicense.tsx

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix stray space, try again with test file

* I thought it made suggestion comments

* Update app/components/NoLicense2.tsx

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* delete test files

* run prettier, fine

* add comment to workflow yaml about how to run license check locally

* update header on incorporated MIT-licensed work

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
david-crespo and github-actions[bot] authored Jul 19, 2023
1 parent 66d398e commit 20b3645
Show file tree
Hide file tree
Showing 564 changed files with 4,407 additions and 17 deletions.
8 changes: 8 additions & 0 deletions .figmaexportrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright Oxide Computer Company
*/

// @ts-check

const { pascalCase } = require('@figma-export/utils')
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To run this check locally, install SkyWalking Eyes somehow
# (https://github.com/apache/skywalking-eyes). On macOS you can `brew install
# license-eye` and run `license-eye header check` or `license-eye header fix`.

name: license-check
on: pull_request
jobs:
license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check License Header
uses: apache/skywalking-eyes/header@5dfa68f93380a5e57259faaf95088b7f133b5778
14 changes: 0 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
/build

# dependencies
/node_modules

# IDEs and editors
Expand All @@ -26,12 +18,6 @@
!.vscode/extensions.json
!.vscode/css.json

# misc
/.sass-cache
/connect.lock
/coverage
*.log
/typings
.env
.eslintcache

Expand Down
23 changes: 23 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
header:
license:
spdx-id: MPL-2.0
content: |
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, you can obtain one at https://mozilla.org/MPL/2.0/.
Copyright Oxide Computer Company
paths:
- '**/*.{ts,tsx,css,html,js,sh}'

paths-ignore:
- 'dist'
- '**/*.md'
- 'LICENSE'
- 'OMICRON_VERSION'
- '.ladle'
- '.husky'
- 'mockServiceWorker.js'

comment: on-failure
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright Oxide Computer Company
*/

const twPlugin = require('prettier-plugin-tailwindcss')
const importsPlugin = require('@trivago/prettier-plugin-sort-imports')

Expand Down
Loading

0 comments on commit 20b3645

Please sign in to comment.