-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin process to replace Loom with Turbo
- Loading branch information
Showing
18 changed files
with
649 additions
and
1,803 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
rollup.config.js | ||
rollup.config.cjs | ||
.eslintrc.cjs | ||
node_modules/ | ||
dist/ | ||
packages/shopify-api/rest/admin |
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 |
---|---|---|
|
@@ -10,5 +10,7 @@ database.sqlite | |
packages/**/build | ||
packages/**/*.tgz | ||
tmp/ | ||
.loom | ||
.vscode/ | ||
bundle/ | ||
.turbo | ||
.rollup.cache |
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
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
27 changes: 0 additions & 27 deletions
27
packages/shopify-app-session-storage-test-utils/loom.config.ts
This file was deleted.
Oops, something went wrong.
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
66 changes: 66 additions & 0 deletions
66
packages/shopify-app-session-storage-test-utils/rollup.config.js
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,66 @@ | ||
import dts from 'rollup-plugin-dts'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import replace from '@rollup/plugin-replace'; | ||
|
||
import * as pkg from './package.json'; | ||
|
||
export const mainSrcInput = 'src/index.ts'; | ||
|
||
export function getPlugins() { | ||
return [ | ||
replace({ | ||
preventAssignment: true, | ||
}), | ||
resolve(), | ||
commonjs(), | ||
typescript({ | ||
tsconfig: './tsconfig.json', | ||
noEmit: true, | ||
emitDeclarationOnly: true, | ||
outDir: './dist/ts', | ||
}), | ||
]; | ||
} | ||
|
||
const packageName = pkg.name.substring(1); | ||
export const bannerConfig = { | ||
banner: `/*! ${packageName}@${pkg.version} -- Copyright (c) 2023-present, Shopify Inc. -- license (MIT): https://github.com/Shopify/shopify-app-js/blob/main/LICENSE.md */`, | ||
}; | ||
|
||
const config = [ | ||
{ | ||
input: mainSrcInput, | ||
plugins: getPlugins(), | ||
external: Object.keys(pkg.dependencies), | ||
output: [ | ||
{ | ||
dir: './dist', | ||
format: 'es', | ||
sourcemap: true, | ||
entryFileNames: '[name].mjs', | ||
}, | ||
], | ||
}, | ||
{ | ||
input: mainSrcInput, | ||
plugins: getPlugins(), | ||
external: Object.keys(pkg.dependencies), | ||
output: [ | ||
{ | ||
dir: './dist', | ||
format: 'cjs', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
}, | ||
{ | ||
input: './dist/ts/index.d.ts', | ||
output: [{file: 'dist/index.d.ts', format: 'es'}], | ||
plugins: [dts.default()], | ||
}, | ||
]; | ||
|
||
export default config; |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.