init
This commit is contained in:
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
build/
|
||||||
|
target/
|
||||||
|
src-gen/
|
||||||
|
out/
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
*.ids
|
||||||
|
*.stackdump
|
||||||
|
.idea/
|
||||||
|
.ideaDataSources/
|
||||||
|
config.json
|
||||||
|
/node_modules
|
||||||
|
/log
|
||||||
|
/ansible/*.retry
|
||||||
|
.npmrc
|
||||||
11
config.example.json
Normal file
11
config.example.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"SdkDir": "C:\\sdk",
|
||||||
|
"BuildDir": null,
|
||||||
|
"PublishDir": "",
|
||||||
|
"PublishUrl": "https://shmyga.ru/repo/tankz",
|
||||||
|
"Develop": false,
|
||||||
|
"Key": {
|
||||||
|
"store": "keystore.jks",
|
||||||
|
"pass": null
|
||||||
|
}
|
||||||
|
}
|
||||||
85
gulpfile.js
Normal file
85
gulpfile.js
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
const gulp = require('gulp');
|
||||||
|
const gulpClean = require('gulp-clean');
|
||||||
|
const Config = require('./config.json');
|
||||||
|
const packageInfo = require('./package.json');
|
||||||
|
const {System, Sdk, Haxe, Project} = require('gulp-haxetool');
|
||||||
|
const dateformat = require('dateformat');
|
||||||
|
const argv = require('yargs').argv;
|
||||||
|
|
||||||
|
if (Config.SdkDir) {
|
||||||
|
Sdk.dir = Config.SdkDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Config.BuildDir) {
|
||||||
|
Haxe.buildDir = Config.BuildDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.clean = function clean() {
|
||||||
|
return gulp.src('target/*', {read: false}).pipe(gulpClean());
|
||||||
|
};
|
||||||
|
|
||||||
|
const config = new Project.Config({
|
||||||
|
meta: {
|
||||||
|
title: 'Puzzle\'z',
|
||||||
|
filename: 'puzzlez',
|
||||||
|
icon: 'src/client/resources/icon.png',
|
||||||
|
pack: 'ru.m.puzzlez',
|
||||||
|
author: 'shmyga <shmyga.z@gmail.com>',
|
||||||
|
company: 'MegaLoMania',
|
||||||
|
version: packageInfo.version + (Config.Develop ? '-SNAPSHOT' : ''),
|
||||||
|
},
|
||||||
|
key: Config.Key,
|
||||||
|
libs: packageInfo.haxeDependencies,
|
||||||
|
macros: [
|
||||||
|
`CompilationOption.set('build','${dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss')}')`,
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
const app = new Project(
|
||||||
|
Project.BuildSystem.OPENFL,
|
||||||
|
[
|
||||||
|
Project.Platform.FLASH,
|
||||||
|
Project.Platform.HTML5,
|
||||||
|
Project.Platform.LINUX,
|
||||||
|
Project.Platform.WINDOWS,
|
||||||
|
Project.Platform.ANDROID,
|
||||||
|
],
|
||||||
|
config.branch({
|
||||||
|
name: 'app',
|
||||||
|
sources: [
|
||||||
|
'src/haxe',
|
||||||
|
],
|
||||||
|
main: 'ru.m.puzzlez.App',
|
||||||
|
meta: {
|
||||||
|
width: 1024,
|
||||||
|
height: 768,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
).bind(module, gulp);
|
||||||
|
|
||||||
|
const defaultSeries = [
|
||||||
|
exports.clean,
|
||||||
|
module.exports['app:flash:build'],
|
||||||
|
module.exports['app:flash:html'],
|
||||||
|
module.exports['app:html5:build'],
|
||||||
|
];
|
||||||
|
|
||||||
|
if (System.isLinux) {
|
||||||
|
defaultSeries.push(
|
||||||
|
module.exports['app:linux:build'],
|
||||||
|
module.exports['app:linux:archive'],
|
||||||
|
module.exports['app:linux:deb'],
|
||||||
|
|
||||||
|
module.exports['app:android:build'],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (System.isWindows) {
|
||||||
|
defaultSeries.push(
|
||||||
|
module.exports['app:windows:build'],
|
||||||
|
module.exports['app:windows:archive'],
|
||||||
|
module.exports['app:windows:installer'],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports.default = gulp.series(defaultSeries);
|
||||||
6131
package-lock.json
generated
Normal file
6131
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
19
package.json
Normal file
19
package.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "puzzlez",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"private": true,
|
||||||
|
"devDependencies": {
|
||||||
|
"dateformat": "^3.0.3",
|
||||||
|
"gulp": "^4.0.0",
|
||||||
|
"gulp-add": "0.0.2",
|
||||||
|
"gulp-clean": "^0.4.0",
|
||||||
|
"gulp-haxetool": "0.1.3",
|
||||||
|
"yargs": "^13.2.4"
|
||||||
|
},
|
||||||
|
"haxeDependencies": {
|
||||||
|
"haxework": "git@bitbucket.org:shmyga/haxework.git",
|
||||||
|
"lime": "7.5.0",
|
||||||
|
"openfl": "8.9.1",
|
||||||
|
"hxcpp": "4.0.52"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
src/haxe/ru/m/puzzlez/App.hx
Normal file
7
src/haxe/ru/m/puzzlez/App.hx
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package ru.m.puzzlez;
|
||||||
|
|
||||||
|
class App {
|
||||||
|
public static function main() {
|
||||||
|
trace("ok");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user