@tsmodule/tsmodule 40.0.11 → 40.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/bin.d.ts +2 -0
  2. package/dist/bin.js +7 -0
  3. package/dist/commands/build/index.d.ts +1 -0
  4. package/dist/commands/build/index.js +6 -62
  5. package/dist/commands/build/lib/emitTsDeclarations.js +1 -18
  6. package/dist/commands/convert/index.js +1 -51
  7. package/dist/commands/create/index.js +1 -51
  8. package/dist/commands/create/lib/templates.js +1 -51
  9. package/dist/commands/dev/index.js +3 -66
  10. package/dist/commands/execute/index.js +1 -10
  11. package/dist/commands/index.js +1 -66
  12. package/dist/commands/normalize/index.js +1 -47
  13. package/dist/commands/normalize/lib/typescriptApi.js +1 -14
  14. package/dist/constants.js +1 -4
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.js +1 -89
  17. package/dist/loader/index.js +1 -12
  18. package/dist/loader/types.js +0 -3
  19. package/dist/specification/index.js +1 -4
  20. package/dist/specification/types.js +0 -3
  21. package/dist/types/index.js +1 -66
  22. package/dist/utils/cwd.js +1 -8
  23. package/dist/utils/packageJson.js +1 -4
  24. package/dist/utils/programCatch.d.ts +1 -0
  25. package/dist/utils/programCatch.js +1 -0
  26. package/dist/utils/require.js +1 -4
  27. package/dist/utils/resolve.js +1 -4
  28. package/dist/utils/showProgress.d.ts +11 -0
  29. package/dist/utils/showProgress.js +1 -0
  30. package/dist/utils/stdin.js +1 -12
  31. package/package.json +14 -16
  32. package/templates/default/.eslintrc +0 -52
  33. package/templates/default/.github/workflows/ci.yml +0 -30
  34. package/templates/default/.gitignore +0 -10
  35. package/templates/default/LICENSE +0 -16
  36. package/templates/default/README.md +0 -35
  37. package/templates/default/package.json +0 -5
  38. package/templates/default/src/index.ts +0 -4
  39. package/templates/default/test/example.test.ts +0 -7
  40. package/templates/default/tsconfig.json +0 -40
  41. package/templates/react/.eslintrc +0 -54
  42. package/templates/react/.gitignore +0 -11
  43. package/templates/react/LICENSE +0 -16
  44. package/templates/react/README.md +0 -48
  45. package/templates/react/next-env.d.ts +0 -5
  46. package/templates/react/next.config.js +0 -18
  47. package/templates/react/package.json +0 -5
  48. package/templates/react/postcss.config.js +0 -11
  49. package/templates/react/public/vercel.svg +0 -4
  50. package/templates/react/src/components/Card/index.css +0 -18
  51. package/templates/react/src/components/Card/index.tsx +0 -13
  52. package/templates/react/src/components/CardGrid/index.tsx +0 -29
  53. package/templates/react/src/components/Footer/index.tsx +0 -19
  54. package/templates/react/src/components/GetStarted/index.tsx +0 -8
  55. package/templates/react/src/components/Welcome/index.tsx +0 -7
  56. package/templates/react/src/components/index.css +0 -19
  57. package/templates/react/src/components/index.ts +0 -4
  58. package/templates/react/src/index.css +0 -20
  59. package/templates/react/src/index.ts +0 -1
  60. package/templates/react/src/pages/_app.tsx +0 -14
  61. package/templates/react/src/pages/api/hello.ts +0 -13
  62. package/templates/react/src/pages/index.tsx +0 -26
  63. package/templates/react/tailwind.config.js +0 -19
@@ -1,29 +0,0 @@
1
- import { Card } from "../Card";
2
-
3
- export const CardGrid = () => {
4
- return (
5
- <div className="px-4 grid md:grid-cols-2 gap-8">
6
- <Card href="https://nextjs.org/learn">
7
- <h4>Documentation &rarr;</h4>
8
- <p>Find in-depth information about Next.js features and API.</p>
9
- </Card>
10
-
11
- <Card href="https://nextjs.org/learn">
12
- <h4>Learn &rarr;</h4>
13
- <p>Learn about Next.js in an interactive course with quizzes!</p>
14
- </Card>
15
-
16
- <Card href="https://github.com/vercel/next.js/tree/master/examples">
17
- <h4>Examples &rarr;</h4>
18
- <p>Discover and deploy boilerplate example Next.js projects.</p>
19
- </Card>
20
-
21
- <Card href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app">
22
- <h4>Deploy &rarr;</h4>
23
- <p>
24
- Instantly deploy your Next.js site to a public URL with Vercel.
25
- </p>
26
- </Card>
27
- </div>
28
- );
29
- };
@@ -1,19 +0,0 @@
1
- import Image from "next/image";
2
-
3
- export const Footer = () => {
4
- return (
5
- <footer>
6
- <a
7
- className="flex-center"
8
- href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
9
- target="_blank"
10
- rel="noopener noreferrer"
11
- >
12
- Powered by{" "}
13
- <span className="h-4 ml-2 flex-center">
14
- <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
15
- </span>
16
- </a>
17
- </footer>
18
- );
19
- };
@@ -1,8 +0,0 @@
1
- export const GetStarted = () => {
2
- return (
3
- <p className="text-gray-700 text-center font-size-3">
4
- Get started by editing{" "}
5
- <code className="code">pages/index.js</code>.
6
- </p>
7
- );
8
- };
@@ -1,7 +0,0 @@
1
- export const Welcome = () => {
2
- return (
3
- <h1 className="text-center">
4
- Welcome to <a href="https://nextjs.org">Next.js!</a>
5
- </h1>
6
- );
7
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * @fileoverview
3
- * COMPONENT STYLES
4
- *
5
- * This file loads all styles needed to render any of the module components, and
6
- * does not include, e.g., the standardized viewport styles (which would alter
7
- * the sizing of html, body, ... in any layouts that relied it).
8
- */
9
-
10
- /**
11
- * ❌ DO NOT CHANGE: Load standardized styles that may be relied on by component
12
- * styles.
13
- */
14
- @import "@tsmodule/react";
15
-
16
- /**
17
- * 📝 EXPORT COMPONENT STYLES: Load your component style exports here as needed.
18
- */
19
- @import "./Card/index.css";
@@ -1,4 +0,0 @@
1
- export * from "./Card";
2
- export * from "./CardGrid";
3
- export * from "./GetStarted";
4
- export * from "./Welcome";
@@ -1,20 +0,0 @@
1
- /**
2
- * @fileoverview
3
- * APPLICATION STYLES
4
- *
5
- * This stylesheet includes all styles needed to render the entire viewport,
6
- * namely Tailwind utilities, standardized viewport styles, and all component
7
- * styles.
8
- */
9
-
10
- /**
11
- * Load Tailwind utilities.
12
- */
13
- @import "tailwindcss/base";
14
- @import "tailwindcss/utilities";
15
- @import "tailwindcss/components";
16
-
17
- /**
18
- * Load this module's component styles.
19
- */
20
- @import "./components/index.css";
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,14 +0,0 @@
1
- import "../index.css";
2
-
3
- import type { AppProps } from "next/app";
4
- import { StrictMode } from "react";
5
-
6
- function App({ Component, pageProps }: AppProps) {
7
- return (
8
- <StrictMode>
9
- <Component {...pageProps} />
10
- </StrictMode>
11
- );
12
- }
13
-
14
- export default App;
@@ -1,13 +0,0 @@
1
- // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2
- import type { NextApiRequest, NextApiResponse } from "next";
3
-
4
- type Data = {
5
- name: string
6
- };
7
-
8
- export default function handler(
9
- _: NextApiRequest,
10
- res: NextApiResponse<Data>
11
- ) {
12
- res.status(200).json({ name: "John Doe" });
13
- }
@@ -1,26 +0,0 @@
1
- import Head from "next/head";
2
-
3
- import { CardGrid } from "../components/CardGrid";
4
- import { Footer } from "../components/Footer";
5
- import { GetStarted } from "../components/GetStarted";
6
- import { Welcome } from "../components/Welcome";
7
-
8
- export default function Home() {
9
- return (
10
- <>
11
- <Head>
12
- <title>Create Next App</title>
13
- <meta name="description" content="Generated by create next app" />
14
- <link rel="icon" href="/favicon.ico" />
15
- </Head>
16
-
17
- <main>
18
- <Welcome />
19
- <GetStarted />
20
- <CardGrid />
21
- </main>
22
-
23
- <Footer />
24
- </>
25
- );
26
- }
@@ -1,19 +0,0 @@
1
- module.exports = {
2
- content: ["src/**/*.{js,ts,jsx,tsx}"],
3
- theme: {
4
- extend: {
5
- screens: {
6
- "3xl": "1920px",
7
- "4xl": "3840px",
8
- },
9
- backgroundImage: {
10
- "gradient-radial": "radial-gradient(var(--tw-gradient-stops))"
11
- },
12
- border : [ "hover"],
13
- },
14
- },
15
- variants: {
16
- extend: {},
17
- },
18
- plugins: [],
19
- };