Skip to content

Commit fd6478a

Browse files
committed
Merge branch '2.8'
2 parents b2ac692 + 2d6d681 commit fd6478a

File tree

5 files changed

+93
-2708
lines changed

5 files changed

+93
-2708
lines changed

CHANGELOG

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Version 2.9.0-dev - 2013-
1414
- dropped support for ext/mysql (Thorsten)
1515

1616
Version 2.8.1 - 2013-06-
17+
- added support for Grunt (Thorsten)
18+
- added minified JavaScript code (Thorsten)
1719
- improved usability for group administration (Thorsten)
1820
- fixed broken updates for MS SQL and SQLite (Thorsten)
1921
- fixed IE8 related JavaScript issues (Thorsten)

Gruntfile.js

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*global module:false*/
2+
module.exports = function(grunt) {
3+
4+
// Project configuration.
5+
grunt.initConfig({
6+
// Metadata.
7+
meta: {
8+
version: '2.8.1'
9+
},
10+
banner: '/*! phpMyFAQ - v2.8.1 - ' +
11+
'* http://www.phpmyfaq.de/\n' +
12+
'* Copyright (c) 2001 - 2013 Thorsten Rinne and phpMyFAQ Team' +
13+
'Licensed MPL 2.0 */\n',
14+
// Task configuration.
15+
bower: {
16+
install: {
17+
// just run 'grunt bower:install' and you'll see files from your Bower packages in lib directory
18+
}
19+
},
20+
concat: {
21+
options: {
22+
banner: '<%= banner %>',
23+
stripBanners: true
24+
},
25+
dist: {
26+
src: ['vendor/twitter/bootstrap/js/*.js', 'phpmyfaq/assets/js/autosave.js', 'phpmyfaq/assets/js/functions.js'],
27+
dest: 'phpmyfaq/assets/js/phpmyfaq.js'
28+
}
29+
},
30+
uglify: {
31+
options: {
32+
banner: '<%= banner %>'
33+
},
34+
dist: {
35+
src: '<%= concat.dist.dest %>',
36+
dest: 'phpmyfaq/assets/js/phpmyfaq.js'
37+
}
38+
},
39+
jshint: {
40+
options: {
41+
curly: true,
42+
eqeqeq: true,
43+
immed: true,
44+
latedef: true,
45+
newcap: true,
46+
noarg: true,
47+
sub: true,
48+
undef: true,
49+
unused: true,
50+
boss: true,
51+
eqnull: true,
52+
browser: true,
53+
globals: {}
54+
},
55+
gruntfile: {
56+
src: 'Gruntfile.js'
57+
}
58+
},
59+
watch: {
60+
gruntfile: {
61+
files: '<%= jshint.gruntfile.src %>',
62+
tasks: ['jshint:gruntfile']
63+
},
64+
lib_test: {
65+
files: '<%= jshint.lib_test.src %>',
66+
tasks: ['jshint:lib_test', 'qunit']
67+
}
68+
}
69+
});
70+
71+
// These plugins provide necessary tasks.
72+
grunt.loadNpmTasks('grunt-bower-task');
73+
grunt.loadNpmTasks('grunt-contrib-concat');
74+
grunt.loadNpmTasks('grunt-contrib-uglify');
75+
grunt.loadNpmTasks('grunt-contrib-jshint');
76+
grunt.loadNpmTasks('grunt-contrib-watch');
77+
grunt.loadNpmTasks('grunt-contrib-less');
78+
grunt.loadNpmTasks('grunt-contrib-cssmin');
79+
grunt.loadNpmTasks('grunt-contrib-copy');
80+
grunt.loadNpmTasks('grunt-contrib-clean');
81+
grunt.loadNpmTasks('grunt-contrib-csslint');
82+
83+
// Default task.
84+
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
85+
86+
};

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ unzip the package and open http://www.example.org/phpmyfaq/setup/index.php in yo
3636
$ cd phpMyFAQ
3737
$ curl -s https://getcomposer.org/installer | php
3838
$ php composer.phar install
39+
$ npm install
3940

4041
Then just open http://www.example.org/phpmyfaq/setup/index.php in your browser.
4142

build.xml

-19
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,6 @@
1111
<mkdir dir="${basedir}/build/pdepend"/>
1212
</target>
1313

14-
<target name="mergejs" description="Merges all JavaScript files into one file">
15-
<concat destfile="${basedir}/phpmyfaq/assets/js/phpmyfaq.js" force="yes">
16-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-transition.js" />
17-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-alert.js" />
18-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-button.js" />
19-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-carousel.js" />
20-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-collapse.js" />
21-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-dropdown.js" />
22-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-modal.js" />
23-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-tooltip.js" />
24-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-popover.js" />
25-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-scrollspy.js" />
26-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-tab.js" />
27-
<filelist dir="${basedir}/vendor/twitter/bootstrap/js" files="bootstrap-typeahead.js" />
28-
<filelist dir="${basedir}/phpmyfaq/assets/js" files="autosave.js" />
29-
<filelist dir="${basedir}/phpmyfaq/assets/js" files="functions.js" />
30-
</concat>
31-
</target>
32-
3314
<target name="phpunit" description="Run unit tests and generate junit.xml and clover.xml">
3415
<exec executable="phpunit" failonerror="true">
3516
<arg line="--configuration phpunit.xml --coverage-text" />

0 commit comments

Comments
 (0)