Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Dec 25, 2017
1 parent 1036818 commit 790d40a
Show file tree
Hide file tree
Showing 19 changed files with 3,629 additions and 333 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style = tab
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
'extends': 'trigen/base',
'env': {
'node': true
}
};
20 changes: 13 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
Expand All @@ -12,6 +13,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand All @@ -23,15 +25,19 @@ coverage
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# Env
.env
# Optional npm cache directory
.npm

# Docker (for future)
Dockerfile
docker-compose.yml
# Optional REPL history
.node_repl_history

# OS X stuff
.DS_Store
.DS_Store

# Some caches
.eslintcache

# Compiled dist
lib
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
language: node_js
node_js:
- "6.1"
- "node"
- "6.0"
- "5.11"
- "5.0"
- "4.4"
- "4.0"
- "0.12"
- "iojs"
cache:
directories:
- node_modules
after_success: npm run coverage
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.2.0] - 2017-12-26
### Changed
- `babel-cli` -> `Rollup`
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
[![NPM](https://nodei.co/npm/argue-cli.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/argue-cli/)

# argue-cli

[![NPM version][npm]][npm-url]
[![Node version][node]][node-url]
[![Dependency status][deps]][deps-url]

[npm]: https://img.shields.io/npm/v/argue-cli.svg
[npm-url]: https://www.npmjs.com/package/argue-cli

[node]: https://img.shields.io/node/v/argue-cli.svg
[node-url]: https://nodejs.org

[deps]: https://img.shields.io/david/TrigenSoftware/argue-cli.svg
[deps-url]: https://david-dm.org/TrigenSoftware/argue-cli

Node.js CLI arguments parser.

# Install

```bash
npm i argue-cli
# or
yarn add argue-cli
```

# API

### expect(...names)
Expand Down Expand Up @@ -78,3 +98,6 @@ optionsEqual(
"verbose" // only one variant of name, e.g. `babel compile script.js --verbose`
)
```

---
[![NPM](https://nodei.co/npm/argue-cli.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/argue-cli/)
66 changes: 45 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
{
"name": "argue-cli",
"version": "1.1.1",
"version": "1.2.0",
"description": "Node.js CLI arguments parser.",
"main": "lib/lib.js",
"scripts": {
"test": "mocha -b",
"compile": "babel ./src -d ./lib",
"prepublish": "npm run compile"
},
"author": "dangreen",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/TrigenSoftware/Argue.git"
},
"bugs": {
"url": "https://github.com/TrigenSoftware/Argue/issues"
},
"main": "lib/index.js",
"module": "lib/index.es.js",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"lint": "eslint --cache 'src/**/*.js' 'test/**/*.js'",
"test": "npm run lint && nyc mocha -b",
"build": "rollup -c",
"watch": "rollup -c -w",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"prepublishOnly": "npm run build"
},
"keywords": [
"strict",
"cli",
Expand All @@ -20,24 +32,36 @@
"console",
"terminal"
],
"author": "dangreen",
"license": "MIT",
"bugs": {
"url": "https://github.com/TrigenSoftware/Argue/issues"
},
"homepage": "https://github.com/TrigenSoftware/Argue#readme",
"devDependencies": {
"babel-cli": "^6.4.5",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"babel-register": "^6.4.3",
"should": "^8.2.1",
"mocha": "*"
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-0": "^6.24.1",
"babel-register": "^6.26.0",
"coveralls": "^3.0.0",
"escope": "^3.6.0",
"eslint": "^4.14.0",
"eslint-config-trigen": "^2.3.1",
"mocha": "^4.0.1",
"nyc": "^11.4.1",
"rollup": "^0.53.0",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-eslint": "^4.0.0",
"should": "^13.1.3"
},
"babel": {
"presets": [
"es2015",
[
"env",
{
"targets": {
"node": "6"
}
}
],
"stage-0"
]
}
},
"files": [
"lib"
]
}
38 changes: 38 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import babel from 'rollup-plugin-babel';
import eslint from 'rollup-plugin-eslint';
import pkg from './package.json';

const plugins = [
eslint({
exclude: ['**/*.json', 'node_modules/**'],
throwOnError: process.env.ROLLUP_WATCH != 'true'
}),
babel(Object.assign({
runtimeHelpers: true,
babelrc: false,
exclude: 'node_modules/**'
}, pkg.babel, {
presets: pkg.babel.presets.map((preset) => {

if (Array.isArray(preset) && preset[0] == 'env') {
preset[1].modules = false;
}

return preset;
})
}))
];

export default {
input: 'src/index.js',
plugins,
output: [{
file: pkg.main,
format: 'cjs',
sourcemap: true
}, {
file: pkg.module,
format: 'es',
sourcemap: true
}]
};
Loading

0 comments on commit 790d40a

Please sign in to comment.