0.0.12 • Published 7 years ago

frampton-cli v0.0.12

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

frampton-cli

A cli to aid in the building of framptonjs modules.

Instalation

I always use the cli locally, on a per-module basis, and use 'npm run' to run the exposed frampton commands.

Locally

npm install --save-dev frampton-cli

Globally

npm install -g frampton-cli

Build a Frampton Module

To 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 build

To build a frampton module to another directory use the --output flag.

...
"scripts": {
  "build": "frampton build --output ./temp"
},
...

Run Tests for a Frampton Module

Update your package.json.

...
"scripts": {
  "test": "frampton test",
  "build": "frampton build"
},
...

Then invoke tests from the command line.

npm run test

Release a Frampton Module

The 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"
},
...
0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago