Skip to content

Commit 73a1656

Browse files
committed
reorganizing build process
1 parent 719cf98 commit 73a1656

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+5875
-1352
lines changed

Gruntfile.js

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,50 @@
11
module.exports = function (grunt) {
22

33
grunt.initConfig({
4+
concat: {
5+
css: {
6+
src: ['src/css/fonts.css', 'src/css/swatches.css', 'src/css/global.css', 'src/css/jqm.structure.css'],
7+
dest: 'generated/jquery.mobile.flatui.css'
8+
}
9+
},
410
stylus: {
511
compile: {
612
files: {
7-
'themes/css/swatches.css': ['themes/stylus/swatches/*.styl']
13+
'src/css/swatches.css': ['src/stylus/swatches/*.styl']
14+
}
15+
}
16+
},
17+
copy: {
18+
main: {
19+
files: [
20+
{ src: 'generated/jquery.mobile.flatui.css', dest: 'demo/css/jquery.mobile.flatui.css' },
21+
{ expand: true, src: ['images/**'], cwd: 'src/css/', dest: 'demo/css/' },
22+
{ expand: true, src: ['images/**'], cwd: 'src/css/', dest: 'generated/' },
23+
{ expand: true, src: ['fonts/**'], cwd: 'src/css/', dest: 'demo/css/' },
24+
{ expand: true, src: ['fonts/**'], cwd: 'src/css/', dest: 'generated/' }
25+
]
26+
}
27+
},
28+
cssmin: {
29+
compress: {
30+
files: {
31+
'generated/jquery.mobile.flatui.min.css': 'generated/jquery.mobile.flatui.css'
832
}
933
}
1034
},
1135
watch: {
1236
stylus: {
13-
files: ['themes/stylus/**/*.styl'],
37+
files: ['src/stylus/**/*.styl'],
1438
tasks: ['stylus']
1539
}
1640
}
1741
});
1842

1943
grunt.loadNpmTasks('grunt-contrib-stylus');
2044
grunt.loadNpmTasks('grunt-contrib-watch');
21-
grunt.registerTask('default', ['watch']);
45+
grunt.loadNpmTasks('grunt-contrib-concat');
46+
grunt.loadNpmTasks('grunt-contrib-copy');
47+
grunt.loadNpmTasks('grunt-contrib-cssmin');
48+
49+
grunt.registerTask('default', ['concat', 'copy', 'cssmin']);
2250
};
File renamed without changes.

demo/css/fonts/lato-black.woff

34.5 KB
Binary file not shown.

demo/css/fonts/lato-bold.woff

36.4 KB
Binary file not shown.

demo/css/fonts/lato-italic.woff

35.8 KB
Binary file not shown.

demo/css/fonts/lato-regular.woff

35 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)