Fix debug mode + simplify Gruntfile

This commit is contained in:
jekkos committed 2016-10-06 22:12:33 +02:00
1 parent fd50f6079e
commit 8217b70984
20 files changed
+19 -43

No files matched your search

+7 -31
View File
@@ -23,30 +23,6 @@ module.exports = function(grunt) {
options: {
report: false
},
targetcssdist: {
options: {
srcPrefix: 'css',
destPrefix: 'public/dist'
},
files: {
'login.css': 'login.css',
'style.css': 'style.css',
'invoice_email.css': 'invoice_email.css',
'barcode_font.css': 'barcode_font.css'
}
},
targetdist: {
options: {
destPrefix: 'public/dist'
},
files: {
'login.css': '../../css/login.css',
'style.css': '../../css/style.css',
'invoice_email.css': '../../css/invoice_email.css',
'barcode_font.css': '../../css/barcode_font.css',
'jquery-ui.css': 'jquery-ui/themes/base/jquery-ui.css',
}
},
targetdistbootswatch: {
options: {
srcPrefix: 'public/bower_components/bootswatch',
@@ -82,7 +58,7 @@ module.exports = function(grunt) {
cssmin: {
target: {
files: {
'public/dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'css/*.css', '!css/login.css', '!css/invoice_email.css', '!css/barcode_font.css', '!css/style.css']
'public/dist/<%= pkg.name %>.min.css': ['tmp/opensourcepos_bower.css', 'public/css/*.css', '!public/css/login.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css', '!public/css/style.css']
}
}
},
@@ -92,7 +68,7 @@ module.exports = function(grunt) {
separator: ';'
},
files: {
'tmp/<%= pkg.name %>.js': ['tmp/opensourcepos_bower.js', 'js/jquery*', 'js/*.js']
'tmp/<%= pkg.name %>.js': ['tmp/opensourcepos_bower.js', 'public/js/jquery*', 'public/js/*.js']
}
},
sql: {
@@ -116,7 +92,7 @@ module.exports = function(grunt) {
}
},
jshint: {
files: ['Gruntfile.js', 'js/*.js'],
files: ['Gruntfile.js', 'public/js/*.js'],
options: {
// options here to override JSHint defaults
globals: {
@@ -133,9 +109,9 @@ module.exports = function(grunt) {
scriptTemplate: '<rel type="text/css" src="{{ path }}"></rel>',
openTag: '<!-- start css template tags -->',
closeTag: '<!-- end css template tags -->',
ignorePath: '../../../'
ignorePath: '../../../public/'
},
src: ['css/*.css', '!css/login.css', '!css/invoice_email.css', '!css/barcode_font.css'],
src: ['public/css/*.css', '!public/css/login.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css'],
dest: 'application/views/partial/header.php',
},
mincss_header: {
@@ -163,9 +139,9 @@ module.exports = function(grunt) {
scriptTemplate: '<script type="text/javascript" src="{{ path }}"></script>',
openTag: '<!-- start js template tags -->',
closeTag: '<!-- end js template tags -->',
ignorePath: '../../../'
ignorePath: '../../../public/'
},
src: ['js/jquery*', 'js/*.js'],
src: ['public/js/jquery*', 'public/js/*.js'],
dest: 'application/views/partial/header.php'
},
minjs: {
+2 -2
View File
@@ -69,11 +69,11 @@
<![endif]-->
<!-- start mincss template tags -->
<link rel="stylesheet" type="text/css" href="dist/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=838e46d56e"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=d5b9522f2f"/>
<link rel="stylesheet" type="text/css" href="dist/style.css"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=0586fe3ddf"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=9a77ed1ae9"></script>
<!-- end minjs template tags -->
<?php endif; ?>
+1 -1
View File
@@ -11,11 +11,11 @@ RewriteEngine On
# RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
# RewriteCond %{HTTP_HOST} (.+)$ [NC]
# RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# if in web root
RewriteRule ^(.*)$ index.php?/$1 [L]
# if in subdir comment above line, uncomment below one and replace <OSPOS path> with your path
# RewriteRule ^(.*)$ /<OSPOS path>/public/index.php?/$1 [L]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+8 -8
View File
File diff suppressed because one or more lines are too long.
+1 -1
View File
File diff suppressed because one or more lines are too long.
File renamed without changes.
File renamed without changes.
File renamed without changes.