Commit c84f58dd46b56d939cb8f99c184bb4f9e9e56b1f

Authored by Nicolás Guarnieri
1 parent aa3188b2d2
Exists in master

codigo inicial prueba

File was created 1 node_modules/
2 dist/
3
4 package-lock\.json
5
File was created 1 {
2 /*
3 * ENVIRONMENTS
4 * =================
5 */
6
7 // Define globals exposed by modern browsers.
8 "browser": true,
9
10 // Define globals exposed by jQuery.
11 "jquery": true,
12
13 // Define globals exposed by Node.js.
14 "node": true,
15
16 // Allow ES6.
17 "esversion": 6,
18
19 /*
20 * ENFORCING OPTIONS
21 * =================
22 */
23
24 // Force all variable names to use either camelCase style or UPPER_CASE
25 // with underscores.
26 "camelcase": true,
27
28 // Prohibit use of == and != in favor of === and !==.
29 "eqeqeq": true,
30
31 // Enforce tab width of 2 spaces.
32 "indent": 4,
33
34 // Prohibit use of a variable before it is defined.
35 "latedef": true,
36
37 // Enforce line length to 100 characters
38 "maxlen": 100,
39
40 // Require capitalized names for constructor functions.
41 "newcap": true,
42
43 // Enforce use of single quotation marks for strings.
44 "quotmark": "single",
45
46 // Enforce placing 'use strict' at the top function scope
47 "strict": false,
48
49 // Prohibit use of explicitly undeclared variables.
50 "undef": true,
51
52 // Warn when variables are defined but never used.
53 "unused": true,
54
55 // Para que funcione en angular
56 "predef": ["angular", "alert", "spyOn", "expect", "it", "inject", "beforeEach", "describe"],
57 /*
58 * RELAXING OPTIONS
59 * =================
60 */
61
62 // Suppress warnings about == null comparisons.
63 "eqnull": true
64 }
65
File was created 1 const gulp = require('gulp');
2 const sass = require('gulp-sass');
3 const concat = require('gulp-concat');
4 const rename = require('gulp-rename');
5 const uglify = require('gulp-uglify-es').default;
6 const pump = require('pump');
7 const jshint = require('gulp-jshint');
8 const replace = require('gulp-replace');
9 const connect = require('gulp-connect');
10 const watch = require('gulp-watch');
11
12 var paths = {
13 srcHTML : 'src/views/*.html',
14 srcJS : 'src/**/*.js',
15 dist : 'dist/',
16 distHTML : 'dist/views/'
17 };
18
19 gulp.task('uglify', function() {
20 pump(
21 [
22 gulp.src(paths.srcJS),
23 concat('wrapper-demo.js'),
24 replace('/src/', '/dist/'),
25 gulp.dest(paths.dist),
26 rename('wrapper-demo.min.js'),
27 uglify(),
28 gulp.dest(paths.dist)
29 ]
30 );
31 });
32
33 gulp.task('html', function() {
34 pump([
35 gulp.src('index.html'),
36 replace(/\<!\-\- BUILD \-\-\>.*\<!\-\- \/BUILD \-\-\>/sgm, '<script src="wrapper-demo.min.js"></script>'),
37 gulp.dest(paths.dist)
38 ]);
39 pump([
40 gulp.src(paths.srcHTML),
41 gulp.dest(paths.distHTML)
42 ]);
43 })
44
45 gulp.task('sass', function() {
46 return gulp.src('src/style/scss/**/*.scss')
47 .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
48 .pipe(gulp.dest('css'));
49 });
50
51 gulp.task('pre-commit', function() {
52 pump(
53 [
54 gulp.src(paths.srcJS),
55 jshint('.jshintrc'),
56 jshint.reporter('default'),
57 jshint.reporter('fail')
58 ]
59 );
60 gulp.start('uglify');
61 gulp.start('sass');
62 });
63
64 gulp.task('webserver', function() {
65 pump [
66 connect.server(
67 {
68 port: 3000,
69 livereload: true
70 }
71 )
72 ]
73 });
74
75 gulp.task('watch', function() {
76 gulp.watch(archivosJS, ['uglify']);
77 gulp.watch('css/scss/*.scss', ['sass']);
78 })
79
80 gulp.task('reload'), function() {
81 connect.reload();
82 }
83
84 gulp.task('livereload', function() {
85 gulp.watch('css/*.css', ['reload']);
86 gulp.watch('js/dist/*.js', ['reload']);
87 gulp.watch('vistas/**/*.html', ['reload']);
88 });
89
90 gulp.task('default', ['webserver']);
91
File was created 1 <html ng-app="appWrapperDemo">
2 <head>
3 <meta charset="UTF-8"/>
4 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5 <base href="./">
6
7 <!--CSS-->
8 <link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
9 <link href="./node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
10
11 <!--VENDOR JS-->
12 <script src="./node_modules/jquery/dist/jquery.min.js"></script>
13 <script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
14 <script src="./node_modules/angular/angular.min.js"></script>
15 <script src="./node_modules/angular-route/angular-route.min.js"></script>
16 <script src="./node_modules/foca-botonera-horizontal/dist/botonera-horizontal.min.js"></script>
17 <script src="./node_modules/foca-turno-apertura/dist/foca-turno-apertura.min.js"></script>
18
19 <!-- BUILD -->
20 <script src="./src/js/app.js"></script>
21 <!-- /BUILD -->
22 </head>
23 <body>
24 <botonera-horizontal></botonera-horizontal>
25 <div ng-view id="contenedor" class="container-fluid" style="margin-bottom: 100px"></div>
26 </body>
27 </html>
28
File was created 1 {
2 "name": "wrapper-demo",
3 "version": "0.0.1",
4 "description": "",
5 "main": "main.js",
6 "scripts": {
7 "initdev": "npm install gulp --global && npm install && npm install -g jshint",
8 "gulp-pre-commit": "gulp pre-commit",
9 "compile": "gulp uglify && gulp sass",
10 "electron": "electron .",
11 "electron-build": "gulp uglify && gulp html && gulp sass && electron ."
12 },
13 "pre-commit": [
14 "gulp-pre-commit"
15 ],
16 "repository": {
17 "type": "git",
18 "url": "https://192.168.0.11/Wrappers/wrapper-demo.git"
19 },
20 "author": "Nicolas Guarnieri",
21 "license": "ISC",
22 "dependencies": {
23 "angular": "^1.7.4",
24 "angular-route": "1.7.3",
25 "bootstrap": "4.1.3",
26 "foca-botonera-horizontal": "git+https://192.168.0.11/modulos-npm/foca-botonera-horizontal.git",
27 "foca-turno-apertura": "git+https://192.168.0.11/modulos-npm/foca-turno-apertura.git",
28 "font-awesome": "4.7.0",
29 "jquery": "3.3.1"
30 },
31 "devDependencies": {
32 "gulp": "3.9.1",
33 "gulp-concat": "2.6.1",
34 "gulp-connect": "^5.6.1",
35 "gulp-jshint": "^2.1.0",
36 "gulp-rename": "1.4.0",
37 "gulp-replace": "^1.0.0",
38 "gulp-sass": "4.0.1",
39 "gulp-uglify-es": "^1.0.4",
40 "gulp-watch": "^5.0.1",
41 "jasmine-core": "3.2.1",
42 "jshint": "^2.9.6",
43 "pre-commit": "^1.2.2",
44 "pump": "^3.0.0"
45 }
46 }
47
File was created 1 angular.module('appWrapperDemo', ['ngRoute', 'focaBotoneraHorizontal', 'focaTurnoApertura']);
2
src/js/placeholder.js
src/sass/general.scss
src/views/placeholder.html