forked from Ponysearch/Ponysearch
[mod] simple theme: move source files to the src directory
This commit is contained in:
parent
49ea5b7644
commit
6b80c57a3c
22 changed files with 9 additions and 9 deletions
|
@ -6,12 +6,12 @@ module.exports = function(grunt) {
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
watch: {
|
watch: {
|
||||||
scripts: {
|
scripts: {
|
||||||
files: ['<%= jshint.files %>', 'less/*.less'],
|
files: ['src/**'],
|
||||||
tasks: ['jshint', 'concat', 'uglify', 'webfont', 'less:development', 'less:production']
|
tasks: ['jshint', 'concat', 'uglify', 'webfont', 'less:development', 'less:production']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
files: ['js/searx_src/*.js', 'js/searx_header/*.js', '../__common__/js/*.js'],
|
files: ['src/js/main/*.js', 'src/js/head/*.js', '../__common__/js/*.js'],
|
||||||
options: {
|
options: {
|
||||||
reporterOutput: "",
|
reporterOutput: "",
|
||||||
proto: true,
|
proto: true,
|
||||||
|
@ -29,8 +29,8 @@ module.exports = function(grunt) {
|
||||||
separator: ';'
|
separator: ';'
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
'js/searx.head.js': ['js/searx_head/*.js'],
|
'js/searx.head.js': ['src/js/head/*.js'],
|
||||||
'js/searx.js': ['js/searx_src/*.js', '../__common__/js/*.js']
|
'js/searx.js': ['src/js/main/*.js', '../__common__/js/*.js', 'js/autocomplete.js']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -60,8 +60,8 @@ module.exports = function(grunt) {
|
||||||
banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
|
banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
"css/searx.css": "less/style.less",
|
"css/searx.css": "src/less/style.less",
|
||||||
"css/searx-rtl.css": "less/style-rtl.less"
|
"css/searx-rtl.css": "src/less/style-rtl.less"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
production: {
|
production: {
|
||||||
|
@ -77,8 +77,8 @@ module.exports = function(grunt) {
|
||||||
banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
|
banner: '/*! searx | <%= grunt.template.today("dd-mm-yyyy") %> | <%= process.env.GIT_URL %> */\n'
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
"css/searx.min.css": "less/style.less",
|
"css/searx.min.css": "src/less/style.less",
|
||||||
"css/searx-rtl.min.css": "less/style-rtl.less"
|
"css/searx-rtl.min.css": "src/less/style-rtl.less"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true',
|
infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true',
|
||||||
static_path: script.getAttribute('data-static-path'),
|
static_path: script.getAttribute('data-static-path'),
|
||||||
translations: JSON.parse(script.getAttribute('data-translations')),
|
translations: JSON.parse(script.getAttribute('data-translations')),
|
||||||
}
|
};
|
||||||
|
|
||||||
// update the css
|
// update the css
|
||||||
d.getElementsByTagName("html")[0].className = (w.searx.touch)?"js touch":"js";
|
d.getElementsByTagName("html")[0].className = (w.searx.touch)?"js touch":"js";
|
Loading…
Reference in a new issue