A cli to aid in the building of framptonjs modules.
I always use the cli locally, on a per-module basis, and use 'npm run' to run the exposed frampton commands.
npm install --save-dev frampton-clinpm install -g frampton-cliTo build a frampton module to 'dist/' directory.
Include this in your package.json.
..."scripts": { "build": "frampton build"},...Then invoke the build from the command line.
npm run buildTo build a frampton module to another directory use the --output flag.
..."scripts": { "build": "frampton build --output ./temp"},...Update your package.json.
..."scripts": { "test": "frampton test", "build": "frampton build"},...Then invoke tests from the command line.
npm run testThe release command runs a new build, bumps the version, commits the version bump and publishes the new version to github and npm. By default the command does a patch version bump. It can be given flags to do major and minor version bumps as well. It can also take an output path other than the default 'dist/'.
Update your package.json.
..."scripts": { "test": "frampton test", "build": "frampton build", "patch-release": "frampton release --patch", "minor-release": "frampton release --minor", "major-release": "frampton release --major"},...