Package Exports
- aegir/gulp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aegir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AEgir
Automated JavaScript project management.
Project Structure
The project structure when using this is quite strict, to ease replication and configuration overhead.
All source code should be placed under src, with the main entry
point being src/index.js.
All test files should be placed under test. Individual test files should end in .spec.js and setup files for the node and the browser should be test/node.js and test/browser.js respectively.
Your package.json should have the following entries.
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"lint": "aegir-lint",
"release": "aegir-release",
"build": "dignifed-build",
"test": "aegir-test",
"test:node": "aegir-test node",
"test:browser": "aegir-test browser",
"coverage": "aegir-coverage"
}You should also add babel-runtime to your dependencies as it is required by the babelified version in lib.
Tasks
Linting
Linting uses eslint and standard with some custom rules to enforce some more strictness.
You can run it using
$ aegir-lint
# or as gulp task
$ gulp lintTesting
You can run it using
$ aegir-test
# or as gulp task
$ gulp testThere are also browser and node specific tasks
$ aegir-test node
$ gulp test:node
$ aegir-test browser
$ gulp test:browserCoverage
You can run it using
$ aegir-coverage
# or as gulp task
$ gulp coverageBuilding
This will build a browser ready version into dist, so after publishing the results will be available under
https://npmcdn.com/<module-name>/dist/index.js
https://npmcdn.com/<module-name>/dist/index.min.jsThere is also an ES5 build that will be placed in lib that will be required by default from consumers using require.
You can run it using
$ aegir-build
# or as gulp task
$ gulp buildReleasing
- Run linting
- Run tests
- Build everything
- Bump the version in
package.json - Commit the version change
- Create a git tag
- Run
git pushtoupstream/master
# Major release
$ gulp release major
$ aegir-release major
# Minor relase
$ gulp release minor
$ aegir-release minor
# Patch release
$ gulp release
$ aegir-releaseOther Notes
There is a badge.
[](https://github.com/dignifiedquire/aegir)License
MIT