Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axmand/karma-rollup-mocha
an empty project based on karma,rollup and mocha
https://github.com/axmand/karma-rollup-mocha
Last synced: 3 months ago
JSON representation
an empty project based on karma,rollup and mocha
- Host: GitHub
- URL: https://github.com/axmand/karma-rollup-mocha
- Owner: axmand
- License: mit
- Created: 2017-05-12T13:13:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T16:31:56.000Z (over 7 years ago)
- Last Synced: 2024-10-06T22:05:02.305Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# karma-rollup-mocha #
[![Build Status](https://travis-ci.org/axmand/karma-rollup-mocha.svg?branch=master)](https://travis-ci.org/axmand/karma-rollup-mocha)
[![codecov](https://codecov.io/gh/axmand/karma-rollup-mocha/branch/master/graph/badge.svg)](https://codecov.io/gh/axmand/karma-rollup-mocha)## Unit test ##
>Unit test to make you code runs well
### step 1: ###
```
npm install
```
### step 2: ###
```
npm install -g karma-cli
```
>You will need to do this if you want to run Karma on Windows from the command line.### start karam ###
```
karma start
```
## Build ##
>Building 'dist/bundle.js' as an output if you confirmed that all of your tests runs well.
### install rollup ###
```
npm install -g rollup
```
>You will need to install rollup in global if you want to run rollup on Windows from the command line.
### build ###
```
rollup -c
```
>The default output folder's location : "./dist/*"
## Npm publish ##
```
npm publish
```
>Before publish code to npm,you need to add one account at least.
### add npm user ###
```
npm adduser
```
>Then add username/password/email## Debugger for chrome ##
>Add settings in VSC launch.json
```
{
"type": "chrome",
"request": "attach",
"name": "Attach Karma Chrome",
"address": "localhost",
"port": 9333,
"webRoot": "${workspaceRoot}",
"pathMapping": {
"/": "${workspaceRoot}",
"/base/": "${workspaceRoot}/"
}
}
```
>running code
```
karma start
```
>press 'F5' to attach the source , enjoy it!