create-zerra-app 1.0.0 → 1.0.1

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.
package/index.js CHANGED
@@ -10,7 +10,7 @@ program
10
10
  .argument("<project-name>")
11
11
  .action((projectName) => {
12
12
  const targetPath = path.join(process.cwd(), projectName);
13
- const templatePath = path.join(__dirname, "../templates/js-base");
13
+ const templatePath = path.join(__dirname, "templates/js-base");
14
14
 
15
15
  fs.copySync(templatePath, targetPath);
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zerra-app",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1 @@
1
+ console.log("Welcome to your new Zerra application!");
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "zerra-app",
3
+ "version": "1.0.0",
4
+ "scripts": {
5
+ "dev": "node server.js"
6
+ }
7
+ }
@@ -0,0 +1,9 @@
1
+ const http = require("http");
2
+
3
+ const server = http.createServer((req, res) => {
4
+ res.end("Zerra server running 🚀");
5
+ });
6
+
7
+ server.listen(3000, () => {
8
+ console.log("Server running on http://localhost:3000");
9
+ });