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

Commit

Permalink
Update to new plugin infrastructure (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Oct 22, 2017
1 parent 2ed4ece commit c5bb120
Show file tree
Hide file tree
Showing 12 changed files with 1,465 additions and 1,233 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
@@ -1,3 +1,5 @@
.DS_Store

# Logs
logs
*.log
Expand Down Expand Up @@ -27,5 +29,4 @@ node_modules
# Users Environment Variables
.lock-wscript

# The compiled/babelified modules
lib/
dist/
6 changes: 2 additions & 4 deletions .istanbul.yml
@@ -1,8 +1,6 @@
verbose: false
instrumentation:
root: src/
excludes:
- lib/
root: ./lib/
include-all-sources: true
reporting:
print: summary
Expand All @@ -14,4 +12,4 @@ reporting:
statements: [50, 80]
lines: [50, 80]
functions: [50, 80]
branches: [50, 80]
branches: [50, 80]
30 changes: 0 additions & 30 deletions .jshintrc

This file was deleted.

7 changes: 3 additions & 4 deletions .npmignore
@@ -1,11 +1,10 @@
.editorconfig
.jshintrc
.travis.yml
.istanbul.yml
.babelrc
.idea/
src/
.vscode/
test/
!lib/
coverage/
.github/
coverage
.istanbul.yml
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,6 @@ language: node_js
node_js:
- node
- '6'
- '4'
sudo: false
before_script:
- 'npm install -g codeclimate-test-reporter'
Expand Down
4 changes: 0 additions & 4 deletions README.md
Expand Up @@ -5,13 +5,9 @@
> The command line interface for Feathers applications
[![Build Status](https://img.shields.io/travis/feathersjs/feathers-cli/master.svg)](https://travis-ci.org/feathersjs/feathers-cli)
[![Code Climate](https://img.shields.io/codeclimate/github/feathersjs/feathers-cli.svg)](https://codeclimate.com/github/feathersjs/feathers-cli)
[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-cli/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-cli/coverage)
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-cli.svg)](https://david-dm.org/feathersjs/feathers-cli)
[![Download Status](https://img.shields.io/npm/dm/feathers-cli.svg)](https://www.npmjs.com/package/feathers-cli)
[![Slack Status](http://slack.feathersjs.com/badge.svg)](http://slack.feathersjs.com)

[![NPM](https://nodei.co/npm/feathers-cli.png?downloads=true&stars=true)](https://nodei.co/npm/feathers-cli/)

## Installation

Expand Down
14 changes: 6 additions & 8 deletions src/index.js → lib/index.js
@@ -1,7 +1,7 @@
import yeoman from 'yeoman-environment';
import program from 'commander';
import meta from 'generator-feathers/meta';
import semver from 'semver';
const yeoman = require('yeoman-environment');
const program = require('commander');
const meta = require('generator-feathers/meta');
const semver = require('semver');

const env = yeoman.createEnv();

Expand All @@ -12,9 +12,7 @@ Object.keys(meta).forEach(name => {
env.register(require.resolve(moduleName), `feathers:${name}`);
});

module.exports = function(argv, generatorOptions = {
disableNotifyUpdate: true
}) {
module.exports = function (argv, generatorOptions = {}) {
let description = 'Run a generator. Type can be\n';

Object.keys(meta).forEach(name => {
Expand All @@ -24,7 +22,7 @@ module.exports = function(argv, generatorOptions = {
program.version(require('../package.json').version)
.usage('generate [type]');

if(!semver.satisfies(process.version, '>= 6.0.0')) {
if (!semver.satisfies(process.version, '>= 6.0.0')) {
console.error('The Feathers CLI and generated application requires Node v6.0.0 or later.');
return process.exit(1);
}
Expand Down
1 change: 0 additions & 1 deletion mocha.opts
@@ -1,2 +1 @@
--recursive test/
--compilers js:babel-core/register

0 comments on commit c5bb120

Please sign in to comment.