Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Commit

Permalink
Version 1.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RedKenrok committed Oct 29, 2018
1 parent 3beb6a4 commit 2380ad9
Show file tree
Hide file tree
Showing 12 changed files with 263 additions and 357 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

## 1.1.7 (2017-10-27)
## 1.1.8 (2018-10-28)
### Changed
- Updated `hoast` and `hoast-layout` to versions `1.1.4` and `1.3.0` respectively.
- Switched to using `hoast.helpers.deepAssign` instead of custom `merge` utility function.
- Rewrote retrieval of Handlebars' `decorators`, `helpers`, and `partials` options.
- Restructured scripts in `library` directory.

## 1.1.7 (2018-10-27)
### Changed
- Updated `hoast-layouts` to version `1.2.3`.

Expand Down
16 changes: 8 additions & 8 deletions bin/hoastig.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env node

// Node modules.
const { constants, access, readFile } = require(`fs`),
{ resolve } = require(`path`);
const fs = require(`fs`),
path = require(`path`);
// If debug available require it.
let debug; try { debug = require(`debug`)(`hoastig-cli`); } catch(error) { debug = function() {}; }
let debug; try { debug = require(`debug`)(`hoastig/cli`); } catch(error) { debug = function() {}; }
// Dependency modules.
const commander = require(`commander`);
// Custom modules.
const info = require(`../package.json`),
Hoastig = require(`../library`);
hoastig = require(`../library`);

// Trace unhandled rejections.
process.on(`unhandledRejection`, function(reason, promise) {
Expand All @@ -33,25 +33,25 @@ if (commander.version !== true && commander.help !== true) {

// Translate arguments.
const directory = process.cwd();
const filePath = resolve(directory, commander.config);
const filePath = path.resolve(directory, commander.config);
debug(`Process from ${directory} using configuration from ${filePath}.`);
// Check file access.
access(filePath, constants.F_OK | constants.R_OK, function(error) {
fs.access(filePath, fs.constants.F_OK | fs.constants.R_OK, function(error) {
if (error) {
throw error;
}
debug(`Configuration accessible.`);

// Read configuration file.
readFile(filePath, `utf8`, async function(error, data) {
fs.readFile(filePath, `utf8`, async function(error, data) {
if (error) {
throw error;
}
debug(`Configuration: ${data}`);

// Process directory using configuration.
try {
await Hoastig(directory, JSON.parse(data), {
await hoastig(directory, JSON.parse(data), {
development: commander.development,
remove: commander.remove
});
Expand Down
100 changes: 0 additions & 100 deletions library/get/files.js

This file was deleted.

83 changes: 0 additions & 83 deletions library/get/functions.js

This file was deleted.

Loading

0 comments on commit 2380ad9

Please sign in to comment.