packaged for publishing
This commit is contained in:
parent
b2fcd9b705
commit
f746927262
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
update-gh-pages.sh
|
update-gh-pages.sh
|
||||||
|
tmp/
|
||||||
|
|
5
.npmignore
Normal file
5
.npmignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
src/
|
||||||
|
node_modules/
|
||||||
|
tmp/
|
||||||
|
update-gh-pages.sh
|
||||||
|
gulpfile.js
|
|
@ -113,8 +113,9 @@ function HandleModuleGames(modelOnly) {
|
||||||
var stream = gulp.src(scripts)
|
var stream = gulp.src(scripts)
|
||||||
.pipe(gulpif(!argv.prod,sourcemaps.init()))
|
.pipe(gulpif(!argv.prod,sourcemaps.init()))
|
||||||
.pipe(add('_',modulifyHeaders[which],true))
|
.pipe(add('_',modulifyHeaders[which],true))
|
||||||
.pipe(concat(fileName))
|
.pipe(concat(fileName))
|
||||||
.pipe(gulpif(argv.prod,uglify()))
|
.pipe(gulpif(argv.prod,uglify()))
|
||||||
|
.on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
|
||||||
.pipe(gulpif(!argv.prod,sourcemaps.write('.')))
|
.pipe(gulpif(!argv.prod,sourcemaps.write('.')))
|
||||||
.pipe(through.obj(function(file,enc,next) {
|
.pipe(through.obj(function(file,enc,next) {
|
||||||
push(file);
|
push(file);
|
||||||
|
@ -191,15 +192,11 @@ gulp.task("build-node-core",function() {
|
||||||
"src/core/jocly.game.js"
|
"src/core/jocly.game.js"
|
||||||
]));
|
]));
|
||||||
|
|
||||||
var joclyExtraStream = gulp.src([
|
|
||||||
"src/node/package.json",
|
|
||||||
]);
|
|
||||||
|
|
||||||
var allGamesStream = source('jocly-allgames.js');
|
var allGamesStream = source('jocly-allgames.js');
|
||||||
allGamesStream.end('exports.games = '+JSON.stringify(allGames));
|
allGamesStream.end('exports.games = '+JSON.stringify(allGames));
|
||||||
allGamesStream = ProcessJS(allGamesStream.pipe(buffer()));
|
allGamesStream = ProcessJS(allGamesStream.pipe(buffer()));
|
||||||
|
|
||||||
return merge(joclyCoreStream,allGamesStream,joclyBaseStream,joclyExtraStream)
|
return merge(joclyCoreStream,allGamesStream,joclyBaseStream)
|
||||||
.pipe(gulp.dest("dist/node"));
|
.pipe(gulp.dest("dist/node"));
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "jocly",
|
"name": "jocly",
|
||||||
"version": "0.0.1",
|
"version": "0.9.0",
|
||||||
"author": {
|
"author": {
|
||||||
"email": "mig@jocly.com",
|
"email": "mig@jocly.com",
|
||||||
"name": "Michel Gutierrez",
|
"name": "Michel Gutierrez",
|
||||||
"url": "https://github.com/mi-g"
|
"url": "https://github.com/mi-g"
|
||||||
},
|
},
|
||||||
|
"main": "dist/node/jocly.core.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp dist"
|
"build": "gulp dist"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"name": "jocly-node",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"author": {
|
|
||||||
"email": "mig@jocly.com",
|
|
||||||
"name": "Michel Gutierrez",
|
|
||||||
"url": "https://github.com/mi-g"
|
|
||||||
},
|
|
||||||
"main": "jocly.core.js"
|
|
||||||
}
|
|
Loading…
Reference in a new issue