Last active
August 29, 2015 14:13
-
-
Save lesterzone/803f01a725cd9b28273c to your computer and use it in GitHub Desktop.
Start working with React.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "update name", | |
"version": "0.0.1", | |
"description": "A nice app", | |
"repository": "", | |
"author": "your name", | |
"main": "js/app.js", | |
"dependencies": { | |
"backbone": "^1.1.2", | |
"flux": "^2.0.1", | |
"jquery": "^2.1.3", | |
"react": "^0.12.2" | |
}, | |
"devDependencies": { | |
"browserify": "^8.1.1", | |
"catw": "^0.2.0", | |
"envify": "^3.2.0", | |
"jest-cli": "^0.2.1", | |
"react-tools": "^0.12.1", | |
"reactify": "^0.17.1", | |
"uglify-js": "^2.4.16", | |
"watchify": "^2.2.1" | |
}, | |
"scripts": { | |
"install_libs": "npm install backbone bootstrap flux jquery react --save", | |
"install_dev": "npm install browserify catw envify jest-cli reactify uglify-js watchify --save-dev", | |
"install_all": "npm run install_libs && npm run install_dev", | |
"start": "npm run watch-css & npm run watch-js & simple-http-server 9000 -v true", | |
"watch-js": "watchify -o dist/app.js -v -d .", | |
"watch-css": "catw css/*.css -o dist/app.css -v", | |
"build-css": "cat css/*.css > dist/app.css", | |
"build-js": "NODE_ENV=production browserify . | uglifyjs -cm > dist/app.js", | |
"build": "npm run build-js && npm run build-css", | |
"test": "jest" | |
}, | |
"browserify": { | |
"transform": [ | |
"reactify", | |
"envify" | |
] | |
}, | |
"jest": { | |
"rootDir": "./js", | |
"scriptPreprocessor": "./../preprocessor.js", | |
"unmockedModulePathPatterns": [ | |
"./node_modules/react" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment