Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

Commit 20f6f63

Browse files
authored
Merge pull request #3 from oganexon/develop
1.0.2
2 parents 4b145a1 + fa55706 commit 20f6f63

File tree

4 files changed

+33168
-5
lines changed

4 files changed

+33168
-5
lines changed

gulpfile.babel.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
const { src, dest } = require('gulp')
1+
const { src, dest, series } = require('gulp')
22
const babel = require('gulp-babel')
33
const uglify = require('gulp-uglify')
44
const bro = require('gulp-bro')
5+
const fs = require('fs')
6+
const path = require('path')
57

68
const files = ['tpll', 'tpdms', 'draw', 'list', 'help']
79

8-
exports.default = function () {
10+
exports.default = series(bundle, copyData)
11+
12+
function bundle () {
913
return src(`src/+(${files.join('|')}).js`)
1014
.pipe(bro())
1115
.pipe(babel())
1216
.pipe(uglify())
1317
.pipe(dest('craftscripts/'))
1418
}
19+
20+
function copyData (cb) {
21+
fs.mkdirSync(path.resolve(__dirname, './craftscripts/data'))
22+
fs.copyFileSync(path.resolve(__dirname, './src/data/conformal.txt'), path.resolve(__dirname, './craftscripts/data/conformal.txt'))
23+
cb()
24+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "bte-tools",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Awesome tools and scripts to enhance your experience on the Build The Earth project!",
55
"scripts": {
6-
"lint": "standard src/**/* --fix",
6+
"lint": "standard src/**/*.js --fix",
77
"build": "gulp"
88
},
99
"repository": {

0 commit comments

Comments
 (0)