Merge branch 'common-convert' of github.com:HabitRPG/habitrpg into common-convert
2
.bowerrc
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"directory": "common/public/bower_components",
|
||||
"directory": "website/public/bower_components",
|
||||
"storage" : {
|
||||
"packages" : ".bower-cache",
|
||||
"registry" : ".bower-registry"
|
||||
|
|
|
|||
11
.gitignore
vendored
|
|
@ -1,14 +1,15 @@
|
|||
.DS_Store
|
||||
common/public/gen
|
||||
website/public/gen
|
||||
website/public/common
|
||||
node_modules
|
||||
*.swp
|
||||
.idea*
|
||||
config.json
|
||||
npm-debug.log
|
||||
lib
|
||||
common/public/bower_components
|
||||
common/public/sprites
|
||||
build
|
||||
website/public/bower_components
|
||||
common/dist
|
||||
website/build
|
||||
newrelic_agent.log
|
||||
.bower-tmp
|
||||
.bower-registry
|
||||
|
|
@ -20,6 +21,6 @@ src/*/*.map
|
|||
src/*/*/*.map
|
||||
test/*.js
|
||||
test/*.map
|
||||
common/public/docs
|
||||
website/public/docs
|
||||
*.sublime-workspace
|
||||
coverage.html
|
||||
|
|
|
|||
8449
common/dist/customizer.css
vendored
1
common/dist/habitrpg-shared.css
vendored
16859
common/dist/habitrpg-shared.js
vendored
3732
common/dist/spritesmith0.css
vendored
BIN
common/dist/spritesmith0.png
vendored
|
Before Width: | Height: | Size: 218 KiB |
4080
common/dist/spritesmith1.css
vendored
BIN
common/dist/spritesmith1.png
vendored
|
Before Width: | Height: | Size: 113 KiB |
2082
common/dist/spritesmith2.css
vendored
BIN
common/dist/spritesmith2.png
vendored
|
Before Width: | Height: | Size: 149 KiB |
2052
common/dist/spritesmith3.css
vendored
BIN
common/dist/spritesmith3.png
vendored
|
Before Width: | Height: | Size: 452 KiB |
2040
common/dist/spritesmith4.css
vendored
BIN
common/dist/spritesmith4.png
vendored
|
Before Width: | Height: | Size: 306 KiB |
2046
common/dist/spritesmith5.css
vendored
BIN
common/dist/spritesmith5.png
vendored
|
Before Width: | Height: | Size: 263 KiB |
24
gulpfile.js
|
|
@ -22,20 +22,20 @@ var gulp = require('gulp'),
|
|||
var paths = {
|
||||
stylus: {
|
||||
src: {
|
||||
app: './common/public/css/index.styl',
|
||||
staticPage: './common/public/css/static.styl' // static is a 'future' reserved word
|
||||
app: './website/public/css/index.styl',
|
||||
staticPage: './website/public/css/static.styl' // static is a 'future' reserved word
|
||||
},
|
||||
dest: './build/'
|
||||
dest: './website/build/'
|
||||
},
|
||||
common: {
|
||||
src: ['./common/index.js'],
|
||||
dest: './common/public/'
|
||||
dest: './common/dist/scripts/'
|
||||
},
|
||||
sprites: {
|
||||
src: 'img/sprites/spritesmith/**/*.png',
|
||||
dest: './common/public/sprites/',
|
||||
cssminSrc: './common/public/sprites/*.css',
|
||||
cssminDest: './common/public/sprites/'
|
||||
src: './common/img/sprites/spritesmith/**/*.png',
|
||||
dest: './common/dist/sprites/',
|
||||
cssminSrc: './common/dist/sprites/spritesmith*.css',
|
||||
cssminDest: './common/dist/sprites/'
|
||||
},
|
||||
copy: {
|
||||
src: ['./common/img/sprites/backer-only/*.gif',
|
||||
|
|
@ -95,9 +95,8 @@ gulp.task('sprite', function(cb) {
|
|||
|
||||
var sprite = {};
|
||||
_.times(COUNT, function(i){
|
||||
sliced = images.slice(i * (images.length/COUNT), (i+1) * images.length/COUNT)
|
||||
sprite[''+i] = {
|
||||
src: sliced,
|
||||
slice: images.slice(i * (images.length/COUNT), (i+1) * images.length/COUNT),
|
||||
imgName: 'spritesmith'+i+'.png',
|
||||
cssName: 'spritesmith'+i+'.css',
|
||||
engine: 'phantomjssmith',
|
||||
|
|
@ -131,7 +130,7 @@ gulp.task('sprite', function(cb) {
|
|||
|
||||
_.forIn(sprite, function(value, key){
|
||||
console.log("Starting spritesmith" + key + ".png");
|
||||
var spriteData = gulp.src(sliced).pipe(spritesmith(sprite[key]));
|
||||
var spriteData = gulp.src(sprite[key].slice).pipe(spritesmith(sprite[key]));
|
||||
|
||||
spriteData.img
|
||||
//.pipe(imagemin())
|
||||
|
|
@ -145,10 +144,9 @@ gulp.task('sprite', function(cb) {
|
|||
STEP++;
|
||||
console.log("Finished spritesmith" + key + ".png");
|
||||
if(STEP >= COUNT) {
|
||||
|
||||
gulp.src(paths.sprites.cssminSrc)
|
||||
.pipe(concat('habitrpg-shared.css'))
|
||||
.pipe(cssmin())
|
||||
.pipe(rename('habitrpg-shared.css'))
|
||||
.pipe(gulp.dest(paths.sprites.cssminDest))
|
||||
.on('end', function(){cb()});
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 7 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB |