create-sb-react 1.0.3 → 1.0.5

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 (2) hide show
  1. package/index.js +12 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -86,9 +86,19 @@ fs.writeJsonSync(".prettierrc", {
86
86
  trailingComma: "es5"
87
87
  }, { spaces: 2 });
88
88
 
89
+ fs.writeFileSync(
90
+ ".prettierignore",
91
+ "node_modules\ndist\nbuild\n.husky\ncspell.json\n"
92
+ );
93
+
94
+ fs.writeFileSync(
95
+ ".gitignore",
96
+ "# Logs\nlogs\n*.log\nnpm-debug.log*\n\n# Dependencies\nnode_modules\n\n# Build output\ndist\nbuild\n\n# Local env files\n.env\n.env.local\n.env.*.local\n\n# Editor\n.vscode\n.idea\n\n# OS\n.DS_Store\nThumbs.db\n"
97
+ );
98
+
89
99
  const packageJson = fs.readJsonSync("package.json");
90
- packageJson.scripts["spell-check"] = "cspell \"src/**/*.{js,jsx,ts,tsx,scss}\"";
91
- packageJson.scripts["format"] = "prettier --write src/**/*.{js,jsx,ts,tsx,scss,css}";
100
+ packageJson.scripts["spell-check"] = "cspell --no-must-find-files \"src/**/*.{js,jsx,ts,tsx,scss}\"";
101
+ packageJson.scripts["format"] = "prettier --write --no-error-on-unmatched-pattern src/**/*.{js,jsx,ts,tsx,scss,css}";
92
102
  fs.writeJsonSync("package.json", packageJson, { spaces: 2 });
93
103
 
94
104
  fs.writeJsonSync("cspell.json", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sb-react",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "React Vite CLI",
5
5
  "bin": {
6
6
  "create-sb-react": "./index.js"