Skip to content

Commit

Permalink
remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaKrishnaNamburu committed Aug 1, 2024
1 parent f44ac3d commit 9be126f
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 190 deletions.

This file was deleted.

220 changes: 110 additions & 110 deletions packages/teleport-test/src/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,54 +73,54 @@ const run = async () => {
let result

/* Plain Html Generator */
// await log(async () => {
// result = await packProject(projectUIDL as unknown as ProjectUIDL, {
// ...packerOptions,
// projectType: ProjectType.HTML,
// strictHtmlWhitespaceSensitivity: false,
// })
// console.info(ProjectType.HTML, '-', result.payload)
// return ProjectType.HTML
// })

// /* Plain Html Generator with embed parser */
// await log(async () => {
// result = await packProject(projectUIDL as unknown as ProjectUIDL, {
// ...packerOptions,
// projectType: ProjectType.HTML,
// plugins: [new ProjectPluginParseEmbed()],
// publishOptions: {
// ...packerOptions.publishOptions,
// projectSlug: `teleport-project-html-embeds`,
// },
// })
// console.info(ProjectType.HTML, '-', result.payload)
// return `${ProjectType.HTML} - Parse Embeds`
// })
await log(async () => {
result = await packProject(projectUIDL as unknown as ProjectUIDL, {
...packerOptions,
projectType: ProjectType.HTML,
strictHtmlWhitespaceSensitivity: false,
})
console.info(ProjectType.HTML, '-', result.payload)
return ProjectType.HTML
})

/* Plain Html Generator with embed parser */
await log(async () => {
result = await packProject(projectUIDL as unknown as ProjectUIDL, {
...packerOptions,
projectType: ProjectType.HTML,
plugins: [new ProjectPluginParseEmbed()],
publishOptions: {
...packerOptions.publishOptions,
projectSlug: `teleport-project-html-embeds`,
},
})
console.info(ProjectType.HTML, '-', result.payload)
return `${ProjectType.HTML} - Parse Embeds`
})

/* Styled JSX */
// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.NEXT,
// plugins: [new ProjectPluginParseEmbed()],
// publishOptions: {
// ...packerOptions.publishOptions,
// projectSlug: `teleport-project-next-embeds`,
// },
// })
// console.info(ProjectType.NEXT, '-', result.payload)
// return `${ProjectType.NEXT} - Parse Embeds`
// })

// /* Frameworks using Css-Modules */
await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.NEXT,
plugins: [new ProjectPluginParseEmbed()],
publishOptions: {
...packerOptions.publishOptions,
projectSlug: `teleport-project-next-embeds`,
},
})
console.info(ProjectType.NEXT, '-', result.payload)
return `${ProjectType.NEXT} - Parse Embeds`
})

/* Frameworks using Css-Modules */
await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.NEXT,
plugins: [
new ProjectPluginCSSModules({ framework: ProjectType.NEXT }),
// new ProjectPluginParseEmbed(),
new ProjectPluginParseEmbed(),
],
publishOptions: {
...packerOptions.publishOptions,
Expand All @@ -131,76 +131,76 @@ const run = async () => {
return `Next - CSSModules`
})

// /* Frameworks use CSS */

// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.REACT,
// plugins: [new ProjectPluginParseEmbed()],
// })
// console.info(ProjectType.REACT, '-', result.payload)
// return ProjectType.REACT
// })

// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.NUXT,
// plugins: [new ProjectPluginParseEmbed()],
// })
// console.info(ProjectType.NUXT, '-', result.payload)
// return ProjectType.NUXT
// })

// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.VUE,
// plugins: [new ProjectPluginParseEmbed()],
// })
// console.info(ProjectType.VUE, '-', result.payload)
// return ProjectType.VUE
// })

// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.ANGULAR,
// plugins: [new ProjectPluginParseEmbed()],
// })
// console.info(ProjectType.ANGULAR, '-', result.payload)
// return ProjectType.ANGULAR
// })

// /* React JSS */
// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.NEXT,
// plugins: [new ProjectPluginReactJSS({ framework: ProjectType.NEXT })],
// publishOptions: {
// ...packerOptions.publishOptions,
// projectSlug: 'teleport-project-next-react-jss',
// },
// })
// console.info(ProjectType.NEXT + '-' + ReactStyleVariation.ReactJSS, '-', result.payload)
// return `NEXT - React-JSS`
// })

// /* Styled Components */
// await log(async () => {
// result = await packProject(projectUIDL, {
// ...packerOptions,
// projectType: ProjectType.REACT,
// plugins: [new ProjectPluginStyledComponents({ framework: ProjectType.REACT })],
// publishOptions: {
// ...packerOptions.publishOptions,
// projectSlug: `teleport-project-react-styled-components`,
// },
// })
// return `React - StyledComponents`
// })
/* Frameworks use CSS */

await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.REACT,
plugins: [new ProjectPluginParseEmbed()],
})
console.info(ProjectType.REACT, '-', result.payload)
return ProjectType.REACT
})

await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.NUXT,
plugins: [new ProjectPluginParseEmbed()],
})
console.info(ProjectType.NUXT, '-', result.payload)
return ProjectType.NUXT
})

await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.VUE,
plugins: [new ProjectPluginParseEmbed()],
})
console.info(ProjectType.VUE, '-', result.payload)
return ProjectType.VUE
})

await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.ANGULAR,
plugins: [new ProjectPluginParseEmbed()],
})
console.info(ProjectType.ANGULAR, '-', result.payload)
return ProjectType.ANGULAR
})

/* React JSS */
await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.NEXT,
plugins: [new ProjectPluginReactJSS({ framework: ProjectType.NEXT })],
publishOptions: {
...packerOptions.publishOptions,
projectSlug: 'teleport-project-next-react-jss',
},
})
console.info(ProjectType.NEXT + '-' + ReactStyleVariation.ReactJSS, '-', result.payload)
return `NEXT - React-JSS`
})

/* Styled Components */
await log(async () => {
result = await packProject(projectUIDL, {
...packerOptions,
projectType: ProjectType.REACT,
plugins: [new ProjectPluginStyledComponents({ framework: ProjectType.REACT })],
publishOptions: {
...packerOptions.publishOptions,
projectSlug: `teleport-project-react-styled-components`,
},
})
return `React - StyledComponents`
})
} catch (e) {
console.info(e)
}
Expand Down

0 comments on commit 9be126f

Please sign in to comment.