Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,003 changes: 0 additions & 3,003 deletions animatedBackgrounds.json

This file was deleted.

91 changes: 0 additions & 91 deletions designersList.json

This file was deleted.

33 changes: 10 additions & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const { src, dest, series, watch } = require('gulp');
const gulpEsbuild = require('gulp-esbuild')
const zip = require('gulp-zip');
const rename = require("gulp-rename");

const del = require('del');
const fs = require('fs');
import { src, dest, series, watch } from 'gulp';
import gulpEsbuild from 'gulp-esbuild';
import zip from 'gulp-zip';
import rename from "gulp-rename";
import { deleteAsync } from 'del';
import fs from 'fs';

function dir() {
return src('*.*', { read: false })
Expand Down Expand Up @@ -121,20 +120,10 @@ function devManifest() {
}

function clean() {
return del('./out/build')
}

async function buildDesignersJsonFunc() {
const animatedBackgrounds = require('./animatedBackgrounds.json')
const designersList = require('./designersList.json')

designersList.animatedBackgrounds = animatedBackgrounds

fs.writeFileSync('designers.json', JSON.stringify(designersList))
return true
return deleteAsync('./out/build');
}

exports.default = series(
export const build = series(
dir,
js,
uploadJs,
Expand All @@ -143,7 +132,7 @@ exports.default = series(
clean
)

exports.dev = function () {
export const devtest = function () {
const devPipeline = series(
dir,
jsDev,
Expand All @@ -158,6 +147,4 @@ exports.dev = function () {
watch('src/**', devPipeline)
}

exports.buildDesignersJson = series(
buildDesignersJsonFunc
)
export default build
Loading