JSPM

  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q70357F
  • License MIT

Slush for scaffolding, Jspm for packaging, React for templating framework

Package Exports

  • slush-jspm-react-seed

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slush-jspm-react-seed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Slush Jspm-React-seed

NPM version built without gulp oficial site Codeship Status for sloppylopez/slush-jspm-react-seed Bitdeli Badge

Elephant Seed

Vaseline driven browser side boiler-plate annihilation. Period

Goodies working Out-of-the-box

    NEW! Firebase friendly, just login with your account and deploy
    
    Added proper home page with navigation
    
    Added 7 to 1 for managing styles https://github.com/HugoGiraudel/sass-boilerplate
    
    Codeship Ready
    
    Added React-bootstrap (ausence of css feel)
    
    Jspm for universal multi-purpose Javascript package managing

    Babel for transpiling

    React for templating

    Nodejs modules (>= 200000 modules available)

    ES6 & ES7 Syntactic Sugar ready out-of-the-box

    Minimum possible configuration, maximum features, judge by yourself

    Bundling (JSPM native)

    Minifying (JSPM native)

    Transpiling at runtime on browser side (BABEL native)

    Transpiling at build time on serve side (BABEL native)

    Static Node server run in local (JSPM native)

    Static Node server run with production like build in local (JSPM native)

    No Grunt/Gulp/Broccoli/Cake/Whatever... needed (at the time of writing, 
    let's see if we can build the whole seed without them (challenge accepted)

Getting Started

Install slush-jspm-react-seed globally:

$ npm install -g slush-jspm-react-seed

Usage

Create a new folder for your project:

$ mkdir my-slush-jspm-react-seed

Run the generator from within the new folder and download deps after:

$ cd my-slush-jspm-react-seed && slush jspm-react-seed
$ jspm i

Npm commands

Run Node server for locale environment:

$ npm start

Run Node server for production like environment:

$ npm run prod

Run Node server for prod environment (runs Babel transpiler and bundles all js and dependencies in 1 file):

$ npm start:build

Bundling and Transpiling

Transpile & bundle JS dependencies to bundle.js and generate a sourcemap:

$ npm run bundle

Transpile & bundle & minify JS dependencies to bundle.js and generate a sourcemap:

$ npm run minify

Removes the changes made by jspm to config.js while bundling (you don't really need to do this, is for learning purposes only):

$ npm run unbundle

Increase the timeout seconds for dns look ups in Jspm:

$ npm run ti

Common Pitfalls

Don't forget install jspm dependencies after installing using jspm i

If your connection is terribly slow then jspm i may have hiccups while doing look ups, just repeat few times until he manages to download all dependencies

While using the seed with you preferred CI you may see this error:

     Updating registry cache...
     Looking up github:twbs/bootstrap
     Downloading github:twbs/bootstrap@3.3.1

err  Error downloading github:twbs/bootstrap

     GitHub rate limit reached. To increase the limit use GitHub authentication.
     Run jspm endpoint config github to set this up.

warn Installation changes not saved.

Fear not, here you can see how to overcome the problem, unfortunately the seed can't do that for you: https://github.com/jspm/jspm-cli/blob/master/docs/registries.md

Contributing

See the CONTRIBUTING Guidelines

Support

If you have any problem or suggestion please open an issue here.

License

The MIT License

Copyright (c) 2015, Sergio Lopez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.