-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#45@major: Lerna is used for managing multiple packages within a sing…
…le repo. Support for React and Angular. Full support for querySelector() and querySelectorAll().
- Loading branch information
1 parent
a29b3fe
commit fea5cef
Showing
192 changed files
with
39,105 additions
and
8,512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# The star (*) means that it matches all files. | ||
* [email protected] |
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,34 @@ | ||
name: Build commit | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14] | ||
outputs: | ||
sha_short: ${{ steps.vars.outputs.sha_short }}} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./packages/*/npm-shrinkwrap.json') }}-${{ hashFiles('./npm-shrinkwrap.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- run: npm ci --ignore-scripts | ||
- run: npm run bootstrap-ci | ||
- run: npm run validate-commit-messages | ||
- run: npm run lint | ||
- run: npm run test |
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,79 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
check-next-version: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14] | ||
outputs: | ||
next_version: ${{ steps.versionCheck.outputs.next_version }} | ||
latest_version: ${{ steps.versionCheck.outputs.latest_version }} | ||
release_notes: ${{ steps.versionCheck.outputs.release_notes }} | ||
user_email: ${{ steps.versionCheck.outputs.user_email }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci --ignore-scripts | ||
- id: versionCheck | ||
run: | | ||
echo "::set-output name=next_version::$(npm run print-next-version --silent)" | ||
echo "::set-output name=latest_version::$(npm run print-latest-version --silent)" | ||
echo "::set-output name=release_notes::$(npm run print-release-notes --silent)" | ||
echo "::set-output name=user_email::$(git log --format='%ae' HEAD^!)" | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: check-next-version | ||
if: ${{ needs.check-next-version.outputs.next_version != needs.check-next-version.outputs.latest_version }} | ||
strategy: | ||
matrix: | ||
node-version: [14] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci --ignore-scripts | ||
- run: npm run bootstrap-ci | ||
- run: npm run compile | ||
- name: Checks if we have changed something | ||
run: npm run lerna-changed | ||
- run: git checkout -b release/${{ needs.check-next-version.outputs.next_version }} origin/master | ||
- run: git push origin release/${{ needs.check-next-version.outputs.next_version }} | ||
- run: git config --global user.name "${GITHUB_ACTOR}" | ||
- run: git config --global user.email "${{ needs.check-next-version.outputs.user_email }}" | ||
- run: npm run version -- "${{needs.check-next-version.outputs.next_version }}" | ||
- name: Set .npmrc for publish | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ./.npmrc | ||
- run: npm whoami | ||
- run: npm run publish | ||
create-release: | ||
runs-on: ubuntu-latest | ||
needs: [publish, check-next-version] | ||
strategy: | ||
matrix: | ||
node-version: [14] | ||
steps: | ||
uses: actions/checkout@v2 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ needs.check-next-version.outputs.next_version }} | ||
release_name: v${{ needs.check-next-version.outputs.next_version }} | ||
body: ${{ needs.check-next-version.outputs.release_notes }} | ||
draft: false | ||
prerelease: false |
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,3 +1,7 @@ | ||
node_modules | ||
tmp | ||
lib | ||
dist.zip | ||
kompis.code-workspace | ||
lerna-debug.log | ||
.vscode | ||
.idea |
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,6 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "npm run lint:changed", | ||
"commit-msg": "node ./bin/husky-commit-message.js --filepath=$HUSKY_GIT_PARAMS%HUSKY_GIT_PARAMS%" | ||
} | ||
} |
Oops, something went wrong.