Skip to content

Commit

Permalink
Merge pull request #228 from HashLips/dev
Browse files Browse the repository at this point in the history
Fixed path error
  • Loading branch information
HashLips authored Nov 7, 2021
2 parents 3212078 + c42c04e commit f04b036
Show file tree
Hide file tree
Showing 13 changed files with 297 additions and 341 deletions.
2 changes: 0 additions & 2 deletions constants/blend_mode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

const MODE = {
sourceOver: "source-over",
sourceIn: "source-in",
Expand Down
2 changes: 0 additions & 2 deletions constants/network.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

const NETWORK = {
eth: "eth",
sol: "sol",
Expand Down
11 changes: 2 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
"use strict";

const path = require("path");
const isLocal = typeof process.pkg === "undefined";
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);
const { startCreating, buildSetup } = require(path.join(
basePath,
"/src/main.js"
));
const basePath = process.cwd();
const { startCreating, buildSetup } = require(`${basePath}/src/main.js`);

(() => {
buildSetup();
Expand Down
203 changes: 99 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hashlips_art_engine",
"version": "1.0.9",
"version": "1.1.1",
"description": "HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.",
"main": "index.js",
"bin": "index.js",
Expand Down
11 changes: 4 additions & 7 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"use strict";

const path = require("path");
const isLocal = typeof process.pkg === "undefined";
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);
const { MODE } = require(path.join(basePath, "constants/blend_mode.js"));
const { NETWORK } = require(path.join(basePath, "constants/network.js"));
const basePath = process.cwd();
const { MODE } = require(`${basePath}/constants/blend_mode.js`);
const { NETWORK } = require(`${basePath}/constants/network.js`);

const network = NETWORK.eth;

Expand Down Expand Up @@ -48,6 +44,7 @@ const debugLogs = false;
const format = {
width: 512,
height: 512,
smoothing: false,
};

const gif = {
Expand Down
Loading

0 comments on commit f04b036

Please sign in to comment.