Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #46 from amwmedia/greenkeeper/initial
Browse files Browse the repository at this point in the history
Update dependencies to enable Greenkeeper 🌴
  • Loading branch information
amwmedia authored Oct 2, 2017
2 parents 112792d + 1f5ac50 commit 3f3d769
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Node-Plop
======

[![Greenkeeper badge](https://badges.greenkeeper.io/amwmedia/node-plop.svg)](https://greenkeeper.io/)
[![CircleCI](https://circleci.com/gh/amwmedia/node-plop/tree/master.svg?style=svg)](https://circleci.com/gh/amwmedia/node-plop/tree/master)

This is an early publication of the plop core logic being removed from the CLI tool. Main purpose for this is to make it easier for others to automate code generation through processes and tools OTHER than the command line. This also makes it easier to test the code functionality of PLOP without needing to test via the CLI interface.
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-plop",
"version": "0.8.0",
"version": "0.9.0",
"description": "programmatic plopping for fun and profit",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -37,33 +37,33 @@
},
"homepage": "https://github.com/amwmedia/node-plop#readme",
"engines": {
"node": ">=4.0"
"node": ">=4.8.4"
},
"devDependencies": {
"ava": "^0.16.0",
"ava": "^0.22.0",
"babel-cli": "^6.16.0",
"babel-preset-es2015-node4": "^2.1.0",
"babel-register": "^6.18.0",
"eslint": "^3.9.1",
"eslint-config-standard": "^6.2.1",
"eslint": "^4.7.2",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-promise": "^3.3.1",
"eslint-plugin-standard": "^2.0.1",
"eslint-plugin-standard": "^3.0.1",
"plop": "^1.7.4",
"plop-pack-fancy-comments": "^0.2.1",
"pre-commit": "^1.1.3"
},
"dependencies": {
"change-case": "^2.3.1",
"change-case": "^3.0.1",
"co": "^4.6.0",
"colors": "^1.1.2",
"core-js": "^2.4.1",
"del": "^2.2.1",
"del": "^3.0.0",
"globby": "^6.1.0",
"handlebars": "^4.0.5",
"inquirer": "^1.2.0",
"inquirer": "^3.3.0",
"lodash.get": "^4.4.2",
"mkdirp": "^0.5.1",
"pify": "^2.3.0",
"pify": "^3.0.0",
"resolve": "^1.2.0"
},
"ava": {
Expand Down
10 changes: 9 additions & 1 deletion src/node-plop.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from 'fs';
import path from 'path';
import inquirer from 'inquirer';
import handlebars from 'handlebars';
Expand Down Expand Up @@ -66,7 +67,14 @@ function nodePlop(plopfilePath = '', plopCfg = {}) {
const getDefaultInclude = () => defaultInclude;
const getDestBasePath = () => destBasePath || plopfilePath;
const getPlopfilePath = () => plopfilePath;
const setPlopfilePath = filePath => plopfilePath = path.dirname(filePath);
const setPlopfilePath = filePath => {
const pathStats = fs.statSync(filePath);
if (pathStats.isFile()) {
plopfilePath = path.dirname(filePath);
} else {
plopfilePath = filePath;
}
};

function load(targets, loadCfg = {}, includeOverride) {
if (typeof targets === 'string') { targets = [targets]; }
Expand Down

0 comments on commit 3f3d769

Please sign in to comment.