Skip to content

Commit

Permalink
#45@major: Lerna is used for managing multiple packages within a sing…
Browse files Browse the repository at this point in the history
…le repo. Support for React and Angular. Full support for querySelector() and querySelectorAll().
  • Loading branch information
capricorn86 committed Oct 4, 2020
1 parent a29b3fe commit fea5cef
Show file tree
Hide file tree
Showing 192 changed files with 39,105 additions and 8,512 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
root = true

# Indentation override for all JS under lib directory
[{**.js,**.ts,**.json}]
indent_style = tab
[{**.js,**.json}]
indent_style = tab
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The star (*) means that it matches all files.
* [email protected]
34 changes: 34 additions & 0 deletions .github/workflows/build-commit.yml
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
79 changes: 79 additions & 0 deletions .github/workflows/release.yml
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
6 changes: 5 additions & 1 deletion .gitignore
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
6 changes: 6 additions & 0 deletions .huskyrc.json
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%"
}
}
Loading

0 comments on commit fea5cef

Please sign in to comment.