зеркало из https://github.com/nextcloud/news.git
remove cachebuster
This commit is contained in:
Родитель
457e1d9bd1
Коммит
759c9b5d67
|
@ -117,9 +117,7 @@ We switched to a different feed parsing library which creates article ids differ
|
|||
## FAQ
|
||||
|
||||
### I am getting Exception: Some\\Class does not exist erros in my owncloud.log
|
||||
This is very often caused by missing or old files, e.g. by failing to upload all of the News app' files or errors during installation. Before you report a bug, please run the diagnostic tool to check which files are missing or out of date:
|
||||
|
||||
./occ news:verify-install
|
||||
This is very often caused by missing or old files, e.g. by failing to upload all of the News app' files or errors during installation. Before you report a bug, please recheck if all files from the archive are in place and accessible.
|
||||
|
||||
### How do I reset the News app
|
||||
Delete the folder **owncloud/apps/news/** and **owncloud/data/news/**, then connect to your database and run the following commands where **oc\_** is your table prefix (defaults to oc\_)
|
||||
|
@ -187,10 +185,6 @@ The following commands are available when using the **occ** file in the top dire
|
|||
|
||||
./occ
|
||||
|
||||
* **Verify installation**:
|
||||
|
||||
./occ news:verify-install
|
||||
|
||||
* **Generate search indices**:
|
||||
|
||||
./occ news:create-search-indices
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -6,12 +6,10 @@ set -e
|
|||
# update checksums
|
||||
cd js
|
||||
grunt js-unit
|
||||
grunt cachebuster
|
||||
cd ..
|
||||
|
||||
phpunit -c phpunit.xml
|
||||
phpunit -c phpunit.integration.xml
|
||||
git add appinfo/checksum.json
|
||||
|
||||
python3 bin/tools/generate_authors.py
|
||||
git add AUTHORS.md
|
||||
|
|
|
@ -24,7 +24,6 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks('grunt-ng-annotate');
|
||||
grunt.loadNpmTasks('grunt-protractor-runner');
|
||||
grunt.loadNpmTasks('grunt-protractor-webdriver');
|
||||
grunt.loadNpmTasks('grunt-cachebuster');
|
||||
|
||||
grunt.initConfig({
|
||||
meta: {
|
||||
|
@ -62,8 +61,7 @@ module.exports = function (grunt) {
|
|||
uglify: {
|
||||
app: {
|
||||
files: {
|
||||
'<%= meta.production %>app.min.js':
|
||||
['<%= meta.production %>app.js']
|
||||
'<%= meta.production %>app.min.js': ['<%= meta.production %>app.js']
|
||||
}
|
||||
},
|
||||
options: {
|
||||
|
@ -75,16 +73,18 @@ module.exports = function (grunt) {
|
|||
sourceMap: true
|
||||
},
|
||||
news: {
|
||||
files: {'../css/news.min.css': [
|
||||
'../css/app.css',
|
||||
'../css/content.css',
|
||||
'../css/custom.css',
|
||||
'../css/shortcuts.css',
|
||||
'../css/mobile.css',
|
||||
'../css/navigation.css',
|
||||
'../css/settings.css',
|
||||
'../css/explore.css'
|
||||
]}
|
||||
files: {
|
||||
'../css/news.min.css': [
|
||||
'../css/app.css',
|
||||
'../css/content.css',
|
||||
'../css/custom.css',
|
||||
'../css/shortcuts.css',
|
||||
'../css/mobile.css',
|
||||
'../css/navigation.css',
|
||||
'../css/settings.css',
|
||||
'../css/explore.css'
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
wrap: {
|
||||
|
@ -193,9 +193,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
/* jshint camelcase: false */
|
||||
protractor_webdriver: {
|
||||
app: {
|
||||
|
||||
}
|
||||
app: {}
|
||||
},
|
||||
protractor: {
|
||||
firefox: {
|
||||
|
@ -220,65 +218,6 @@ module.exports = function (grunt) {
|
|||
base: '../../../'
|
||||
}
|
||||
}
|
||||
},
|
||||
cachebuster: {
|
||||
build: {
|
||||
options: {
|
||||
format: 'json',
|
||||
basedir: '..'
|
||||
},
|
||||
src: [
|
||||
'../**',
|
||||
// js
|
||||
'!../js/**',
|
||||
'../js/build/*.min.js',
|
||||
'../js/vendor/**/*.min.js',
|
||||
'!../js/vendor/jquery/**',
|
||||
'!../js/vendor/js-url/lib/**',
|
||||
'!../js/vendor/angular-mocks/**',
|
||||
// css
|
||||
'!../css/**',
|
||||
'../css/*.min.css',
|
||||
// l10n
|
||||
'!../l10n/**',
|
||||
// appinfo
|
||||
'!../appinfo/checksum.json',
|
||||
// build
|
||||
'!../build/**',
|
||||
// vendor
|
||||
'!../vendor/ezyang/htmlpurifier/**',
|
||||
'../vendor/ezyang/htmlpurifier/**/*.php',
|
||||
'../vendor/ezyang/htmlpurifier/**/*.json',
|
||||
'!../vendor/ezyang/htmlpurifier/extras/**',
|
||||
'!../vendor/ezyang/htmlpurifier/maintenance/**',
|
||||
'!../vendor/ezyang/htmlpurifier/plugins/**',
|
||||
'!../vendor/ezyang/htmlpurifier/maintenance/**',
|
||||
'!../vendor/ezyang/htmlpurifier/configdoc/**',
|
||||
'!../vendor/ezyang/htmlpurifier/benchmarks/**',
|
||||
'!../vendor/ezyang/htmlpurifier/smoketests/**',
|
||||
'!../vendor/fguillot/picofeed/**',
|
||||
'../vendor/fguillot/picofeed/**/*.php',
|
||||
'../vendor/fguillot/picofeed/**/*.json',
|
||||
'!../vendor/pear/net_url2/**',
|
||||
'../vendor/pear/net_url2/**/*.php',
|
||||
'../vendor/pear/net_url2/**/*.json',
|
||||
// bin
|
||||
'!../bin/updater/dist',
|
||||
'!../**/*.pyc',
|
||||
'!../**/PKG_INFO',
|
||||
'!../**/__pycache__',
|
||||
'!../bin/git/**',
|
||||
// generic
|
||||
'!../**/*.md',
|
||||
'!../**/phpunit*',
|
||||
'!../**/*.log',
|
||||
'!../**/*.sw',
|
||||
'!../**/Makefile',
|
||||
'!../**/docs/**',
|
||||
'!../**/tests/**',
|
||||
],
|
||||
dest: '../appinfo/checksum.json'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -24,13 +24,6 @@ class CommandTest extends \PHPUnit_Framework_TestCase {
|
|||
$this->assertSame(0, $success);
|
||||
}
|
||||
|
||||
public function testValidateInstall() {
|
||||
$command = $this->corePath . 'occ news:verify-install';
|
||||
exec($command, $_, $success);
|
||||
|
||||
$this->assertSame(0, $success);
|
||||
}
|
||||
|
||||
public function testCronUpdate() {
|
||||
$command = 'php -f ' . $this->corePath . 'cron.php';
|
||||
exec($command, $output, $success);
|
||||
|
|
Загрузка…
Ссылка в новой задаче