forked from QwikDev/partytown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: services submodule, remove React components (QwikDev#62)
- Loading branch information
1 parent
e49ecd0
commit 35702f5
Showing
30 changed files
with
186 additions
and
382 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { BuildOptions, submodulePackageJson } from './utils'; | ||
import { join } from 'path'; | ||
import type { OutputOptions, RollupOptions } from 'rollup'; | ||
|
||
export function buildServices(opts: BuildOptions): RollupOptions { | ||
const output: OutputOptions[] = [ | ||
{ | ||
file: join(opts.distServicesDir, 'index.cjs'), | ||
format: 'cjs', | ||
}, | ||
{ | ||
file: join(opts.distServicesDir, 'index.mjs'), | ||
format: 'es', | ||
}, | ||
]; | ||
|
||
return { | ||
input: join(opts.tscServicesDir, 'index.js'), | ||
output, | ||
plugins: [ | ||
submodulePackageJson( | ||
'@builder.io/partytown/services', | ||
opts.srcServicesDir, | ||
opts.distServicesDir, | ||
opts | ||
), | ||
], | ||
}; | ||
} |
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
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 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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
export { Partytown, PartytownProps } from './library'; | ||
|
||
export { | ||
FacebookPixel, | ||
FacebookPixelNoScript, | ||
FacebookPixelProps, | ||
} from './integration/facebook-pixel'; | ||
|
||
export { | ||
GoogleTagManager, | ||
GoogleTagManagerNoScript, | ||
GoogleTagManagerProps, | ||
} from './integration/google-tag-manager'; | ||
export { Partytown, PartytownProps } from './snippet'; |
Oops, something went wrong.