-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Related Issue:** #6532 ## Summary Transitions to a monorepo using Turbo Repo. The existing files are moved to `packages/calcite-components` and `calcite-components-react` is added to the repo. For more information see: https://github.com/Esri/calcite-components/wiki/Monorepo
- Loading branch information
Showing
2,740 changed files
with
49,012 additions
and
29,739 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
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,40 @@ | ||
name: Deploy Latest | ||
on: | ||
push: | ||
branches: [master] | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
command: manifest | ||
token: ${{ secrets.ADMIN_TOKEN }} | ||
default-branch: master | ||
extra-files: | | ||
packages/calcite-components/readme.md | ||
- name: Checkout Repository | ||
if: ${{ steps.release.outputs.releases_created }} | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.ADMIN_TOKEN }} | ||
ref: release-please | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Build Packages | ||
if: ${{ steps.release.outputs.releases_created }} | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Publish to NPM | ||
if: ${{ steps.release.outputs.releases_created }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
run: npm run publish:latest |
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,31 @@ | ||
on: | ||
push: | ||
branches: | ||
- release-please--branches--master | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
name: clean-changelog | ||
jobs: | ||
clean-changelog: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.ADMIN_TOKEN }} | ||
fetch-depth: 0 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Remove Next Changelog Entries | ||
run: | | ||
npm install | ||
npm run util:remove-next-changelog-entries | ||
- name: Push Changes | ||
run: | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git commit -am "docs: remove prerelease changelog entries" || true | ||
git push origin ${{ github.ref_name }} |
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 |
---|---|---|
@@ -1,37 +1,40 @@ | ||
# Directories | ||
dist/ | ||
www/ | ||
hydrate/ | ||
node_modules/ | ||
docs/ | ||
|
||
# Compiled files | ||
src/**/components.d.ts | ||
src/**/*.js | ||
__docs-temp__/* | ||
|
||
# User Settings, Caches & Temp Files | ||
*~ | ||
*.sw[mnpcod] | ||
*.log | ||
$RECYCLE.BIN/ | ||
*.bak | ||
*.d.ts | ||
*.lock | ||
*.tmp | ||
*.tmp.* | ||
*.log | ||
*.orig | ||
*.pem | ||
*.sublime-project | ||
*.sublime-workspace | ||
*.bak | ||
*.orig | ||
.stencil/ | ||
*.sw[mnpcod] | ||
*.tmp | ||
*.tmp.* | ||
*_BACKUP_* | ||
*_BASE_* | ||
*_LOCAL_* | ||
*_REMOTE_* | ||
*~ | ||
.*cache* | ||
.DS_Store | ||
.DS_Store | ||
.Spotlight-V100 | ||
.Trashes | ||
._* | ||
.env | ||
.idea/ | ||
.sass-cache/ | ||
.stencil/ | ||
.turbo | ||
.versions/ | ||
.DS_Store | ||
.env | ||
$RECYCLE.BIN/ | ||
Dockerfile | ||
Thumbs.db | ||
UserInterfaceState.xcuserstate | ||
Dockerfile | ||
dist/ | ||
ehthumbs.db | ||
log.txt | ||
src/components.d.ts | ||
src/components/icon/assets | ||
src/components/*/assets/*/t9n/index.d.ts | ||
logs | ||
node_modules/ | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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 |
---|---|---|
@@ -1,19 +1,14 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
# from https://riptutorial.com/git/example/16164/pre-push | ||
|
||
protected_branch="master" | ||
current_branch=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
if [ "$protected_branch" = "$current_branch" ] && bash -c ': >/dev/tty' | ||
then | ||
read -p "You're about to push master, is that what you intended? [y|n] " -n 1 -r < /dev/tty | ||
if [ "$protected_branch" = "$current_branch" ] && bash -c ': >/dev/tty'; then | ||
read -p "You're about to push main, is that what you intended? [y|n] " -n 1 -r </dev/tty | ||
echo | ||
if echo "$REPLY" | grep -E "^[Yy]$" > /dev/null | ||
then | ||
if echo "$REPLY" | grep -E "^[Yy]$" >/dev/null; then | ||
exit 0 | ||
fi | ||
exit 1 | ||
else | ||
npm run util:check-squash-mergeable-branch | ||
exit | ||
fi | ||
fi |
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,19 @@ | ||
module.exports = { | ||
"*.{json,html,yml}": [ | ||
"prettier --write" | ||
], | ||
"*.scss": [ | ||
"stylelint --fix", | ||
"prettier --write" | ||
], | ||
"packages/**/*.{ts,tsx}": [ | ||
// prevents an error due to tsconfig.json not being in the root directory | ||
// https://github.com/okonet/lint-staged/issues/825#issuecomment-620018284 | ||
() => "eslint --ext .ts,.tsx --fix", | ||
"prettier --write" | ||
], | ||
"*.md": [ | ||
"markdownlint --fix --disable MD024 MD013 MD041 MD033", | ||
"prettier --write" | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
save-exact=true | ||
access=public |
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,4 @@ | ||
{ | ||
"packages/calcite-components": "1.4.2", | ||
"packages/calcite-components-react": "1.4.2" | ||
} |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"useWorkspaces": true, | ||
"version": "independent", | ||
"changelogPreset": "conventionalcommits", | ||
"command": { | ||
"version": { | ||
"conventionalCommits": true | ||
} | ||
} | ||
} |
Oops, something went wrong.