Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ratson committed Apr 9, 2016
0 parents commit 77f31e3
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
========================
cookiecutter-es6-package
========================

A cookiecutter for writing Node package in ES6 via babel.

Quickstart
----------

Install cookiecutter_::

pip install cookiecutter

Generate a Node package project::

cookiecutter https://github.com/ratson/cookiecutter-es6-package.git

.. _cookiecutter: https://github.com/audreyr/cookiecutter

Not Exactly What You Want?
--------------------------

Fork This / Create Your Own
~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you have differences in your preferred setup, I encourage you to fork this
to create your own version. Or create your own; it doesn't strictly have to
be a fork.

Or Submit a Pull Request
~~~~~~~~~~~~~~~~~~~~~~~~

I also accept pull requests on this, if they're small, atomic, and if they
make my own packaging experience better.
5 changes: 5 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"github_repo_name": "my-node-package",
"description": "A useful Node package.",
"github_username": "ratson"
}
3 changes: 3 additions & 0 deletions {{cookiecutter.github_repo_name}}/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
6 changes: 6 additions & 0 deletions {{cookiecutter.github_repo_name}}/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
npm-debug.log
.DS_Store
dist
lib
coverage
15 changes: 15 additions & 0 deletions {{cookiecutter.github_repo_name}}/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# {{ cookiecutter.github_repo_name }}

{{ cookiecutter.description }}

## Installation

```
npm install --save {{ cookiecutter.github_repo_name }}
```

## Usage

```js
import {{ cookiecutter.github_repo_name }} from '{{ cookiecutter.github_repo_name }}'
```
31 changes: 31 additions & 0 deletions {{cookiecutter.github_repo_name}}/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "{{ cookiecutter.github_repo_name }}",
"version": "0.0.1",
"description": "{{ cookiecutter.description }}",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib",
"clean": "rimraf lib dist coverage",
"prepublish": "npm-run-all clean build",
"test": "mocha --compilers js:babel-register --recursive ./test/*.spec.js"
},
"dependencies": {
},
"devDependencies": {
"babel-cli": "^6.7.5",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.7.2",
"mocha": "^2.4.5",
"npm-run-all": "^1.7.0",
"rimraf": "^2.5.2",
"should": "^8.3.0"
},
"repository": "{{ cookiecutter.github_username }}/{{ cookiecutter.github_repo_name }}",
"license": "MIT",
"files": [
"*.md",
"LICENSE",
"lib",
"src"
]
}
Empty file.

0 comments on commit 77f31e3

Please sign in to comment.