Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed Jan 26, 2024
1 parent a872d7f commit 81288ed
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 85 deletions.
37 changes: 19 additions & 18 deletions config/src/testnets.handlebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@
"create": true
},
{
"chainId": 999,
"chainName": "zora-goerli",
"rpcUrls": ["https://testnet.rpc.zora.energy"],
"chainId": 999999999,
"chainName": "zora-sepolia",
"rpcUrls": ["https://sepolia.rpc.zora.energy"],
"nativeCurrency": {
"name": "Zora Ether",
"symbol": "zETH",
"decimals": 18
},
"blockExplorerUrls": ["https://testnet.explorer.zora.energy"],
"blockExplorerUrls": ["https://sepolia.explorer.zora.energy/"],
"linkedMainnet": 7777777,
"linkedLayer1": 5,
"linkedLayer1": 11155111,
"create": true
},
{
Expand Down Expand Up @@ -233,19 +233,7 @@
"create": true,
"linkedMainnet": 40
},
{
"chainId": 31337,
"chainName": "local",
"rpcUrls": ["http://127.0.0.1:8545"],
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"blockExplorerUrls": ["http://localhost/explorer"],
"linkedMainnet": 31337,
"create": true
},

{
"chainId": 1351057110,
"chainName": "chaos-testnet",
Expand All @@ -259,5 +247,18 @@
"eip1559": false,
"create": true,
"linkedMainnet": 344106930
},
{
"chainId": 31337,
"chainName": "local",
"rpcUrls": ["http://127.0.0.1:8545"],
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"decimals": 18
},
"blockExplorerUrls": ["http://localhost/explorer"],
"linkedMainnet": 31337,
"create": true
}
]
3 changes: 2 additions & 1 deletion gulp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.env*
.env*
dist
1 change: 1 addition & 0 deletions gulp/dapp
24 changes: 11 additions & 13 deletions gulp/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var production = process.env.ENVIR == "PROD";

// Clean assets
function clean() {
return del(["../web/dapp/", ".../wordpress/plugins/kredeum-nfts/lib/"], { force: true });
return del(["dapp/**/*"], { force: true });
}

function swallow(err) {
Expand All @@ -35,7 +35,7 @@ function swallow(err) {
// Optimize Images
function images() {
return gulp
.src("./images/**/*")
.src("images/**/*")
.pipe(
imagemin([
imagemin.gifsicle({ interlaced: true }),
Expand All @@ -51,45 +51,43 @@ function images() {
}),
])
)
.pipe(gulp.dest("../web/dapp/assets/images"))
.pipe(gulp.dest("../wordpress/plugins/kredeum-nfts/lib/images"));
.pipe(gulp.dest("dapp/assets/images"));
}

// CSS task
function css() {
return gulp
.src("./scss/**/*.scss")
.src("scss/**/*.scss")
.pipe(!production ? sourcemaps.init() : noop())
.pipe(plumber())
.pipe(sass({ outputStyle: "expanded" }).on("error", sass.logError, swallow))
.pipe(postcss([autoprefixer(), cssnano()]))
.pipe(sourcemaps.write(".", { sourceRoot: "css-source" }))
.pipe(gulp.dest("../web/dapp/assets/css/"))
.pipe(gulp.dest("../wordpress/plugins/kredeum-nfts/lib/css/"));
.pipe(gulp.dest("dapp/assets/css/"));
}

function fonts() {
return gulp.src(["./fonts/**/*"]).pipe(gulp.dest("../web/dapp/assets/fonts/")).pipe(gulp.dest("../wordpress/plugins/kredeum-nfts/lib/fonts/"));
return gulp.src(["fonts/**/*"]).pipe(gulp.dest("dapp/assets/fonts/"));
}

// Copy html
function htmls() {
return gulp.src(["./html/**/*"]).pipe(gulp.dest("../web/dapp"));
return gulp.src(["html/*"]).pipe(gulp.dest("dapp"));
}

// Transpile, concatenate and minify scripts
function scripts() {
return gulp
.src(["./js/**/*"])
.src(["js/**/*"])
.pipe(plumber())
.pipe(!production ? uglify().on("error", swallow) : noop())
.pipe(gulp.dest("../web/dapp/assets/js/"));
.pipe(gulp.dest("dapp/assets/js/"));
}

// Watch files
function watchFiles() {
gulp.watch("./scss/**/*", css);
gulp.watch("./js/**/*", gulp.series(scripts));
gulp.watch("scss/**/*", css);
gulp.watch("js/**/*", gulp.series(scripts));
}

const build = gulp.series(clean, gulp.parallel(css, images, scripts, htmls), fonts);
Expand Down
4 changes: 2 additions & 2 deletions gulp/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<meta name="theme-color" content="#ffffff" />

<link rel="stylesheet" href="./assets/css/front.css" />
<link rel="stylesheet" href="./assets/kredeum-nfts.css" />
<script defer src="./assets/kredeum-nfts.js"></script>
<link rel="stylesheet" href="./assets/js/kredeum-nfts.css" />
<script defer src="./assets/js/kredeum-nfts.js"></script>
</head>

<body class="kredeum">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 3 additions & 8 deletions gulp/turbo.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"extends": [
"//"
],
"extends": ["//"],
"pipeline": {
"build": {
"outputs": [
"../web/dapp/**",
"../wordpress/plugins/kredeum-nfts/lib/**"
]
"outputs": ["dapp/**/*"]
}
}
}
}
Loading

0 comments on commit 81288ed

Please sign in to comment.