revelry_generate 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9d2e764c813ca0e3076628ec050402bcd7dbace
4
- data.tar.gz: 218c5def1b9c76d085da3936519ebb26d4121f88
3
+ metadata.gz: 524926efa914c7513f22bfe59bbb43045d491b25
4
+ data.tar.gz: c369139fc733e1b1620f67b7ebe12f303eda8b58
5
5
  SHA512:
6
- metadata.gz: 2108a7ba12577c158c183e04b3ed86bcd9c52d4eb3c4b767e545e1b9b6670be2b33cbf0cd3d7eba6bee50c0020874363f39b6fd27dd2d948523880b40221b298
7
- data.tar.gz: 58bb46d75c9ccbc4608b3782ceac73442c9e3f0faa05719c4037c637bc73fea353ca5474471c3575bbe88bcdf2e4e12b77883d4912ac87edc43ed044dfaddeb8
6
+ metadata.gz: ea1c59dabc1ce97437902c9502729bb86b3b0a8b3d81bf1afaea444ba8227d47c9e181eb3dc300debbae9494cb0090723779ce9903125053975a8886a656c29f
7
+ data.tar.gz: 94264f4ee8caad48617f9a3e5d1d7813454872b63e0576e27320fb8c5794dd01925b7e24f51acb1346968892a32d00de3585260edc3a98701f4438a2e124f40a
@@ -1,6 +1,6 @@
1
1
  import React, {Component} from 'react'
2
- import {Row, Col} from 'revelry/lib/components/grid'
3
- import {AuthenticityTokenProvider} from 'revelry/lib/components/forms'
2
+ import {Row, Col} from 'revelry-components/lib/components/grid'
3
+ import {AuthenticityTokenProvider} from 'revelry-components/lib/components/forms'
4
4
  import {Link} from '../base'
5
5
  import Form from './form'
6
6
 
@@ -1,7 +1,7 @@
1
1
  import React, {Component, PropTypes} from 'react'
2
- import {Row, Col} from 'revelry/lib/components/grid'
3
- import {Input, Textarea} from 'revelry/lib/components/forms'
4
- import {Button} from 'revelry/lib/components/buttons'
2
+ import {Row, Col} from 'revelry-components/lib/components/grid'
3
+ import {Input, Textarea} from 'revelry-components/lib/components/forms'
4
+ import {Button} from 'revelry-components/lib/components/buttons'
5
5
  import {FormDataProvider, PropsFor} from 'react-rails-forms'
6
6
  import {Form} from '../base'
7
7
 
@@ -1,5 +1,5 @@
1
1
  import React, {Component, PropTypes} from 'react'
2
- import {Row, Col} from 'revelry/lib/components/grid'
2
+ import {Row, Col} from 'revelry-components/lib/components/grid'
3
3
  import {Link} from '../base'
4
4
 
5
5
  const <%= plural_table_name.camelize %>Item = (props, context) => (
@@ -1,6 +1,6 @@
1
1
  import React, {Component} from 'react'
2
- import {Row, Col} from 'revelry/lib/components/grid'
3
- import {AuthenticityTokenProvider} from 'revelry/lib/components/forms'
2
+ import {Row, Col} from 'revelry-components/lib/components/grid'
3
+ import {AuthenticityTokenProvider} from 'revelry-components/lib/components/forms'
4
4
  import {Link} from '../base'
5
5
  import Form from './form'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React, {Component} from 'react'
2
- import {Row, Col} from 'revelry/lib/components/grid'
3
- import {Button} from 'revelry/lib/components/buttons'
2
+ import {Row, Col} from 'revelry-components/lib/components/grid'
3
+ import {Button} from 'revelry-components/lib/components/buttons'
4
4
  import {Link} from '../base'
5
5
 
6
6
  export default class <%= plural_table_name.camelize %>Show extends Component {
@@ -0,0 +1 @@
1
+ web: npm start
@@ -8,8 +8,11 @@
8
8
  },
9
9
  "scripts": {
10
10
  "devserver": "./scripts/dev-server.sh",
11
- "dev": "concurrently --kill-others \"rails s\" \"npm run devserver\"",
12
- "test": "echo \"Error: no test specified\" && exit 1"
11
+ "start": "NODE_ENV=$RAILS_ENV RENDER_SERVICE_SOCKET=./tmp/render.sock concurrently -p \"{command}\" -l 20 \"npm run rails\" \"npm run node\"",
12
+ "build": "NODE_ENV=$RAILS_ENV scripts/js-builder.js src/client.js build/client.js && NODE_ENV=$RAILS_ENV scripts/sass-builder.js src/client.scss build/client.scss",
13
+ "rails": "bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}",
14
+ "node": "node_modules/.bin/nodemon --exec node_modules/.bin/babel-node src/server.js",
15
+ "postinstall": "npm run build"
13
16
  },
14
17
  "author": "",
15
18
  "license": "UNLICENSED",
@@ -31,11 +34,11 @@
31
34
  "node-sass": "^3.4.2",
32
35
  "react": "^0.14.7",
33
36
  "react-dom": "^0.14.7",
34
- "react-rails-forms": "github:revelrylabs/react-rails-forms",
37
+ "react-rails-forms": "^1.0.0",
35
38
  "react-redux": "^4.4.5",
36
39
  "rejax": "github:revelrylabs/rejax",
37
40
  "rev-hash": "^1.0.0",
38
- "revelry-components": "github:revelrylabs/revelry_core_node",
39
- "sassy-npm-importer": "^1.0.2"
41
+ "revelry-components": "^1.0.1",
42
+ "sassy-npm-importer": "^2.0.0"
40
43
  }
41
44
  }
@@ -3,14 +3,17 @@
3
3
  var fs = require("fs");
4
4
  var browserify = require("browserify");
5
5
  var nodemon = require('nodemon');
6
+ var uglifyify = require('uglifyify');
6
7
 
7
8
  var argv = require('minimist')(process.argv.slice(2));
8
9
  var rootFile = argv._[0];
9
10
  var outFile = argv._[1];
10
11
 
11
12
  function makeBundle(rootFile, outFile) {
12
- browserify(rootFile, {debug: true, extensions: ['.js', '.json', '.es6']})
13
- .transform("babelify", {presets: ["es2015", "react", "stage-0"]})
13
+ var debug = process.env.NODE_ENV == 'production' ? false : true;
14
+ browserify(rootFile, {debug: debug, extensions: ['.js', '.json', '.es6']})
15
+ .transform("babelify", {presets: ["es2015", "react"]})
16
+ .transform("uglifyify")
14
17
  .bundle()
15
18
  .pipe(fs.createWriteStream(outFile));
16
19
  }
@@ -1,5 +1,5 @@
1
1
  import {connect} from 'react-redux'
2
- import {AuthenticityTokenProvider} from 'revelry/lib/components/forms'
2
+ import {AuthenticityTokenProvider} from 'revelry-components/lib/components/forms'
3
3
 
4
4
  const Authenticity = connect(
5
5
  (state) => {
@@ -1,6 +1,6 @@
1
1
  import React, {Component} from 'react'
2
- import {Form as RevelryForm} from 'revelry/lib/components/forms'
3
- import {connectClickHandler, connectSubmitHandler} from 'rejax'
2
+ import {Form as RevelryForm} from 'revelry-components/lib/components/forms'
3
+ //import {connectClickHandler, connectSubmitHandler} from 'rejax'
4
4
 
5
5
  class DumbLink extends Component {
6
6
  render() {
@@ -10,8 +10,8 @@ class DumbLink extends Component {
10
10
  )
11
11
  }
12
12
  }
13
- // export const Link = DumbLink
14
- export const Link = connectClickHandler(DumbLink)
13
+ export const Link = DumbLink
14
+ //export const Link = connectClickHandler(DumbLink)
15
15
 
16
16
  class DumbForm extends Component {
17
17
  render() {
@@ -21,5 +21,5 @@ class DumbForm extends Component {
21
21
  )
22
22
  }
23
23
  }
24
- // export const Form = DumbForm
25
- export const Form = connectSubmitHandler(DumbForm)
24
+ export const Form = DumbForm
25
+ //export const Form = connectSubmitHandler(DumbForm)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revelry_generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Prehn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email:
@@ -31,6 +31,7 @@ files:
31
31
  - lib/rails/generators/react_scaffold/templates/index.js.erb
32
32
  - lib/rails/generators/react_scaffold/templates/new.js.erb
33
33
  - lib/rails/generators/react_scaffold/templates/show.js.erb
34
+ - skeletons/node-base/Procfile
34
35
  - skeletons/node-base/__generators__/post_scaffold.js
35
36
  - skeletons/node-base/__generators__/post_skeleton.rb
36
37
  - skeletons/node-base/package.json