├── .eslintrc.cjs ├── .gitignore ├── README.md ├── base.css ├── examples ├── basic-example │ ├── customSetup.json │ ├── files │ │ ├── base.css │ │ ├── index.html │ │ ├── index.js │ │ └── my-component.js │ └── index.js └── node-example │ ├── customSetup.json │ ├── files │ ├── index.js │ └── views │ │ ├── albums.handlebars │ │ ├── index.handlebars │ │ ├── layouts │ │ └── main.handlebars │ │ ├── partials │ │ └── nav.handlebars │ │ └── top-40.handlebars │ └── index.js ├── frameworks ├── react │ ├── index.css │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app.jsx │ │ └── main.jsx │ └── vite.config.js └── vue │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── App.vue │ ├── main.js │ ├── options.js │ └── style.css │ └── vite.config.js ├── index.html ├── package.json ├── public └── vite.svg ├── scripts └── generate-exercises.js ├── src ├── components │ ├── editor │ │ ├── editor.ts │ │ ├── syntaxHighlighting.ts │ │ └── tabs.ts │ ├── icons │ │ └── close.ts │ ├── layout.ts │ └── preview.ts ├── contexts │ ├── context.ts │ └── provider.ts ├── helpers │ ├── combineTemplateFilesToSetup.ts │ ├── convertedFilesToBundlerFiles.ts │ ├── setupStartingFiles.ts │ ├── tests │ │ └── setupStartingFiles.spec.ts │ └── updatePackageJsonWithCustomDeps.ts ├── mixins │ └── ElementVisibleMixin.ts ├── presets │ ├── sandpack-react.ts │ └── sandpack.ts ├── templates │ ├── common.ts │ ├── index.ts │ ├── node.ts │ └── vite.ts ├── themes │ └── odyssey.css ├── types.ts └── vite-env.d.ts ├── tsconfig.json └── vite.config.ts /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/README.md -------------------------------------------------------------------------------- /base.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/base.css -------------------------------------------------------------------------------- /examples/basic-example/customSetup.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/basic-example/customSetup.json -------------------------------------------------------------------------------- /examples/basic-example/files/base.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/basic-example/files/base.css -------------------------------------------------------------------------------- /examples/basic-example/files/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/basic-example/files/index.html -------------------------------------------------------------------------------- /examples/basic-example/files/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/basic-example/files/index.js -------------------------------------------------------------------------------- /examples/basic-example/files/my-component.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/basic-example/files/my-component.js -------------------------------------------------------------------------------- /examples/basic-example/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/basic-example/index.js -------------------------------------------------------------------------------- /examples/node-example/customSetup.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/customSetup.json -------------------------------------------------------------------------------- /examples/node-example/files/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/files/index.js -------------------------------------------------------------------------------- /examples/node-example/files/views/albums.handlebars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/files/views/albums.handlebars -------------------------------------------------------------------------------- /examples/node-example/files/views/index.handlebars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/files/views/index.handlebars -------------------------------------------------------------------------------- /examples/node-example/files/views/layouts/main.handlebars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/files/views/layouts/main.handlebars -------------------------------------------------------------------------------- /examples/node-example/files/views/partials/nav.handlebars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/files/views/partials/nav.handlebars -------------------------------------------------------------------------------- /examples/node-example/files/views/top-40.handlebars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/files/views/top-40.handlebars -------------------------------------------------------------------------------- /examples/node-example/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/examples/node-example/index.js -------------------------------------------------------------------------------- /frameworks/react/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/index.css -------------------------------------------------------------------------------- /frameworks/react/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/index.html -------------------------------------------------------------------------------- /frameworks/react/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/package-lock.json -------------------------------------------------------------------------------- /frameworks/react/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/package.json -------------------------------------------------------------------------------- /frameworks/react/src/app.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/src/app.jsx -------------------------------------------------------------------------------- /frameworks/react/src/main.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/src/main.jsx -------------------------------------------------------------------------------- /frameworks/react/vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/react/vite.config.js -------------------------------------------------------------------------------- /frameworks/vue/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/index.html -------------------------------------------------------------------------------- /frameworks/vue/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/package-lock.json -------------------------------------------------------------------------------- /frameworks/vue/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/package.json -------------------------------------------------------------------------------- /frameworks/vue/src/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/src/App.vue -------------------------------------------------------------------------------- /frameworks/vue/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/src/main.js -------------------------------------------------------------------------------- /frameworks/vue/src/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/src/options.js -------------------------------------------------------------------------------- /frameworks/vue/src/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/src/style.css -------------------------------------------------------------------------------- /frameworks/vue/vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/frameworks/vue/vite.config.js -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/package.json -------------------------------------------------------------------------------- /public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/public/vite.svg -------------------------------------------------------------------------------- /scripts/generate-exercises.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/scripts/generate-exercises.js -------------------------------------------------------------------------------- /src/components/editor/editor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/components/editor/editor.ts -------------------------------------------------------------------------------- /src/components/editor/syntaxHighlighting.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/components/editor/syntaxHighlighting.ts -------------------------------------------------------------------------------- /src/components/editor/tabs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/components/editor/tabs.ts -------------------------------------------------------------------------------- /src/components/icons/close.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/components/icons/close.ts -------------------------------------------------------------------------------- /src/components/layout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/components/layout.ts -------------------------------------------------------------------------------- /src/components/preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/components/preview.ts -------------------------------------------------------------------------------- /src/contexts/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/contexts/context.ts -------------------------------------------------------------------------------- /src/contexts/provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/contexts/provider.ts -------------------------------------------------------------------------------- /src/helpers/combineTemplateFilesToSetup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/helpers/combineTemplateFilesToSetup.ts -------------------------------------------------------------------------------- /src/helpers/convertedFilesToBundlerFiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/helpers/convertedFilesToBundlerFiles.ts -------------------------------------------------------------------------------- /src/helpers/setupStartingFiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/helpers/setupStartingFiles.ts -------------------------------------------------------------------------------- /src/helpers/tests/setupStartingFiles.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/helpers/tests/setupStartingFiles.spec.ts -------------------------------------------------------------------------------- /src/helpers/updatePackageJsonWithCustomDeps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/helpers/updatePackageJsonWithCustomDeps.ts -------------------------------------------------------------------------------- /src/mixins/ElementVisibleMixin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/mixins/ElementVisibleMixin.ts -------------------------------------------------------------------------------- /src/presets/sandpack-react.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/presets/sandpack-react.ts -------------------------------------------------------------------------------- /src/presets/sandpack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/presets/sandpack.ts -------------------------------------------------------------------------------- /src/templates/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/templates/common.ts -------------------------------------------------------------------------------- /src/templates/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/templates/index.ts -------------------------------------------------------------------------------- /src/templates/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/templates/node.ts -------------------------------------------------------------------------------- /src/templates/vite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/templates/vite.ts -------------------------------------------------------------------------------- /src/themes/odyssey.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/themes/odyssey.css -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrico1234/sandpack-lit/HEAD/vite.config.ts --------------------------------------------------------------------------------