mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-06 06:46:48 -04:00
Fix debug mode + simplify Gruntfile
This commit is contained in:
38
Gruntfile.js
38
Gruntfile.js
@@ -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: {
|
||||
|
||||
@@ -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; ?>
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
16
public/dist/opensourcepos.min.css
vendored
16
public/dist/opensourcepos.min.css
vendored
File diff suppressed because one or more lines are too long
2
public/dist/opensourcepos.min.js
vendored
2
public/dist/opensourcepos.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user