mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-28 04:46:33 -05:00
Remove Gruntfile.js + bower.json (#3842)
This commit is contained in:
203
Gruntfile.js
203
Gruntfile.js
@@ -1,203 +0,0 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
dist_files = [
|
||||
{
|
||||
src: [
|
||||
'public/**',
|
||||
'vendor/**',
|
||||
'app/**',
|
||||
'!/tests',
|
||||
'!grunt045**',
|
||||
'!/public/images/menubar/png/',
|
||||
'!/public/dist/bootswatch/',
|
||||
'/public/dist/bootswatch/*/*.css',
|
||||
'!/public/dist/bootswatch-5/',
|
||||
'/public/dist/bootswatch-5/*/*.css',
|
||||
'app/Database/**',
|
||||
'*.txt',
|
||||
'*.md',
|
||||
'LICENSE',
|
||||
'docker*',
|
||||
'docker/**',
|
||||
'Dockerfile',
|
||||
'**/.htaccess',
|
||||
'*.csv'
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
ospos_css = ['public/css/*.css',
|
||||
'!public/css/login.css',
|
||||
'!public/css/login.min.css',
|
||||
'!public/css/invoice_email.css',
|
||||
'!public/css/barcode_font.css',
|
||||
'!public/css/darkly.css'];
|
||||
|
||||
ospos_js = ['public/dist/bootstrap/js/*.min.js',
|
||||
'public/js/jquery*',
|
||||
'public/js/*.js'];
|
||||
|
||||
ospos_min_css = ['public/dist/jquery-ui/*.css',
|
||||
'public/dist/*.css'];
|
||||
|
||||
ospos_min_js = ['public/dist/*min.js'];
|
||||
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
wiredep: {
|
||||
task: {
|
||||
ignorePath: '../../../public/',
|
||||
src: ['app/Views/partial/header.php']
|
||||
}
|
||||
},
|
||||
injector: {
|
||||
options: {
|
||||
lineEnding: '\n',
|
||||
ignorePath: 'public/',
|
||||
addRootSlash: false,
|
||||
},
|
||||
css_js_header: {
|
||||
files: {
|
||||
'app/Views/partial/header.php': [ospos_css, ospos_js]
|
||||
},
|
||||
},
|
||||
mincss_header: {
|
||||
options: {
|
||||
starttag: '<!-- mincss injector:css -->',
|
||||
},
|
||||
files: {
|
||||
'app/Views/partial/header.php': [ospos_min_css]
|
||||
},
|
||||
},
|
||||
minjs: {
|
||||
options: {
|
||||
starttag: '<!-- minjs injector:js -->',
|
||||
},
|
||||
files: {
|
||||
'app/Views/partial/header.php': [ospos_min_js]
|
||||
},
|
||||
},
|
||||
css_login: {
|
||||
files: {
|
||||
'app/Views/login.php': ['public/css/login.min.css']
|
||||
},
|
||||
},
|
||||
},
|
||||
bowercopy: {
|
||||
options: {
|
||||
report: false
|
||||
},
|
||||
targetdistjqueryui: {
|
||||
options: {
|
||||
srcPrefix: 'public/resources/jquery-ui',
|
||||
destPrefix: 'public/dist'
|
||||
},
|
||||
files: {
|
||||
'jquery-ui': 'themes/base/jquery-ui.min.css'
|
||||
}
|
||||
},
|
||||
targetdistbootswatch: {
|
||||
options: {
|
||||
srcPrefix: 'public/resources/bootswatch',
|
||||
destPrefix: 'public/dist'
|
||||
},
|
||||
files: {
|
||||
bootswatch: '*/'
|
||||
}
|
||||
},
|
||||
targetlicense: {
|
||||
options: {
|
||||
srcPrefix: './'
|
||||
},
|
||||
files: {
|
||||
'public/license': 'LICENSE'
|
||||
}
|
||||
}
|
||||
},
|
||||
cssmin: {
|
||||
target: {
|
||||
files: {
|
||||
'public/dist/opensourcepos.min.css': ['tmp/opensourcepos_bower.css', 'public/css/*.css', '!public/css/login.css', '!public/css/login.min.css', '!public/css/invoice_email.css', '!public/css/barcode_font.css', '!public/css/darkly.css'],
|
||||
'public/css/login.min.css': ['public/css/login.css']
|
||||
}
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
js: {
|
||||
options: {
|
||||
separator: '\n'
|
||||
},
|
||||
files: {
|
||||
'tmp/opensourcepos.js': ['public/dist/jquery/jquery.js', 'tmp/opensourcepos_bower.js', 'public/js/*.js']
|
||||
}
|
||||
},
|
||||
sql: {
|
||||
options: {
|
||||
banner: '-- >> This file is autogenerated from tables.sql and constraints.sql. Do not modify directly << --'
|
||||
},
|
||||
files: {
|
||||
'app/Database/database.sql': ['app/Database/tables.sql', 'app/Database/constraints.sql'],
|
||||
'app/Database/migrate_phppos_dist.sql': ['app/Database/tables.sql', 'app/Database/Migrations/sqlscripts/pre-3.0.2/phppos_migrate.sql', 'database/constraints.sql']
|
||||
}
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
banner: '/*! opensourcepos <%= grunt.template.today("dd-mm-yyyy") %> */\n'
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
'public/dist/opensourcepos.min.js': ['tmp/opensourcepos.js']
|
||||
}
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
files: ['public/js/imgpreview.full.jquery.js',
|
||||
'public/js/manage_tables.js',
|
||||
'public/js/nominatim.autocomplete.js'],
|
||||
options: {
|
||||
esversion: 6,
|
||||
globals: {
|
||||
jQuery: true,
|
||||
console: true,
|
||||
module: true,
|
||||
document: true
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
files: ['<%= jshint.files %>'],
|
||||
tasks: ['jshint']
|
||||
},
|
||||
compress: {
|
||||
tar: {
|
||||
options: {
|
||||
mode: 'tar',
|
||||
archive: 'dist/opensourcepos.tgz',
|
||||
level: 2,
|
||||
},
|
||||
files: dist_files
|
||||
},
|
||||
zip: {
|
||||
options: {
|
||||
mode: 'zip',
|
||||
archive: 'dist/opensourcepos.zip',
|
||||
},
|
||||
files: dist_files
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||
|
||||
grunt.registerTask('task1', ['wiredep']);
|
||||
grunt.registerTask('task3', ['bowercopy']);
|
||||
grunt.registerTask('task5', ['concat','uglify','cssmin','injector','jshint']);
|
||||
grunt.registerTask('task7', ['compress']);
|
||||
|
||||
grunt.registerTask('watch', ['watch']);
|
||||
|
||||
};
|
||||
84
bower.json
84
bower.json
@@ -1,84 +0,0 @@
|
||||
{
|
||||
"name": "opensourcepos",
|
||||
"description": "Open Source Point of Sale is a web-based POS system written in the PHP language. It uses MySQL as backend and has a simple user interface",
|
||||
"version": "3.4.0",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
"jekkos <jekkos - at - opensourcepos.org>",
|
||||
"FrancescoUK <francesco.lodolo.uk - at - gmail.com>"
|
||||
],
|
||||
"keywords": [
|
||||
"point-of-sale",
|
||||
"POS"
|
||||
],
|
||||
"homepage": "https://github.com/opensourcepos/opensourcepos",
|
||||
"private": true,
|
||||
"moduleType": [
|
||||
"globals"
|
||||
],
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery-form": "~4.3.0",
|
||||
"jquery-validate": "~1.19.2",
|
||||
"jquery": "~2.1.4",
|
||||
"jquery-ui": "~1.12.1",
|
||||
"bootstrap3-dialog": "https://github.com/nakupanda/bootstrap3-dialog.git#master",
|
||||
"jasny-bootstrap": "~3.1.3",
|
||||
"bootswatch": "3.4.1+1",
|
||||
"smalot-bootstrap-datetimepicker": "~2.4.4",
|
||||
"bootstrap-select": "~1.13.18",
|
||||
"bootstrap-table": "~1.18.1",
|
||||
"bootstrap-daterangepicker": "~2.1.27",
|
||||
"tableExport.jquery.plugin": "1.10.22",
|
||||
"jspdf": "1.3.4",
|
||||
"jspdf-autotable": "https://github.com/simonbengtsson/jsPDF-AutoTable.git#v2.0.14",
|
||||
"html2canvas": "~0.4.1",
|
||||
"chartist": "0.11.4",
|
||||
"chartist-plugin-axistitle": "0.0.7",
|
||||
"chartist-plugin-pointlabels": "0.0.4",
|
||||
"chartist-plugin-tooltip": "https://github.com/tmmdata/chartist-plugin-tooltip.git#0.0.18",
|
||||
"chartist-plugin-barlabels": "https://github.com/mtgibbs/chartist-plugin-barlabels.git#0.0.5",
|
||||
"remarkable-bootstrap-notify": "~3.1.3",
|
||||
"js-cookie": "~2.2.1",
|
||||
"bootstrap-tagsinput": "https://github.com/bootstrap-tagsinput/bootstrap-tagsinput.git#~0.8.0",
|
||||
"bootstrap-toggle": "^2.2.2"
|
||||
},
|
||||
"resolutions": {
|
||||
"jspdf": "1.3.4",
|
||||
"chartist": "0.9.8"
|
||||
},
|
||||
"overrides": {
|
||||
"jquery-ui": {
|
||||
"main": [
|
||||
"themes/base/jquery-ui.css",
|
||||
"jquery-ui.js"
|
||||
]
|
||||
},
|
||||
"table-export": {
|
||||
"main": [
|
||||
"tableExport.js"
|
||||
]
|
||||
},
|
||||
"chartist-axis-plugin": {
|
||||
"main": [
|
||||
"dist/chartist-plugin-axistitle.js"
|
||||
]
|
||||
},
|
||||
"bootstrap-table": {
|
||||
"main": [
|
||||
"dist/bootstrap-table.min.js",
|
||||
"dist/bootstrap-table.css",
|
||||
"dist/extensions/export/bootstrap-table-export.min.js",
|
||||
"dist/extensions/mobile/bootstrap-table-mobile.min.js",
|
||||
"dist/extensions/sticky-header/bootstrap-table-sticky-header.min.js",
|
||||
"dist/extensions/sticky-header/bootstrap-table-sticky-header.css"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"directory": "../public/resources"
|
||||
}
|
||||
@@ -1,128 +0,0 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
bower_concat: {
|
||||
all: {
|
||||
mainFiles: {
|
||||
'bootstrap-table': [
|
||||
'dist/bootstrap-table.min.js',
|
||||
'dist/bootstrap-table.css',
|
||||
'dist/extensions/export/bootstrap-table-export.min.js',
|
||||
'dist/extensions/mobile/bootstrap-table-mobile.min.js',
|
||||
'dist/extensions/sticky-header/bootstrap-table-sticky-header.min.js',
|
||||
'dist/extensions/sticky-header/bootstrap-table-sticky-header.css'
|
||||
],
|
||||
'chartist-plugin-axistitle': [ "dist/chartist-plugin-axistitle.min.js"]
|
||||
},
|
||||
dest: {
|
||||
'js': '../tmp/opensourcepos_bower.js',
|
||||
'css': '../tmp/opensourcepos_bower.css'
|
||||
}
|
||||
}
|
||||
},
|
||||
copy: {
|
||||
themes: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: '../node_modules/bootstrap/dist/css',
|
||||
src: ['bootstrap.css', 'bootstrap.min.css'],
|
||||
dest: '../public/dist/bootswatch-5/bootstrap/',
|
||||
filter: 'isFile'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: '../node_modules/bootswatch/dist',
|
||||
src: ['**/bootstrap.css', '**/bootstrap.min.css'],
|
||||
dest: '../public/dist/bootswatch-5/',
|
||||
filter: 'isFile'
|
||||
}
|
||||
],
|
||||
},
|
||||
licenses: {
|
||||
files: [{
|
||||
expand: true,
|
||||
src: 'LICENSE',
|
||||
dest: 'public/license/',
|
||||
filter: 'isFile',},
|
||||
{
|
||||
expand: true,
|
||||
cwd: '../node_modules/bootstrap',
|
||||
src: 'LICENSE',
|
||||
dest: '../public/license/',
|
||||
rename: function(dest, src) { return dest + src.replace('LICENSE', 'bootstrap-5.license'); },
|
||||
filter: 'isFile'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: '../node_modules/bootswatch',
|
||||
src: 'LICENSE',
|
||||
dest: '../public/license/',
|
||||
rename: function(dest, src) { return dest + src.replace('LICENSE', 'bootswatch-5.license'); },
|
||||
filter: 'isFile'
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
cachebreaker: {
|
||||
dev: {
|
||||
options: {
|
||||
match: [ {
|
||||
'opensourcepos.min.js': '../public/dist/opensourcepos.min.js',
|
||||
'opensourcepos.min.css': '../public/dist/opensourcepos.min.css'
|
||||
} ],
|
||||
replacement: 'md5'
|
||||
},
|
||||
files: {
|
||||
src: ['../app/Views/partial/header.php', '../app/Views/login.php']
|
||||
}
|
||||
}
|
||||
},
|
||||
clean: {
|
||||
options: {
|
||||
force: true
|
||||
},
|
||||
bower: ["../public/resources"],
|
||||
composer: ["../vendor"],
|
||||
license: ['../public/resources/**/bower.json'],
|
||||
npm: ["../node_modules"]
|
||||
},
|
||||
license: {
|
||||
all: {
|
||||
options: {
|
||||
directory: '../public/resources',
|
||||
output: '../public/license/bower.LICENSES'
|
||||
}
|
||||
}
|
||||
},
|
||||
'bower-licensechecker': {
|
||||
options: {
|
||||
acceptable: [ 'MIT', 'BSD', 'LICENSE.md' ],
|
||||
printTotal: true,
|
||||
warn: {
|
||||
nonBower: true,
|
||||
noLicense: true,
|
||||
allGood: true,
|
||||
noGood: true
|
||||
},
|
||||
log: {
|
||||
outFile: '../public/license/.licenses',
|
||||
nonBower: true,
|
||||
noLicense: true,
|
||||
allGood: true,
|
||||
noGood: true,
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
grunt.loadNpmTasks('grunt-bower-concat');
|
||||
|
||||
grunt.registerTask('task2', ['bower_concat']);
|
||||
grunt.registerTask('task4', ['copy']);
|
||||
grunt.registerTask('task6', ['cachebreaker', 'clean:license', 'license', 'bower-licensechecker']);
|
||||
|
||||
};
|
||||
1644
grunt045/package-lock.json
generated
1644
grunt045/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"name": "opensourcepos",
|
||||
"version": "3.4.0",
|
||||
"description": "Open Source Point of Sale is a web based point of sale system written in the PHP language. It uses MySQL as the data storage back-end and has a simple user interface.",
|
||||
"main": "index.php",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
"jekkos <jekkos - at - opensourcepos.org>",
|
||||
"FrancescoUK <francesco.lodolo.uk - at - gmail.com>",
|
||||
"objecttothis <objecttothis - at - gmail.com>",
|
||||
"SteveIreland <steve.ireland.de - at - gmail.com>"
|
||||
],
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com/"
|
||||
},
|
||||
"keywords": [
|
||||
"point-of-sale",
|
||||
"POS"
|
||||
],
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-bower": "^0.21.4",
|
||||
"grunt-bower-concat": "^1.0.0",
|
||||
"grunt-bower-licensechecker": "^0.1.2",
|
||||
"grunt-cache-breaker": "^2.0.1",
|
||||
"grunt-composer": "^0.4.5",
|
||||
"grunt-contrib-clean": "^2.0.1",
|
||||
"grunt-contrib-copy": "^1.0.0",
|
||||
"grunt-license-bower": "^1.0.1"
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
/* Since flatly is the default theme, all css design should use flatly as the starting point. */
|
||||
/* Any css color attributes that need to be overridden for a particular theme */
|
||||
/* should be included in a css file file named. */
|
||||
|
||||
.fixed-table-container tbody .selected td {
|
||||
background-color:#757575
|
||||
}
|
||||
|
||||
/* Receivings & Sales */
|
||||
|
||||
#register td {
|
||||
background-color:#757575;
|
||||
}
|
||||
|
||||
#add_item_form,#overall_sale {
|
||||
background-color:#757575
|
||||
}
|
||||
|
||||
#mode_form,#payment_details {
|
||||
background-color:#757575
|
||||
}
|
||||
|
||||
/* Reports > Graphical Reports */
|
||||
|
||||
.ct-label {
|
||||
fill:#eee;
|
||||
color:#eee;
|
||||
}
|
||||
|
||||
text.ct-axis-title{
|
||||
fill:#eee;
|
||||
color:#eee;
|
||||
}
|
||||
Reference in New Issue
Block a user