firenpm v1.2.0
firenpm
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!
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 templatefirenpm
- 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.
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago