sqlaravel 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "sqlaravel",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.3",
|
4
4
|
"description": "Base to start projects in Laravel, simply and quickly",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -24,17 +24,17 @@
|
|
24
24
|
},
|
25
25
|
"homepage": "https://github.com/esutoraiki/sqLARAVEL#readme",
|
26
26
|
"dependencies": {
|
27
|
-
"del": "^
|
27
|
+
"del": "^7.0.0",
|
28
28
|
"gulp": "^4.0.2",
|
29
29
|
"gulp-eslint": "^6.0.0",
|
30
30
|
"gulp-jsonlint": "^1.3.2",
|
31
31
|
"gulp-postcss": "^9.0.1",
|
32
|
-
"gulp-sass": "^5.
|
33
|
-
"gulp-svgmin": "^4.0
|
32
|
+
"gulp-sass": "^5.1.0",
|
33
|
+
"gulp-svgmin": "^4.1.0",
|
34
34
|
"merge-stream": "^2.0.0",
|
35
|
-
"postcss": "^8.
|
35
|
+
"postcss": "^8.4.14",
|
36
36
|
"postcss-inline-svg": "^5.0.0",
|
37
|
-
"sass": "^1.
|
37
|
+
"sass": "^1.54.0",
|
38
38
|
"sisass": "^1.1.13"
|
39
39
|
}
|
40
40
|
}
|
@@ -1,72 +0,0 @@
|
|
1
|
-
const
|
2
|
-
http = require("http"),
|
3
|
-
fs = require("fs"),
|
4
|
-
path = require("path"),
|
5
|
-
|
6
|
-
arg = require("./arg.js").arg,
|
7
|
-
fn = require("./fn.js"),
|
8
|
-
|
9
|
-
// Arguments
|
10
|
-
port = Number(arg.port) || Number(arg.p) || 8125,
|
11
|
-
view = fn.stringToBoolean(arg.log) || false
|
12
|
-
;
|
13
|
-
|
14
|
-
http.createServer(function (request, response) {
|
15
|
-
if (view) {
|
16
|
-
let
|
17
|
-
timeElapsed = Date.now(),
|
18
|
-
t = new Date(timeElapsed),
|
19
|
-
hour = t.getHours() + ":" + t.getMinutes() + ":" + t.getSeconds()
|
20
|
-
;
|
21
|
-
|
22
|
-
console.log("["+ hour + "]", request.url);
|
23
|
-
}
|
24
|
-
|
25
|
-
|
26
|
-
var filePath = "." + request.url;
|
27
|
-
|
28
|
-
if (filePath == "./") {
|
29
|
-
filePath = "./index.html";
|
30
|
-
}
|
31
|
-
|
32
|
-
var extname = String(path.extname(filePath)).toLowerCase();
|
33
|
-
var contentType = "text/html";
|
34
|
-
var mimeTypes = {
|
35
|
-
".html": "text/html",
|
36
|
-
".js": "text/javascript",
|
37
|
-
".css": "text/css",
|
38
|
-
".json": "application/json",
|
39
|
-
".png": "image/png",
|
40
|
-
".jpg": "image/jpg",
|
41
|
-
".gif": "image/gif",
|
42
|
-
".wav": "audio/wav",
|
43
|
-
".mp4": "video/mp4",
|
44
|
-
".woff": "application/font-woff",
|
45
|
-
".ttf": "applilcation/font-ttf",
|
46
|
-
".eot": "application/vnd.ms-fontobject",
|
47
|
-
".otf": "application/font-otf",
|
48
|
-
".svg": "application/image/svg+xml",
|
49
|
-
".scss": "text/x-scss"
|
50
|
-
};
|
51
|
-
|
52
|
-
contentType = mimeTypes[extname] || "application/octect-stream";
|
53
|
-
fs.readFile(filePath, function (error, content) {
|
54
|
-
if (error) {
|
55
|
-
if (error.code === "ENOENT"){
|
56
|
-
fs.readFile("./404.html", function (error, content) {
|
57
|
-
response.writeHead(200, { "Content-Type": contentType });
|
58
|
-
response.end(content, "utf-8");
|
59
|
-
});
|
60
|
-
} else {
|
61
|
-
response.writeHead(500);
|
62
|
-
response.end("Sorry, check with the site admin for error: "+error.code+" ..\n");
|
63
|
-
response.end();
|
64
|
-
}
|
65
|
-
} else {
|
66
|
-
response.writeHead(200, { "Content-Type": contentType });
|
67
|
-
response.end(content, "utf-8");
|
68
|
-
}
|
69
|
-
});
|
70
|
-
}).listen(port);
|
71
|
-
|
72
|
-
console.log("Server running at http://localhost:" + port + "/");
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# Node artifact files
|
2
|
-
node_modules/
|
3
|
-
dist/
|
4
|
-
|
5
|
-
# Log files
|
6
|
-
*.log
|
7
|
-
|
8
|
-
# Generated by MacOS
|
9
|
-
.DS_Store
|
10
|
-
|
11
|
-
# Generated by Windows
|
12
|
-
Thumbs.db
|
13
|
-
|
14
|
-
# Applications
|
15
|
-
*.app
|
16
|
-
*.exe
|
17
|
-
*.war
|
18
|
-
.vscode
|
19
|
-
|
20
|
-
# Linux
|
21
|
-
*.vim
|
22
|
-
*.swp
|
23
|
-
*.swo
|
24
|
-
*.out
|
25
|
-
*.*~
|