Skip to content

Commit 2ca46c2

Browse files
committed
ISSUE-203
1 parent e7d393a commit 2ca46c2

23 files changed

+10096
-9871
lines changed

Gruntfile.js

+42-17
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,49 @@ module.exports = function (grunt) {
133133
server: {
134134
cwd: '<%= yeoman.app %>',
135135
src: ['*.html', 'includes/*.html'],
136-
dest: '.tmp/',
136+
dest: '.tmp',
137137
options: {
138138
flatten: true,
139139
banner: ''
140140
}
141141
}
142142
},
143-
// not used since Uglify task does concat,
144-
// but still available if needed
145-
/*concat: {
146-
dist: {}
147-
},*/
148-
// not enabled since usemin task does concat and uglify
149-
// check index.html to edit your build targets
150-
// enable this task if you prefer defining your build targets here
151-
/*uglify: {
152-
dist: {}
153-
},*/
143+
concat: {
144+
generated: {
145+
files: [
146+
{
147+
dest: '.tmp/scripts/main.js',
148+
src: ['<%= yeoman.app %>/scripts/main.js']
149+
},
150+
{
151+
dest: '.tmp/scripts/vendor/modernizr.js',
152+
src: ['<%= yeoman.app %>/scripts/vendor/modernizr.js']
153+
},
154+
{
155+
dest: '.tmp/scripts/vendor/video.js',
156+
src: ['<%= yeoman.app %>/scripts/vendor/video.js']
157+
}
158+
]
159+
}
160+
},
161+
uglify: {
162+
generated: {
163+
files: [
164+
{
165+
dest: '<%= yeoman.dist %>/scripts/main.js',
166+
src: ['.tmp/scripts/main.js']
167+
},
168+
{
169+
dest: '<%= yeoman.dist %>/scripts/vendor/modernizr.js',
170+
src: ['.tmp/scripts/vendor/modernizr.js']
171+
},
172+
{
173+
dest: '<%= yeoman.dist %>/scripts/vendor/video.js',
174+
src: ['.tmp/scripts/vendor/video.js']
175+
}
176+
]
177+
}
178+
},
154179
rev: {
155180
dist: {
156181
files: {
@@ -232,7 +257,8 @@ module.exports = function (grunt) {
232257
}
233258
}
234259
}
235-
,copy: {
260+
,
261+
copy: {
236262
dist: {
237263
files: [{
238264
expand: true,
@@ -300,12 +326,12 @@ module.exports = function (grunt) {
300326
'clean:server',
301327
'less',
302328
'copy:server',
303-
'connect:test',
329+
'connect:test'
304330
]);
305331

306332
grunt.registerTask('build', [
307333
'clean:dist',
308-
'npm-command',
334+
//'npm-command',
309335
'copy:server',
310336
'useminPrepare',
311337
'concurrent',
@@ -314,8 +340,7 @@ module.exports = function (grunt) {
314340
'includes:build',
315341
'uglify',
316342
'copy',
317-
'usemin',
318-
343+
'usemin'
319344
]);
320345

321346
grunt.registerTask('default', [

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This repository contains the web frontend for [transfer.sh](https://github.com/d
55

66
## How to use it
77

8-
You must specify `web-path`directory, pointing to `dist` generated folder (Grunt & bindata)
8+
You must specify `web-path` directory, pointing to `dist` generated folder (Grunt & bindata)
99

1010
Sample :
1111
```

bindata_gen.go

+9,165-9,119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
"name": "transfer.sh",
33
"version": "0.0.0",
44
"dependencies": {
5-
"wiredep": "^1.8.6"
5+
"wiredep": "^4.0.0"
66
},
77
"devDependencies": {
8-
"grunt": "~0.4.5",
8+
"grunt": "^1.0.4",
99
"grunt-concurrent": "~1.0.0",
1010
"grunt-contrib-clean": "~0.6.0",
1111
"grunt-contrib-concat": "~0.5.0",
12-
"grunt-contrib-connect": "~0.8.0",
12+
"grunt-contrib-connect": "^2.0.0",
1313
"grunt-contrib-copy": "~0.6.0",
14-
"grunt-contrib-cssmin": "~0.10.0",
15-
"grunt-contrib-htmlmin": "~0.3.0",
16-
"grunt-contrib-imagemin": "0.8.1",
17-
"grunt-contrib-jshint": "~0.10.0",
18-
"grunt-contrib-less": "~0.11.4",
19-
"grunt-contrib-uglify": "~0.6.0",
20-
"grunt-contrib-watch": "~0.6.1",
14+
"grunt-contrib-cssmin": "^3.0.0",
15+
"grunt-contrib-htmlmin": "^3.0.0",
16+
"grunt-contrib-imagemin": "^3.1.0",
17+
"grunt-contrib-jshint": "^2.1.0",
18+
"grunt-contrib-less": "^2.0.0",
19+
"grunt-contrib-uglify": "^4.0.1",
20+
"grunt-contrib-watch": "^1.1.0",
2121
"grunt-include-replace": "^2.0.0",
2222
"grunt-includes": "^0.4.5",
2323
"grunt-npm-command": "^0.1.2",
2424
"grunt-rev": "~0.1.0",
25-
"grunt-svgmin": "1.0.0",
26-
"grunt-usemin": "~2.4.0",
25+
"grunt-svgmin": "^6.0.0",
26+
"grunt-usemin": "^3.1.1",
2727
"jshint-stylish": "~1.0.0",
28-
"load-grunt-tasks": "~0.6.0",
29-
"matchdep": "~0.3.0",
28+
"load-grunt-tasks": "^4.0.0",
29+
"matchdep": "^2.0.0",
3030
"time-grunt": "~1.0.0"
3131
},
3232
"engines": {

0 commit comments

Comments
 (0)