Initial commit

This commit is contained in:
Andrew Sliwinski 2016-04-08 13:10:37 -04:00
parent 9d5423f22a
commit 655556273a
6 changed files with 73 additions and 4 deletions

10
.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
# Mac OS
.DS_Store
# NPM
/node_modules
npm-*
# Testing
/.nyc_output
/coverage

24
Makefile Normal file
View file

@ -0,0 +1,24 @@
ESLINT=./node_modules/.bin/eslint
NODE=node
TAP=./node_modules/.bin/tap
# ------------------------------------------------------------------------------
lint:
$(ESLINT) ./*.js
$(ESLINT) ./lib/*.js
$(ESLINT) ./test/**/*.js
test:
@make lint
$(TAP) ./test/{unit,integration}/*.js
coverage:
$(TAP) ./test/{unit,integration}/*.js --coverage --coverage-report=lcov
benchmark:
$(NODE) ./test/benchmark/performance.js
# ------------------------------------------------------------------------------
.PHONY: lint test coverage benchmark

24
README.md Normal file
View file

@ -0,0 +1,24 @@
## scratch-vm
## Installation
```bash
npm install scratch-vm
```
## Integration
```js
```
## Testing
```bash
make test
```
```bash
make coverage
```
```bash
make benchmark
```

0
index.js Normal file
View file

View file

@ -1,16 +1,21 @@
{ {
"name": "<name>", "name": "scratch-vm",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"author": "Massachusetts Institute of Technology", "author": "Massachusetts Institute of Technology",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"homepage": "https://github.com/LLK/<name>#readme", "homepage": "https://github.com/LLK/scratch-vm#readme",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+ssh://git@github.com/LLK/<name>.git" "url": "git+ssh://git@github.com/LLK/scratch-vm.git"
}, },
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "make test"
},
"devDependencies": {
"benchmark": "2.1.0",
"eslint": "2.7.0",
"tap": "5.7.1"
} }
} }

6
test/unit/spec.js Normal file
View file

@ -0,0 +1,6 @@
var test = require('tap').test;
var vm = require('../../index');
test('spec', function (t) {
t.end();
});