sqlaravel 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,5 @@
1
+ /* Update: 20220929 */
2
+
1
3
  "use strict";
2
4
 
3
5
  import gulp from "gulp";
@@ -24,11 +26,13 @@ const
24
26
  paths = {
25
27
  js: {
26
28
  src: [
27
- "js/*.js"
29
+ "js/*.js",
30
+ "js/modules/*.js"
28
31
 
29
32
  ],
30
33
  dest: [
31
- "../public/js/"
34
+ "../public/js/min/",
35
+ "../public/js/min/modules/",
32
36
  ]
33
37
  }
34
38
  },
@@ -41,11 +45,11 @@ const
41
45
  ],
42
46
  paths_dest_css = [
43
47
  "../public/css/",
44
- "../public/css/components/"
48
+ "../public/css/modules/"
45
49
  ],
46
50
  paths_compile_scss = [
47
51
  "assets/scss/*.scss",
48
- "assets/scss/components/*.scss"
52
+ "assets/scss/modules/*.scss"
49
53
  ],
50
54
 
51
55
  path_svg = "assets/scss/svg/*.scss",
@@ -57,7 +61,7 @@ const
57
61
 
58
62
  paths_js = [
59
63
  "assets/js/*.js",
60
- "assets/js/components/*.js"
64
+ "assets/js/modules/*.js"
61
65
  ]
62
66
  ;
63
67
 
@@ -120,44 +124,6 @@ gulp.task("scss", function () {
120
124
  });
121
125
  */
122
126
 
123
- task("lint", function() {
124
- console.log("");
125
- console.log("---- ES-LINT ----");
126
-
127
- let task_array = [];
128
-
129
- for (let i = 0; i < paths.js.src.length; i++) {
130
- task_array[i] = src(paths.js.src[i])
131
- .pipe(eslint({}))
132
- .pipe(eslint.format())
133
- .pipe(eslint.results(results => {
134
- // Called once for all ESLint results.
135
- console.log(`Total Results: ${results.length}`);
136
- console.log(`Total Warnings: ${results.warningCount}`);
137
- console.log(`Total Errors: ${results.errorCount}`);
138
- console.log("");
139
- }));
140
- }
141
-
142
- console.log("");
143
- return merge(...task_array);
144
- });
145
-
146
- task("js", function () {
147
- console.log("");
148
- console.log("---- JS ----");
149
-
150
- let task_array = [];
151
-
152
- for (let i = 0; i < paths.js.src.length; i++) {
153
- task_array[i] = src(paths.js.src[i])
154
- .pipe(uglify())
155
- .pipe(gulp.dest(paths.js.dest));
156
- }
157
-
158
- console.log("");
159
- return merge(...task_array);
160
- });
161
127
 
162
128
  /*
163
129
  gulp.task("jsonlint", function () {
@@ -204,11 +170,52 @@ task("watch", function () {
204
170
  });
205
171
  */
206
172
 
173
+ /*
174
+ task("js", function () {
175
+ console.log("");
176
+ console.log("---- JS ----");
177
+
178
+ let task_array = [];
179
+
180
+ for (let i = 0; i < paths.js.src.length; i++) {
181
+ task_array[i] = src(paths.js.src[i])
182
+ .pipe(uglify())
183
+ .pipe(gulp.dest(paths.js.dest));
184
+ }
185
+
186
+ console.log("");
187
+ return merge(...task_array);
188
+ });
189
+ */
190
+
191
+ task("lint", function() {
192
+ console.log("");
193
+ console.log("---- ES-LINT ----");
194
+
195
+ let task_array = [];
196
+
197
+ for (let i = 0; i < paths.js.src.length; i++) {
198
+ task_array[i] = src(paths.js.src[i])
199
+ .pipe(eslint({}))
200
+ .pipe(eslint.format())
201
+ .pipe(eslint.results(results => {
202
+ // Called once for all ESLint results.
203
+ console.log(`Total Results: ${results.length}`);
204
+ console.log(`Total Warnings: ${results.warningCount}`);
205
+ console.log(`Total Errors: ${results.errorCount}`);
206
+ console.log("");
207
+ }));
208
+ }
209
+
210
+ console.log("");
211
+ return merge(...task_array);
212
+ });
213
+
207
214
  function watchFiles() {
208
215
  console.log("");
209
216
  console.log("---- INICIADO WATCH ----");
210
217
 
211
- watch(paths.js.src, series("lint", "js"));
218
+ watch(paths.js.src, series("lint"));
212
219
  // gulp.watch(paths.styles.src, styles);
213
220
  }
214
221
 
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sqlaravel",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Base to start projects in Laravel, simply and quickly",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -28,6 +28,7 @@
28
28
  "gulp-postcss": "^9.0.1",
29
29
  "gulp-sass": "^5.1.0",
30
30
  "gulp-svgmin": "^4.1.0",
31
+ "gulp-uglify": "^3.0.2",
31
32
  "merge-stream": "^2.0.0",
32
33
  "postcss": "^8.4.14",
33
34
  "postcss-inline-svg": "^5.0.0",