Master upgrade & React/JS Setup. Includes:
- Add browserify gem. - Add React/React-Router/React-Bootstrap. - Add jest. - Add alt.js. - Add data fetcher.
... | ... | @@ -2,17 +2,14 @@ source 'https://rubygems.org' |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | ||
gem 'rails', '4.2.0' | ||
gem "haml-rails", "~> 0.9" | ||
# Use SCSS for stylesheets | ||
gem 'sass-rails', '~> 5.0' | ||
# Use Uglifier as compressor for JavaScript assets | ||
gem 'uglifier', '>= 1.3.0' | ||
# Twitter bootstrap styles | ||
gem 'bootstrap-sass', '~> 3.3.5' | ||
# Use CoffeeScript for .coffee assets and views | ||
gem 'coffee-rails', '~> 4.1.0' | ||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', platforms: :ruby | ||
# Use jquery as the JavaScript library | ||
gem 'jquery-rails' | ||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks | ||
... | ... | @@ -26,17 +23,10 @@ gem 'pg' |
gem 'devise' | ||
gem 'react-rails', '~> 1.0' | ||
gem 'sprockets', '>= 3.0.0' | ||
gem 'sprockets-es6' | ||
gem "haml-rails", "~> 0.9" | ||
# Use Unicorn as the app server | ||
# gem 'unicorn' | ||
gem 'browserify-rails' | ||
# Use Capistrano for deployment | ||
# gem 'capistrano-rails', group: :development | ||
# react specific gems | ||
gem 'react-rails', '~> 1.1.0' | ||
group :development, :test do | ||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | ||
... | ... |
package.json
0 → 100644
{ | ||
"name": "chemotion", | ||
"dependencies" : { | ||
"alt": "0.17.1", | ||
"babelify": "6.1.3", | ||
"browserify": "~> 10.2.4", | ||
"browserify-incremental": "^3.0.1", | ||
"immutable": "3.7.4", | ||
"react": "0.13.3", | ||
"react-router": "0.13.3", | ||
"react-tools": "0.13.3", | ||
"react-bootstrap": "0.24.2", | ||
"whatwg-fetch": "0.9.0" | ||
}, | ||
"browserify": { | ||
"transform": ["babelify"] | ||
}, | ||
"devDependencies": { | ||
"babel-jest": "*", | ||
"jest-cli": "*" | ||
}, | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"jest": { | ||
"rootDir": ".", | ||
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest", | ||
"moduleFileExtensions": [ "js", "json", "es6"], | ||
"unmockedModulePathPatterns": [ | ||
"<rootDir>/node_modules/react", | ||
"<rootDir>/node_modules/react-tools" | ||
], | ||
"testFileExtensions": ["js", "es6"] | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">= 0.10" | ||
} | ||
} |
Please register or sign in to comment