Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

circa

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circa - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0

2

package.json
{
"name": "circa",
"version": "0.5.1",
"version": "0.6.0",
"description": "A superfast and future-proof boilerplate for the Circa stack.",

@@ -5,0 +5,0 @@ "main": "./circa",

@@ -5,3 +5,3 @@ # circa

It utilizes React and Flux for client-side applications, with Socket.IO for high-speed bidirectional communication. Circa comes with a gulp and webpack build system with production and development configurations, complete with babel (6to5), minification, hot module reloading, and isomorphic rendering.
It utilizes React and Flux for client-side applications, with Socket.IO for high-speed bidirectional communication. Circa comes with a gulp and webpack build system with production and development configurations, complete with babel (6to5), minification, hot module reloading, graceful error reporting, and isomorphic rendering.

@@ -8,0 +8,0 @@ ## Installing

@@ -12,27 +12,2 @@ import express from 'express';

app.use(require('compression')());
let jade = require('jade'),
React = require('react'),
RDOM = require('react-dom/server'),
{ RoutingContext, match } = require('react-router'),
createLocation = require('history/lib/createLocation'),
Flux = require('fluxette'),
reducer = require('./src/js/flux/reducer'),
Routes = require('./src/js/routes'),
{ Context } = require('fluxette-react');
let template = jade.compileFile('./src/html/index.jade');
let iso = root => template({ ssr: RDOM.renderToString(root) });
router.get('/', (req, res) => {
let flux = Flux(reducer);
let location = createLocation(req.url);
match({ routes: Routes(), location }, (err, redir, initial) => {
res.send(iso(
<Context flux={ flux }>
{ () => <RoutingContext { ...initial } /> }
</Context>
));
})
});
}

@@ -52,2 +27,27 @@ else {

import jade from 'jade';
import React from 'react';
import ReDOM from 'react-dom/server';
import { RoutingContext, match } from 'react-router';
import createLocation from 'history/lib/createLocation';
import Flux from 'fluxette';
import { Context } from 'fluxette-react';
import reducer from './src/js/flux/reducer';
import Routes from './src/js/routes';
let template = jade.compileFile('./src/html/index.jade');
let iso = root => template({ ssr: ReDOM.renderToString(root) });
router.get('/', (req, res) => {
let flux = Flux(reducer);
let location = createLocation(req.url);
match({ routes: Routes(), location }, (err, redir, initial) => {
res.send(iso(
<Context flux={ flux }>
{ () => <RoutingContext { ...initial } /> }
</Context>
));
})
});
app

@@ -54,0 +54,0 @@ .use(router)

@@ -7,3 +7,3 @@ {

"start": "NODE_ENV=production babel-node .",
"build": "gulp html && NODE_ENV=production webpack -p --config ./pro.babel.js",
"build": "NODE_ENV=production webpack -p --config ./pro.babel.js",
"dev": "NODE_ENV=development babel-node ."

@@ -15,8 +15,6 @@ },

"babel-plugin-react-transform": "^1.0.3",
"gulp": "^3.9.0",
"gulp-jade": "^1.1.0",
"delicate-error-reporter": "0.0.6",
"history": "^1.9.0",
"react-transform-catch-errors": "^0.1.2",
"react-transform-webpack-hmr": "^0.1.4",
"redbox-react": "^1.0.3",
"webpack": "^1.12.1",

@@ -23,0 +21,0 @@ "webpack-dev-middleware": "^1.2.0",

@@ -6,3 +6,3 @@ import React from 'react';

@connect(text => ({ text }))
export default class extends React.Component {
export default class Text extends React.Component {
update() {

@@ -9,0 +9,0 @@ this.dispatch(update.text(this.refs.text.value));

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc