Skip to content

Commit

Permalink
Merge remote-tracking branch 'shared/main' into merge-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
soundofspace committed Sep 13, 2024
2 parents 9d8b098 + e4aae0d commit c7f9f81
Show file tree
Hide file tree
Showing 109 changed files with 162,366 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.eslintrc.js
*.config.js
tsconfig*.json
3 changes: 3 additions & 0 deletions shared/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { monorepo } = require('@ulixee/repo-tools/eslint');

module.exports = monorepo(__dirname);
3 changes: 3 additions & 0 deletions shared/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: ulixee
34 changes: 34 additions & 0 deletions shared/.github/workflows/js-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Publish a built Javascript Branch'

on:
push:
branches: [main]
workflow_dispatch:

jobs:
build:
name: Build Javascript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn

- name: Build modules
run: yarn && yarn build:dist --network-timeout 1000000

- name: Publish branch
run: |
cd build-dist
git config --global user.email "[email protected]"
git config --global user.name "CI"
git init -b main
git add -A
git commit -m 'Auto-build Javascript files'
git push -f https://ulixee:${{ env.GH_TOKEN }}@github.com/ulixee/shared.git main:${{ github.ref_name }}-built-js
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 40 additions & 0 deletions shared/.github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Matrix

on:
push:
branches:
- '*'
workflow_dispatch:

jobs:
lint-and-test:
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node-version: [18, 20]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Yarn build
run: yarn build

- name: Run Lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 18 }}
run: NODE_OPTIONS=--max-old-space-size=4096 yarn lint

- name: Run tests
run: yarn test
12 changes: 12 additions & 0 deletions shared/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
*yarn-error.log
npm-debug.log
lerna-debug.log
.DS_Store

.idea/
.history/

build
build-dist
/.eslintcache
1 change: 1 addition & 0 deletions shared/.husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --edit $1
1 change: 1 addition & 0 deletions shared/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
1 change: 1 addition & 0 deletions shared/.husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn test
4 changes: 4 additions & 0 deletions shared/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.eslint*
.gitignore
package.build.json
tsconfig*
1 change: 1 addition & 0 deletions shared/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
7 changes: 7 additions & 0 deletions shared/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"arrowParens": "avoid"
}
Binary file added shared/.yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit c7f9f81

Please sign in to comment.