Clappr v0.1.13はbrowserify
当時のnode.jsとnpmのバージョンを確認してインストールする
https://nodejs.org/ja/download/releases/
node.js 5.0.0、npm 3.3.6にする。
n 5.0.0 node -v v5.0.0 npm install npm@3.3.6 npm -v 3.3.6
基本は
git clone https://github.com/clappr/clappr.git cd clappr git checkout 69fee13332b3f9cf55d223c88aceedaa4168b12c npm install gulp build
で良いはずだが、devDependenciesとdependenciesがなぜかインストールされなかったので、package.jsonを参照して手動でインストール。
npm install babelify@5.0.3 npm install bower@1.3.12 npm install browserify@9.0.3 npm install browserify-istanbul@0.2.1 npm install browserify-versionify@1.0.3 npm install chai@1.10.0 npm install compass-mixins@0.12.3 npm install coveralls@2.11.2 npm install dotenv@0.4.0 npm install exorcist@0.1.6 npm install express@4.6.1 npm install express-alias@0.4.0 npm install glob@4.0.2 npm install gulp@3.8.1 npm install gulp-compressor@0.1.0 npm install gulp-jshint@1.9.0 npm install gulp-livereload@2.1.0 npm install gulp-minify-css@0.3.11 npm install gulp-rename@1.2.0 npm install gulp-sass@3.1.0 npm install gulp-streamify@0.0.5 npm install gulp-uglify@1.1.0 npm install gulp-util@3.0.1 npm install git://github.com/douglasduteil/isparta npm install istanbul@0.3.8 npm install karma@0.12.17 npm install karma-browserify@1.0.0 npm install karma-chai@0.1.0 npm install karma-chrome-launcher@0.1.4 npm install karma-cli@0.0.4 npm install git://github.com/douglasduteil/karma-coverage#next npm install karma-firefox-launcher@0.1.3 npm install karma-jasmine@0.2.2 npm install karma-jquery@0.1.0 npm install karma-mocha@0.1.4 npm install karma-safari-launcher@0.1.1 npm install karma-sinon@1.0.3 npm install karma-sinon-chai@0.2.0 npm install mkdirp@0.5.0 npm install node-sass@0.9.6 npm install s3@4.1.1 npm install scp@0.0.3 npm install sinon@1.10.2 npm install sync-pkg@0.3.0 npm install vinyl-source-stream@1.0.0 npm install vinyl-transform@0.0.1 npm install watchify@2.0.0 npm install yargs@1.3.3 npm install clappr-zepto": "0.0.4" npm install lodash.assign": "3.0.0" npm install lodash.find": "3.0.0" npm install lodash.once": "3.0.0" npm install lodash.result": "3.0.0" npm install lodash.uniq": "3.0.0"
あとは
gulp build
これでいけた。
参考
package.jsonの中身
{ "name": "clappr", "version": "0.1.13", "description": "An extensible media player for the web", "main": "dist/clappr.min.js", "scripts": { "test": "./node_modules/.bin/karma start --single-run --browsers Firefox", "lock": "rm -rf npm-shrinkwrap.json node_modules && npm install --silent && npm shrinkwrap" }, "repository": { "type": "git", "url": "git@github.com:clappr/clappr.git" }, "author": "Globo.com", "license": "BSD", "bugs": { "url": "https://github.com/clappr/clappr/issues" }, "browser": { "zepto": "clappr-zepto" }, "homepage": "https://github.com/clappr/clappr", "devDependencies": { "babelify": "5.0.3", "bower": "1.3.12", "browserify": "9.0.3", "browserify-istanbul": "^0.2.1", "browserify-versionify": "1.0.3", "chai": "1.10.0", "compass-mixins": "0.12.3", "coveralls": "^2.11.2", "dotenv": "^0.4.0", "exorcist": "^0.1.6", "express": "^4.6.1", "express-alias": "0.4.0", "glob": "^4.0.2", "gulp": "^3.8.1", "gulp-compressor": "^0.1.0", "gulp-jshint": "1.9.0", "gulp-livereload": "^2.1.0", "gulp-minify-css": "0.3.11", "gulp-rename": "^1.2.0", "gulp-sass": "1.0.0", "gulp-streamify": "0.0.5", "gulp-uglify": "1.1.0", "gulp-util": "3.0.1", "isparta": "git://github.com/douglasduteil/isparta", "istanbul": "^0.3.8", "karma": "^0.12.17", "karma-browserify": "^1.0.0", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^0.1.4", "karma-cli": "0.0.4", "karma-coverage": "git://github.com/douglasduteil/karma-coverage#next", "karma-firefox-launcher": "^0.1.3", "karma-jasmine": "^0.2.2", "karma-jquery": "^0.1.0", "karma-mocha": "^0.1.4", "karma-safari-launcher": "^0.1.1", "karma-sinon": "^1.0.3", "karma-sinon-chai": "^0.2.0", "mkdirp": "^0.5.0", "s3": "^4.1.1", "scp": "0.0.3", "sinon": "^1.10.2", "sync-pkg": "0.3.0", "vinyl-source-stream": "^1.0.0", "vinyl-transform": "0.0.1", "watchify": "^2.0.0", "yargs": "1.3.3" }, "dependencies": { "clappr-zepto": "0.0.4", "lodash.assign": "3.0.0", "lodash.find": "3.0.0", "lodash.once": "3.0.0", "lodash.result": "3.0.0", "lodash.uniq": "3.0.0" } }