1.2.0 • Published 8 years ago

firenpm.web v1.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

firenpm node version Build Status npm version

Quick start

Install command line tools:

npm -g install firenpm.cli runjs

Create your project:

firenpm your-project

...and done! Now just cd your-project and type run test. Linting, ES6 and tests work out of the box!

screen shot 2016-09-25 at 19 59 50

Make a note that your dependencies in package.json will look like this:

{
  "name": "package-name",
  "version": "1.0.0",
  // ...
  "dependencies": {},
  "devDependencies": {
    "firenpm": "X.X.X"
  },
  // ...
}

there is no test tools, eslint or babel plugins there! That means you don't need to care about maintaining those dependencies, that's a job of firenpm.

What's inside ?

firenpm ecosystem consist of 2 npm modules: firenpm.cli and firenpm.

  • firenpm.cli - command line tool which generates project structure for you, from firenpm template
  • firenpm - provides necessary devDependencies

Tools used by firenpm:

  • babel (with presets: es2015, react and stage-2)
  • eslint (with standard and standard-react config)
  • mocha
  • mochaccino (test asserts, mocking)
  • runjs (minimalistic building tool)

Web extension

For testing packages which should work within the browser like React components there is firenpm.web extension.

To create project with that extension:

firenpm your-project --web

then

cd your-project
run test # will do tests on fake dom (jsdom)
run web # it will open up the browser, with your code

Web extension provides webpack setup which will run your code in the browser for visual testing purposes. In your devDependencies firenpm.web packages will be installed. Package stores all necessary tools, so you don't have to manage all webpack dependencies.