Skip to content

Commit 95baa9d

Browse files
Merge pull request #31 from Shopify/kos/create_mono_repo_use_loom
Create mono repo using @shopify/loom
2 parents 4ef29f5 + 62c2c31 commit 95baa9d

File tree

141 files changed

+6147
-1498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+6147
-1498
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [],
11+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
12+
"updateInternalDependents": "always"
13+
}
14+
}

.changeset/orange-cooks-compare.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@shopify/shopify-app-session-storage': major
3+
'@shopify/shopify-app-session-storage-memory': major
4+
'@shopify/shopify-app-session-storage-mongodb': major
5+
'@shopify/shopify-app-session-storage-mysql': major
6+
'@shopify/shopify-app-session-storage-postgresql': major
7+
'@shopify/shopify-app-session-storage-redis': major
8+
'@shopify/shopify-app-session-storage-sqlite': major
9+
'@shopify/shopify-app-express': patch
10+
---
11+
12+
Test use of changesets for release candidates

.changeset/pre.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"mode": "pre",
3+
"tag": "rc",
4+
"initialVersions": {
5+
"@shopify/shopify-app-express": "1.0.0-rc.5",
6+
"@shopify/shopify-app-session-storage": "0.0.0",
7+
"@shopify/shopify-app-session-storage-memory": "0.0.0",
8+
"@shopify/shopify-app-session-storage-mongodb": "0.0.0",
9+
"@shopify/shopify-app-session-storage-mysql": "0.0.0",
10+
"@shopify/shopify-app-session-storage-postgresql": "0.0.0",
11+
"@shopify/shopify-app-session-storage-redis": "0.0.0",
12+
"@shopify/shopify-app-session-storage-sqlite": "0.0.0",
13+
"@shopify/shopify-app-session-storage-test-utils": "0.0.0"
14+
},
15+
"changesets": []
16+
}

.changeset/stale-maps-wave.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.eslintrc.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
es2021: true,
55
},
66
extends: ['plugin:@shopify/typescript', 'plugin:@shopify/prettier'],
7-
ignorePatterns: ['dist/'],
7+
ignorePatterns: ['build/', 'tmp/'],
88
rules: {
99
'import/no-named-as-default': 0,
1010
'no-mixed-operators': 0,
@@ -13,4 +13,18 @@ module.exports = {
1313
'import/no-cycle': 0,
1414
'@typescript-eslint/naming-convention': 0,
1515
},
16+
overrides: [
17+
{
18+
files: ['packages/*/loom.config.ts', 'tests/setup/setup-jest.ts'],
19+
rules: {
20+
'import/no-extraneous-dependencies': 0,
21+
},
22+
},
23+
{
24+
files: ['**/.eslintrc.js'],
25+
rules: {
26+
'no-undef': 'off',
27+
},
28+
},
29+
],
1630
};

.github/workflows/changelog.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Changelog
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
- unlabeled
8+
- opened
9+
- synchronize
10+
- reopened
11+
12+
jobs:
13+
check:
14+
if: |
15+
!contains(github.event.pull_request.head.ref, 'changeset-release') &&
16+
!contains(github.event.pull_request.labels.*.name, 'Skip Changelog')
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout branch
20+
uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Node with v16.13.0
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 16.13.0
28+
29+
- name: Check for Changeset
30+
run: npx @changesets/cli status --since="origin/main"

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ jobs:
1515
- name: Install
1616
run: yarn install
1717
- name: Run tests
18-
run: yarn test:all
18+
run: yarn test
19+
- name: Run linting
20+
run: yarn lint

.github/workflows/main-release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release new version(s) of packages
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@master
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 16.x
22+
cache: 'yarn'
23+
24+
- name: Install dependencies
25+
run: yarn --frozen-lockfile
26+
27+
- name: Create release Pull Request or publish to NPM
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
publish: yarn release
32+
env:
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}

.github/workflows/next-release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- next
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release release candidate(s) of packages
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@master
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 16.x
22+
cache: 'yarn'
23+
24+
- name: Install dependencies
25+
run: yarn --frozen-lockfile
26+
27+
- name: Create release Pull Request or publish to NPM
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
title: Version Packages for Release Candidates
32+
publish: yarn release
33+
env:
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)