-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into feature/modern-template
- Loading branch information
Showing
588 changed files
with
6,371 additions
and
8,721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ storybook-static/ | |
.yarn/ | ||
project/ | ||
*.d.ts | ||
packages/outline-cli/ | ||
packages/tools/outline-cli/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
|
||
if [ "$LEFTHOOK" = "0" ]; then | ||
exit 0 | ||
fi | ||
|
||
call_lefthook() | ||
{ | ||
dir="$(git rev-parse --show-toplevel)" | ||
osArch=$(uname | tr '[:upper:]' '[:lower:]') | ||
cpuArch=$(uname -m | sed 's/aarch64/arm64/') | ||
|
||
if lefthook -h >/dev/null 2>&1 | ||
then | ||
lefthook "$@" | ||
elif test -f "$dir/node_modules/lefthook/bin/index.js" | ||
then | ||
"$dir/node_modules/lefthook/bin/index.js" "$@" | ||
elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook_${osArch}_${cpuArch}/lefthook" | ||
then | ||
"$dir/node_modules/@evilmartians/lefthook/bin/lefthook_${osArch}_${cpuArch}/lefthook" "$@" | ||
elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook" | ||
then | ||
"$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook" "$@" | ||
elif bundle exec lefthook -h >/dev/null 2>&1 | ||
then | ||
bundle exec lefthook "$@" | ||
elif yarn lefthook -h >/dev/null 2>&1 | ||
then | ||
yarn lefthook "$@" | ||
elif pnpm lefthook -h >/dev/null 2>&1 | ||
then | ||
pnpm lefthook "$@" | ||
elif command -v npx >/dev/null 2>&1 | ||
then | ||
npx @evilmartians/lefthook "$@" | ||
elif swift package plugin lefthook >/dev/null 2>&1 | ||
then | ||
swift package --disable-sandbox plugin lefthook "$@" | ||
else | ||
echo "Can't find lefthook in PATH" | ||
fi | ||
} | ||
|
||
call_lefthook run "prepare-commit-msg" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# EXAMPLE USAGE: | ||
# | ||
# Refer for explanation to following link: | ||
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md | ||
# | ||
# pre-push: | ||
# commands: | ||
# packages-audit: | ||
# tags: frontend security | ||
# run: yarn audit | ||
# | ||
pre-commit: | ||
parallel: true | ||
commands: | ||
eslint: | ||
glob: '*.{js,ts,jsx,tsx,mdx,cjs,mjs}' | ||
run: yarn eslint {staged_files} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Packages | ||
|
||
> The `packages` directory is setup in an organized fashion to help organize more efficient package releases. | ||
## Notes on directory structure | ||
|
||
The following describes how packages are organized. | ||
This is open for adjustment based on future needs. | ||
|
||
- Primary `outline-core-*` component packages live at the root of `packages/components`. | ||
- Dated packages to `packages/components/@deprecated`. | ||
- These packages are either completely deprecated or in need of an update for 2023 to our new `outline-core-*` format, and pass audits for a11y, and ensuring alignment with the (currently internal) Design Starter Kit. | ||
- Controller packages live in `packages/controllers`. | ||
- Deprecated controllers live in `packages/controllers/@deprecated`. | ||
- Documentation related packages and components live in `packages/documentation`. | ||
- Tooling related packages live in `packages/tools`. | ||
|
||
## `yarn` workspaces | ||
|
||
Yarn workspaces are a feature of [Yarn](https://yarnpkg.com/) that allows you to manage multiple packages within a single top-level, root package. It provides a convenient way to work on interdependent packages, making it easier to develop and test changes across multiple packages simultaneously. For more information, you can refer to the [Yarn workspaces documentation](https://yarnpkg.com/features/workspaces). | ||
|
||
To define the workspaces in your project, you can use the `workspaces` field in your `package.json` file. This field should be an array of glob patterns that specify the directories containing your packages. | ||
|
||
Here is an example of how the current workspaces are set up: | ||
|
||
```json | ||
"workspaces": [ | ||
"./packages/*", | ||
"./packages/components/*", | ||
"./packages/components/@deprecated/*", | ||
"./packages/documentation/*", | ||
"./packages/controllers/*", | ||
"./packages/controllers/@deprecated/*", | ||
"./packages/tools/*" | ||
], | ||
``` |
9 changes: 9 additions & 0 deletions
9
packages/outline-accordion/CHANGELOG.md → ...deprecated/outline-accordion/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
packages/components/@deprecated/outline-accordion/tsconfig.build.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"outDir": "./dist" | ||
}, | ||
"include": ["index.ts", "src/**/*", "tests/**/*"], | ||
"references": [{ "path": "../../../outline-core/tsconfig.build.json" }] | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/outline-admin-links/CHANGELOG.md → ...precated/outline-admin-links/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.