ikramhussainsiyam-create-my-project 1.2.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/cli.js +1 -3
  2. package/package.json +1 -1
  3. package/templates/NextJS/JavaScript/.eslintrc.json +13 -0
  4. package/templates/NextJS/JavaScript/README.md +36 -0
  5. package/templates/NextJS/JavaScript/gitignore-template +45 -0
  6. package/templates/NextJS/JavaScript/jsconfig.json +7 -0
  7. package/templates/NextJS/JavaScript/next.config.mjs +4 -0
  8. package/templates/NextJS/JavaScript/package-lock.json +5730 -0
  9. package/templates/NextJS/JavaScript/package.json +30 -0
  10. package/templates/NextJS/JavaScript/postcss.config.mjs +8 -0
  11. package/templates/NextJS/JavaScript/public/lws.svg +10 -0
  12. package/templates/NextJS/JavaScript/src/app/favicon.ico +0 -0
  13. package/templates/NextJS/JavaScript/src/app/globals.css +30 -0
  14. package/templates/NextJS/JavaScript/src/app/layout.jsx +26 -0
  15. package/templates/NextJS/JavaScript/src/app/page.jsx +3 -0
  16. package/templates/NextJS/JavaScript/src/components/Navlink.jsx +31 -0
  17. package/templates/NextJS/JavaScript/src/components/ToastContainer.jsx +84 -0
  18. package/templates/NextJS/JavaScript/src/components/ui/Alert.jsx +48 -0
  19. package/templates/NextJS/JavaScript/src/components/ui/Button.jsx +58 -0
  20. package/templates/NextJS/JavaScript/src/components/ui/Skeleton.jsx +14 -0
  21. package/templates/NextJS/JavaScript/src/lib/toast.js +19 -0
  22. package/templates/NextJS/JavaScript/src/lib/utils.js +10 -0
  23. package/templates/NextJS/JavaScript/tailwind.config.js +19 -0
  24. package/templates/ViteJS/JavaScript/README.md +3 -0
  25. package/templates/ViteJS/JavaScript/eslint.config.js +1 -4
  26. package/templates/ViteJS/JavaScript/gitignore-template +1 -0
  27. package/templates/ViteJS/JavaScript/src/index.css +13 -0
package/cli.js CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // TODO (for later): update in `package.json` deps from `react-toastify` to `sonner`.
4
-
5
3
  import { execSync } from "child_process";
6
4
  import fs from "fs-extra";
7
5
  import inquirer from "inquirer";
@@ -28,7 +26,7 @@ async function main() {
28
26
  type: "list",
29
27
  name: "language",
30
28
  message: "Choose your language:",
31
- choices: ["JavaScript", "TypeScript"],
29
+ choices: ["JavaScript"],
32
30
  },
33
31
  ]);
34
32
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "ikramhussainsiyam-create-my-project",
4
- "version": "1.2.1",
4
+ "version": "1.3.2",
5
5
  "description": "Most used React/Next JS/TS settings and configs as a template.",
6
6
  "main": "cli.js",
7
7
  "bin": {
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "next/core-web-vitals",
3
+ "rules": {
4
+ "react/jsx-no-target-blank": "off",
5
+ "no-unused-vars": [
6
+ "error",
7
+ { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }
8
+ ],
9
+ "react/prop-types": "off",
10
+ "react/no-unescaped-entities": "off",
11
+ "react-refresh/only-export-components": "off"
12
+ }
13
+ }
@@ -0,0 +1,36 @@
1
+ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
@@ -0,0 +1,45 @@
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ /node_modules
5
+ /.pnp
6
+ .pnp.*
7
+ .yarn/*
8
+ !.yarn/patches
9
+ !.yarn/plugins
10
+ !.yarn/releases
11
+ !.yarn/versions
12
+
13
+ # testing
14
+ /coverage
15
+
16
+ # lws assignments/prjoects
17
+ html_template
18
+ server
19
+ backend
20
+
21
+ # next.js
22
+ /.next/
23
+ /out/
24
+
25
+ # production
26
+ /build
27
+
28
+ # misc
29
+ .DS_Store
30
+ *.pem
31
+
32
+ # debug
33
+ npm-debug.log*
34
+ yarn-debug.log*
35
+ yarn-error.log*
36
+
37
+ # env files (can opt-in for committing if needed)
38
+ .env*
39
+
40
+ # vercel
41
+ .vercel
42
+
43
+ # typescript
44
+ *.tsbuildinfo
45
+ next-env.d.ts
@@ -0,0 +1,7 @@
1
+ {
2
+ "compilerOptions": {
3
+ "paths": {
4
+ "@/*": ["./src/*"]
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {};
3
+
4
+ export default nextConfig;