We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1bab1 commit d78ad93Copy full SHA for d78ad93
4 files changed
package.json
@@ -2,7 +2,11 @@
2
"name": "create-react-webpack",
3
"version": "0.0.1",
4
"description": "create-react-webpack ",
5
- "main": "create.js",
+ "main": "scripts/create.js",
6
+ "bin": {
7
+ "create-react-webpack": "startApp.sh"
8
+ },
9
+ "preferGlobal": true,
10
"scripts": {
11
"create-react-webpack": "node scripts/create.js"
12
},
scripts/create.js
100644
100755
startApp.sh
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env node
+
+const path = require("path");
+const child_process = require("child_process");
+var args = process.argv.slice(2);
+var dirName = args[0];
+var p=path.join(__dirname,"scripts/create.js")
+child_process.execSync(`node ${p} ${dirName}`,{ stdio: "inherit" });
template/temp.txt
0 commit comments