升级package包,更新readme
This commit is contained in:
@@ -1,36 +1,29 @@
|
||||
'use strict';
|
||||
const gulp = require("gulp");
|
||||
const gulp = require('gulp');
|
||||
const { series, parallel } = require('gulp');
|
||||
const minify = require('gulp-minify');
|
||||
const inject = require("gulp-inject-string");
|
||||
const inject = require('gulp-inject-string');
|
||||
const ts = require('gulp-typescript');
|
||||
const merge = require('merge2');
|
||||
const tsProject = ts.createProject('tsconfig.json');
|
||||
|
||||
gulp.task('buildJs', () => {
|
||||
return tsProject.src()
|
||||
.pipe(tsProject())
|
||||
.js.pipe(inject.replace('var es;', ''))
|
||||
.pipe(inject.prepend('window.es = {};\n'))
|
||||
.pipe(inject.replace('var __extends =', 'window.__extends ='))
|
||||
.pipe(minify({ ext: { min: ".min.js" } }))
|
||||
.pipe(gulp.dest('./bin'));
|
||||
});
|
||||
function buildJs() {
|
||||
return tsProject.src()
|
||||
.pipe(tsProject())
|
||||
.js.pipe(inject.replace('var es;', ''))
|
||||
.pipe(inject.prepend('window.es = {};\n'))
|
||||
.pipe(inject.replace('var __extends =', 'window.__extends ='))
|
||||
.pipe(minify({ ext: { min: ".min.js" } }))
|
||||
.pipe(gulp.dest('./bin'));
|
||||
}
|
||||
|
||||
gulp.task("buildDts", ["buildJs"], () => {
|
||||
return tsProject.src()
|
||||
.pipe(tsProject())
|
||||
// .dts.pipe(inject.append('import e = framework;'))
|
||||
.pipe(gulp.dest('./bin'));
|
||||
});
|
||||
function buildDts() {
|
||||
return tsProject.src()
|
||||
.pipe(tsProject())
|
||||
// .dts.pipe(inject.append('import e = framework;'))
|
||||
.pipe(gulp.dest('./bin'));
|
||||
}
|
||||
|
||||
gulp.task("copy", ["buildDts"], () => {
|
||||
return gulp.src('bin/**/*');
|
||||
});
|
||||
|
||||
gulp.task('build', ['copy'], () => {
|
||||
return merge([
|
||||
gulp.src('bin/*.js'),
|
||||
gulp.src('bin/*.ts'),
|
||||
gulp.src('bin/framework.d.ts')
|
||||
])
|
||||
});
|
||||
exports.buildJs = buildJs;
|
||||
exports.buildDts = buildDts;
|
||||
exports.build = series(buildJs, buildDts);
|
||||
3502
source/package-lock.json
generated
3502
source/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -13,26 +13,30 @@
|
||||
"author": "yhh",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.6.0",
|
||||
"@babel/core": "^7.21.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"browserify": "^14.3.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-babel": "^8.0.0",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-inject-string": "^1.1.2",
|
||||
"gulp-minify": "^3.1.0",
|
||||
"gulp-string-replace": "^1.1.2",
|
||||
"gulp-typescript": "^3.1.6",
|
||||
"gulp-typescript": "^5.0.1",
|
||||
"gulp-uglify": "^3.0.2",
|
||||
"merge2": "^1.4.1",
|
||||
"tsify": "^3.0.1",
|
||||
"typedoc": "^0.19.2",
|
||||
"typedoc": "^0.23.26",
|
||||
"typescript": "^2.2.2",
|
||||
"vinyl-source-stream": "^1.1.0",
|
||||
"watchify": "^3.9.0",
|
||||
"merge2": "^1.4.1"
|
||||
"watchify": "^4.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com/359807859@qq.com"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/esengine/ecs-framework.git"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user