1.0.6 • Published 7 years ago

aaa-header v1.0.6

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

Global AAA Header component for React web applications

The package is based on npm-base package by Kadira which is really great when you want to prepare Npm package. This one is prepared to be used as a starter point for React components which needs to be published on Npm.

It includes linting with ESLint and testing with Mocha, Enzyme and JSDOM.

Also there is of course ES6 transpilation.

Usage

  1. Clone this repo
  2. Inside cloned repo run npm install
  3. If you want to run tests: npm test or npm run testonly or npm run test-watch. You need to write tests in specs folder. You need at least Node 4 on your machine to run tests.
  4. If you want to run linting: npm test or npm run lint. Fix bugs: npm run lint-fix. You can adjust your .eslintrc config file.
  5. If you want to run transpilation to ES5 in dist folder: npm run prepublish (standard npm hook).

Publishing as a node module

  1. Update version in package.json.
  2. Login as a npm user: run npm login (Only required if not already logged in)
  3. Compile the build: run npm run prepublish
  4. Publish the build: run npm publish
  5. In your parent application, just include this module as a dev dependency if it's not already included: npm install aaa-header --save-dev or npm update aaa-header if it's already included in package.json

Also check out

License

MIT

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago