kireji 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kireji",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "A web framework for stateful, entropy-perfect, multi-origin web applications. Currently in alpha. Expect breaking changes for version 0. Use with caution!",
5
5
  "files": [
6
6
  "src/",
Binary file
Binary file
package/src/build.js CHANGED
@@ -232,13 +232,18 @@ function ƒ(_) {
232
232
  `)
233
233
  const buildStartTime = Date.now()
234
234
  if (environment === "node" && require.main === module) {
235
- const stats = { fileCount: 0, domainCount: 0 }
235
+ const
236
+ stats = { fileCount: 0, domainCount: 0 },
237
+ { readdirSync: readFolder, readFileSync: readFile, existsSync: exists } = require("fs"),
238
+ { resolve } = require("path"),
239
+ configPath = resolve(__dirname, "../../../src/kireji.json")
240
+
241
+ if (exists(configPath))
242
+ Object.assign(_, require(configPath))
243
+
236
244
  logScope(1, "Archiving Repository", archiveLog => {
237
- warn("Warning: Not yet merging with framework source files.")
238
245
  let lastLogFlush = Date.now()
239
246
  const
240
- { readdirSync: readFolder, readFileSync: readFile, existsSync: exists } = require("fs"),
241
- { resolve } = require("path"),
242
247
  batchedLogs = [],
243
248
  bufferLog = (verbosity, msg) => {
244
249
  if (verbosity > _.verbosity)
@@ -273,7 +278,6 @@ function ƒ(_) {
273
278
  const filenames = []
274
279
 
275
280
  for (const [itemName, { entry, source }] of unifiedEntries) {
276
- debug(itemName)
277
281
  // Ignore logic (TS files, hidden files, etc)
278
282
  if (itemName.startsWith(".") || itemName === "Icon" || (!host && itemName === "build.js") || itemName.endsWith(".ts")) {
279
283
  bufferLog(4, "".padEnd(depth, " ") + `⬚ ${itemName.padEnd(20, " ")} - ignored`)
@@ -321,11 +325,6 @@ function ƒ(_) {
321
325
 
322
326
  readRecursive("", __dirname, resolve(__dirname, "../../../src"), _, 0)
323
327
 
324
- // TODO: Evaluate the timing of this action.
325
- const configPath = resolve(__dirname, "../../../src/kireji.json")
326
- if (exists(configPath))
327
- Object.assign(_, require(configPath))
328
-
329
328
  if (batchedLogs.length)
330
329
  archiveLog(batchedLogs.join("\n") + "\n")
331
330
 
@@ -100,7 +100,6 @@ logScope(1, `\nCreating Deployment Artifact`, log => {
100
100
  if (!existsSync(archiveFolder))
101
101
  mkdirSync(archiveFolder)
102
102
 
103
- debug()
104
103
  writeFileSync(artifactPath, _["build.js"])
105
104
 
106
105
  log("Success.")