Skip to content

Commit efe82ea

Browse files
committed
pushed to v0.9
1 parent 37a211a commit efe82ea

File tree

8 files changed

+53
-10
lines changed

8 files changed

+53
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ prepros.cfg
33
js/materialize.js
44
test.html
55
html/
6-
node-modules/
6+
node_modules/
7+
.sass-cache/

Gruntfile.js

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@ module.exports = function(grunt) {
22

33
// configure the tasks
44
grunt.initConfig({
5-
5+
6+
7+
8+
// Git Info
9+
// gitinfo: {
10+
// options: {
11+
//
12+
// },
13+
// ...
14+
// },
15+
616
// Copy
717
copy: {
818
dist: { cwd: 'font', src: [ '**' ], dest: 'dist/font', expand: true },
@@ -83,22 +93,23 @@ module.exports = function(grunt) {
8393
main: {
8494
options: {
8595
archive: 'bin/materialize.zip',
86-
level: 3
96+
level: 6
8797
},
8898
files:[
8999
{ expand: true, cwd: 'dist/', src: ['**/*'], dest: 'materialize/'},
90-
{ expand: true, cwd: '/', src: ['LICENSE, README.md'], dest: 'materialize/'},
100+
{ expand: true, cwd: './', src: ['LICENSE', 'README.md'], dest: 'materialize/'},
91101
]
92102
},
93103

94104
src: {
95105
options: {
96106
archive: 'bin/materialize-src.zip',
97-
level: 8
107+
level: 6
98108
},
99109
files:[
100110
{expand: true, cwd: 'font/', src: ['**/*'], dest: 'materialize-src/font/'},
101-
{expand: true, cwd: 'sass/', src: ['**/*'], dest: 'materialize-src/sass/'},
111+
{expand: true, cwd: 'sass/', src: ['materialize.scss'], dest: 'materialize-src/sass/'},
112+
{expand: true, cwd: 'sass/', src: ['components/**/*'], dest: 'materialize-src/sass/'},
102113
{expand: true, cwd: 'js/', src: ["jquery.easing.1.3.js",
103114
"velocity.min.js",
104115
"hammer.min.js",
@@ -119,24 +130,34 @@ module.exports = function(grunt) {
119130
"date_picker/picker.date.js",
120131
], dest: 'materialize-src/js/'},
121132
{expand: true, cwd: 'dist/js/', src: ['**/*'], dest: 'materialize-src/js/bin/'},
122-
{expand: true, cwd: '/', src: ['LICENSE', 'README.md'], dest: 'materialize-src/font/'}
133+
{expand: true, cwd: './', src: ['LICENSE', 'README.md'], dest: 'materialize-src/'}
123134

124135
]
125136
}
126137
},
138+
139+
140+
// Clean
141+
clean: {
142+
build: {
143+
src: [ 'dist/' ]
144+
},
145+
},
127146

128147

129148

130149
});
131150

132151
// load the tasks
152+
// grunt.loadNpmTasks('grunt-gitinfo');
133153
grunt.loadNpmTasks('grunt-contrib-copy');
134154
grunt.loadNpmTasks('grunt-contrib-sass');
135155
grunt.loadNpmTasks('grunt-contrib-concat');
136156
grunt.loadNpmTasks('grunt-contrib-uglify');
137157
grunt.loadNpmTasks('grunt-contrib-compress');
158+
grunt.loadNpmTasks('grunt-contrib-clean');
138159

139160

140161
// define the tasks
141-
grunt.registerTask('default', ['copy', 'sass:expanded', 'sass:min', 'concat', 'uglify', 'compress:main', 'compress:src']);
162+
grunt.registerTask('default', ['copy', 'sass:expanded', 'sass:min', 'concat', 'uglify', 'compress:main', 'compress:src', 'clean']);
142163
};

bin/materialize-sass_v0.82.zip

-612 KB
Binary file not shown.

bin/materialize-src.zip

709 KB
Binary file not shown.

bin/materialize.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/materialize.zip

664 KB
Binary file not shown.

bin/materialize_v0.82.zip

-622 KB
Binary file not shown.

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "Materialize-dist-build",
3+
"description": "Builds Materialize distribution packages",
4+
"author": "Alvin Wang, Alan Chang",
5+
"dependencies": {
6+
"grunt": "0.x.x",
7+
"grunt-contrib-clean": "0.5.x",
8+
"grunt-contrib-connect": "0.4.x",
9+
"grunt-contrib-copy": "0.4.x",
10+
"grunt-contrib-cssmin": "0.6.x",
11+
"grunt-contrib-jade": "0.8.x",
12+
"grunt-contrib-uglify": "0.2.x",
13+
"grunt-contrib-watch": "0.5.x",
14+
"grunt-contrib-sass": "^0.8.1",
15+
"grunt-contrib-concat": "^0.5.0",
16+
"grunt-contrib-compress": "^0.12.0"
17+
},
18+
"engine": "node >= 0.10",
19+
"devDependencies": {
20+
"grunt-gitinfo": "^0.1.7"
21+
}
22+
}

0 commit comments

Comments
 (0)