0.1.15 • Published 9 years ago

generator-iso-lib v0.1.15

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

Iso-Lib, Yeoman Generator

Usage

npm install -g yo generator-iso-lib
yo iso-lib

Features

  • Universal / Isomorphic (runs in browser and Node.js).
  • Bundled into a single dependency for browser.
  • Integration testing on Node.js and browser.
  • Code coverage.
  • Version controlled with grunt bump.
  • API Documentation with JSDoc.
  • JavaScript style enforcement with JSCS.

Technologies

As a consumer: ( dependencies )

Add any other dependencies you need. Be sure to test it against Node.js and browser environments.

As a contributor ( devDependencies )

Project structure

Documentation

├── CONTRIBUTE.md  // how-to contribute to this library
├── README.md      // how-to use this library as a consumer
└── api
    └── index.html // generated api from JSDocs

Source

├── src
│   ├── ExampleComponent.js  // example component
│   ├── ExampleDependency.js // example dependency to show test mocking
│   └── YourLibraryName.js   // single-point-of-entry into library
├── Gruntfile.js             // build configuration with `grunt`
├── package.json             // npm details and dependencies
└── config                   // configuration files
    ├── grunt
    │   ├── babel.js
    │   ├── bump.js
    │   ├── cat.js
    │   ├── clean.js
    │   ├── jscs.js
    │   ├── jsdoc.js
    │   ├── karma.js
    │   ├── mochaTest.js
    │   ├── uglify.js
    │   ├── watch.js
    │   └── webpack.js
    ├── karma.js
    ├── mocha.js
    └── webpack.js

Testing

├── test
│   ├── integration
│   │   └── ExampleComponentTest.js   // example integration test
│   ├── support
│   │   └── TestUtils.js              // exports `expect` and `sinon`
│   └── unit
│       ├── ExampleComponentTest.js   // example unit test with mocking
│       └── ExampleDependencyTest.js  // example unit test
└── coverage // testing code coverage
    ├── coverage-detail.txt
    ├── coverage-html
    │   └── index.html
    └── coverage-summary.txt

Distribution

└── dist // distribution files published to npm
    ├── your-library-name-amd.js
    ├── your-library-name-amd.min.js
    ├── your-library-name-commonjs2.js
    ├── your-library-name-commonjs2.min.js
    ├── your-library-name-this.js
    └── your-library-name-this.min.js

Examples

Examples of provider and consumers can be seen here.

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago