mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Initial commit
This commit is contained in:
parent
9d5423f22a
commit
655556273a
6 changed files with 73 additions and 4 deletions
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Mac OS
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# NPM
|
||||||
|
/node_modules
|
||||||
|
npm-*
|
||||||
|
|
||||||
|
# Testing
|
||||||
|
/.nyc_output
|
||||||
|
/coverage
|
24
Makefile
Normal file
24
Makefile
Normal 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
24
README.md
Normal 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
0
index.js
Normal file
13
package.json
13
package.json
|
@ -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
6
test/unit/spec.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
var test = require('tap').test;
|
||||||
|
var vm = require('../../index');
|
||||||
|
|
||||||
|
test('spec', function (t) {
|
||||||
|
t.end();
|
||||||
|
});
|
Loading…
Reference in a new issue