diff --git a/.gitignore b/.gitignore index c443a06..5fdf0b8 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,7 @@ bower_components/ node_modules/ build/ phantom-*.* +res/ +*.js +*.css +*.html \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..625b206 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +/bower_components +/example +/node_modules +/scripts diff --git a/README.md b/README.md index 3e3c342..e348ad0 100644 --- a/README.md +++ b/README.md @@ -33,19 +33,15 @@ Yatra (Yet Another Test Runner) – "еще один" исполнитель м > git clone https://github.com/basisjs/yatra.git yatra > cd yatra - > bower install + > npm install Основной файл интерфейса – `src/reporter.html`. -Для сборки необходимы инструменты [`basisjs-tools`](https://github.com/basisjs/basisjs-tools). Их можно установить локально используя `npm`: - - > npm install - > node node_modules/basisjs-tools/bin/basis build +Сборка: -Результат сборки окажется в папке `build`. По умолчанию собирается только приложение. Для сборки `lib` или `runner`, нужно указывать явно необходимый файл. + > npm run build - > node node_modules/basisjs-tools/bin/basis build src/lib.html - > node node_modules/basisjs-tools/bin/basis build src/runner.html +Результат сборки окажется в папке `build`. ### Использование в проекте diff --git a/basis.config b/basis.config index 18f39bc..18a998c 100644 --- a/basis.config +++ b/basis.config @@ -1,6 +1,10 @@ { "build": { - "file": "src/reporter.html", - "sameFilenames": true + "sameFilenames": true, + "preset": { + "runner": { "file": "src/runner.html" }, + "lib": { "file": "src/lib.html" }, + "reporter": { "file": "src/reporter.html" } + } } } diff --git a/bower.json b/bower.json index 482d6bb..749bfdb 100644 --- a/bower.json +++ b/bower.json @@ -1,13 +1,9 @@ { "name": "yatra", - "version": "1.0.0-beta", + "version": "1.0.3", "description": "User friendly unit-test runner", "main": "src/reporter.html", - "dependencies": { - "basisjs": "1.4.0", - "esprima": "1.2.2", - "jsdiff": "1.0.8" - }, + "dependencies": {}, "ignore": [ ".*", "**/.*", diff --git a/example/showcase.html b/example/showcase.html index 69b3371..0e03643 100644 --- a/example/showcase.html +++ b/example/showcase.html @@ -21,12 +21,12 @@ } -