-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add grunt files to create gh-page branch
- Loading branch information
1 parent
ea8ddad
commit 8f0a0d0
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*~ | ||
gh-pages/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
'copy': { | ||
dev: { | ||
files: [{ | ||
expand: true, | ||
src: './images/*', | ||
dest: './gh-pages/' | ||
}, { | ||
src: './index.html', | ||
dest: './gh-pages/index.html' | ||
}, { | ||
src: './css/style.css', | ||
dest: './gh-pages/css/style.css' | ||
}, { | ||
src: './js/wheel.js', | ||
dest: './gh-pages/js/wheel.js' | ||
}, { | ||
src: './js/stats.min.js', | ||
dest: './gh-pages/js/stats.min.js' | ||
}] | ||
} | ||
}, | ||
|
||
uglify: { | ||
options: { | ||
mangle: true, | ||
report: "gzip" | ||
}, | ||
my_target: { | ||
files: [{ | ||
'gh-pages/js/orbit.js': ['js/orbit.js'] | ||
}, { | ||
'gh-pages/js/three.js': ['js/three.js'] | ||
}, { | ||
'gh-pages/js/slotmachine.js': ['js/slotmachine.js'] | ||
}] | ||
} | ||
} | ||
|
||
}); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.registerTask('default', ['uglify', 'copy']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-copy": "^0.8.0", | ||
"grunt-contrib-uglify": "^0.9.1" | ||
} | ||
} |