Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Migrate from sewing-kit-next to loom (#2039)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott authored Sep 15, 2021
1 parent eedc334 commit 548cb40
Show file tree
Hide file tree
Showing 211 changed files with 991 additions and 708 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
coverage
templates
gems/**/dummy
.loom
packages/*/build
**/*.js
**/*.esnext
Expand Down
8 changes: 2 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ module.exports = {
},
},
{
files: [
'**/tests/**/*.ts',
'**/tests/**/*.tsx',
'**/sewing-kit.config.ts',
],
files: ['**/tests/**/*.ts', '**/tests/**/*.tsx', '**/loom.config.ts'],
rules: {
// We disable `import/no-extraneous-dependencies` for test files because it
// would force releases of `@shopify/react-testing` (and similar devDependencies)
Expand All @@ -88,7 +84,7 @@ module.exports = {
},
},
{
files: ['**/sewing-kit.config.ts', 'config/sewing-kit/index.ts'],
files: ['**/loom.config.ts', 'config/loom/index.ts'],
rules: {
'babel/no-unused-expressions': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: Restore sewing-kit cache
with:
path: |
.sewing-kit
.loom
packages/*/build/ts
packages/*/build/*.tsbuildinfo
key: ${{ runner.os }}-node${{ matrix.node-version }}-sewing-kit-v1-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tmp
*.tsbuildinfo

# Sewing-Kit builds and entrypoints
.sewing-kit
.loom
packages/*/build
packages/*/bin
packages/*/*.esnext
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.loom
packages/*/build
coverage
*.svg
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"**/.git": true,
"**/node_modules": true,
"**/.DS_Store": true,
"packages/*/{.sewing-kit,build,bin}": true,
"packages/*/{.loom,build,bin}": true,
".{dev,shadowenv.d,sewing-kit}": true
},
"files.insertFinalNewline": true,
Expand Down
8 changes: 4 additions & 4 deletions config/sewing-kit/index.ts → config/loom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import {
Package,
createComposedProjectPlugin,
createProjectTestPlugin,
} from '@sewing-kit/core';
import {babel} from '@sewing-kit/plugin-babel';
import {packageBuild} from '@sewing-kit/plugin-package-build';
import {} from '@sewing-kit/plugin-jest';
} from '@shopify/loom';
import {babel} from '@shopify/loom-plugin-babel';
import {packageBuild} from '@shopify/loom-plugin-package-build';
import type {} from '@shopify/loom-plugin-jest';

export function quiltPackage({
jestEnv = 'jsdom',
Expand Down
10 changes: 5 additions & 5 deletions sewing-kit.config.ts → loom.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {createWorkspace, createWorkspaceTestPlugin} from '@sewing-kit/core';
import {eslint} from '@sewing-kit/plugin-eslint';
import {jest} from '@sewing-kit/plugin-jest';
import {prettier} from '@sewing-kit/plugin-prettier';
import {workspaceTypeScript} from '@sewing-kit/plugin-typescript';
import {createWorkspace, createWorkspaceTestPlugin} from '@shopify/loom';
import {eslint} from '@shopify/loom-plugin-eslint';
import {jest} from '@shopify/loom-plugin-jest';
import {prettier} from '@shopify/loom-plugin-prettier';
import {workspaceTypeScript} from '@shopify/loom-plugin-typescript';

export default createWorkspace((workspace) => {
workspace.use(
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "1.0.0",
"description": "A loosely related set of packages for JavaScript/TypeScript projects at Shopify",
"scripts": {
"build": "skn build",
"lint": "skn lint",
"type-check": "skn type-check",
"build": "loom build",
"lint": "loom lint",
"type-check": "loom type-check",
"ci:lint-docs": "yarn generate docs && ./scripts/check-docs.sh",
"test": "NODE_ICU_DATA=node_modules/full-icu skn test",
"test": "NODE_ICU_DATA=node_modules/full-icu loom test",
"check": "lerna run check",
"version-bump": "lerna version --no-push --include-merged-tags",
"version": "node scripts/update-changelogs-on-version.js",
"clean": "rimraf ./packages/*/build ./packages/*/*.{d.ts,js,esnext,mjs} .sewing-kit",
"clean": "rimraf ./packages/*/build ./packages/*/*.{d.ts,js,esnext,mjs} .loom",
"generate": "plop",
"generate:package": "plop package && yarn plop docs",
"yalc": "yalc",
Expand All @@ -37,14 +37,14 @@
"@apollo/react-common": "^3.1.3",
"@apollo/react-hooks": "^3.1.3",
"@babel/core": "^7.14.6",
"@sewing-kit/cli": "^0.6.2",
"@sewing-kit/core": "^0.6.2",
"@sewing-kit/plugin-babel": "^0.1.1",
"@sewing-kit/plugin-eslint": "^0.4.2",
"@sewing-kit/plugin-jest": "^0.5.1",
"@sewing-kit/plugin-package-build": "^0.5.1",
"@sewing-kit/plugin-prettier": "^0.1.2",
"@sewing-kit/plugin-typescript": "^0.6.1",
"@shopify/loom": "^0.7.0",
"@shopify/loom-cli": "^0.7.0",
"@shopify/loom-plugin-babel": "^0.3.0",
"@shopify/loom-plugin-eslint": "^0.5.0",
"@shopify/loom-plugin-jest": "^0.6.0",
"@shopify/loom-plugin-package-build": "^0.7.0",
"@shopify/loom-plugin-prettier": "^0.2.0",
"@shopify/loom-plugin-typescript": "^0.8.0",
"@shopify/app-bridge": "^2.0.3",
"@shopify/babel-preset": "^24.1.2",
"@shopify/browserslist-config": "^2.2.4",
Expand Down
6 changes: 5 additions & 1 deletion packages/address-consts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 3.0.5 - 2021-08-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createPackage, Runtime} from '@sewing-kit/core';
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/sewing-kit';
import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
Expand Down
6 changes: 5 additions & 1 deletion packages/address-mocks/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 2.0.8 - 2021-08-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createPackage, Runtime} from '@sewing-kit/core';
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/sewing-kit';
import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
Expand Down
6 changes: 5 additions & 1 deletion packages/address/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 3.0.8 - 2021-08-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createPackage, Runtime} from '@sewing-kit/core';
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/sewing-kit';
import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
Expand Down
6 changes: 5 additions & 1 deletion packages/admin-graphql-api-utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 1.0.4 - 2021-08-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createPackage, Runtime} from '@sewing-kit/core';
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/sewing-kit';
import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
Expand Down
6 changes: 5 additions & 1 deletion packages/ast-utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 1.0.6 - 2021-08-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createPackage, Runtime} from '@sewing-kit/core';
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/sewing-kit';
import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
Expand Down
6 changes: 5 additions & 1 deletion packages/async/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 3.0.4 - 2021-08-24

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createPackage, Runtime} from '@sewing-kit/core';
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/sewing-kit';
import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
Expand Down
6 changes: 5 additions & 1 deletion packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 2.0.3 - 2021-08-24

Expand Down
9 changes: 9 additions & 0 deletions packages/browser/loom.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
9 changes: 0 additions & 9 deletions packages/browser/sewing-kit.config.ts

This file was deleted.

6 changes: 5 additions & 1 deletion packages/csrf-token-fetcher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 1.0.3 - 2021-08-24

Expand Down
9 changes: 9 additions & 0 deletions packages/csrf-token-fetcher/loom.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
9 changes: 0 additions & 9 deletions packages/csrf-token-fetcher/sewing-kit.config.ts

This file was deleted.

6 changes: 5 additions & 1 deletion packages/css-utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 2.0.4 - 2021-08-24

Expand Down
9 changes: 9 additions & 0 deletions packages/css-utilities/loom.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
9 changes: 0 additions & 9 deletions packages/css-utilities/sewing-kit.config.ts

This file was deleted.

6 changes: 5 additions & 1 deletion packages/dates/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Migrate from `sewing-kit-next` to `loom` for building - package build output remains identical. [[#2039](https://github.com/Shopify/quilt/pull/2039)]

## 1.0.7 - 2021-08-26

Expand Down
9 changes: 9 additions & 0 deletions packages/dates/loom.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {createPackage, Runtime} from '@shopify/loom';

import {quiltPackage} from '../../config/loom';

export default createPackage((pkg) => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
9 changes: 0 additions & 9 deletions packages/dates/sewing-kit.config.ts

This file was deleted.

Loading

0 comments on commit 548cb40

Please sign in to comment.