JSPM

  • Created
  • Published
  • Downloads 95
  • Score
    100M100P100Q70250F
  • 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 Dependencies

Elephant Seed

https://elephantseed.firebaseapp.com

Vaseline driven browser side boiler-plate annihilation. Period

Goodies working Out-of-the-box

    Added working ESlint out-of-the-box

    Codeclimate ready
    
    Added floating notifications using toastr
    
    Livereload using lite-server which is based in BrowserSync.
    
    Firebase 3.0 friendly, just login with your account and deploy
    
    Minimum possible configuration, maximum features,
    judge by yourself
    
    Use NodeJS packages (>= 300000 available)
    
    JSPM for universal multi-purpose Javascript package managing

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

    Bundling & Minifying (JSPM native)
    
    NodeSASS for doing scss2css 
    
    Added 7 to 1 for managing styles 
    https://github.com/HugoGiraudel/sass-boilerplate

    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

Npm commands

Disable dependencies cache, unbundle and unminify js files , scss2css:

$ npm run dev
or
$ npm start

Enable dependencies cache, bundle and minify, scss2css:

$ npm run prod

Run ESlint

$ npm run eslint

Deploy in Firebase (you have to login via command line in your OWN account):

$ firebase deploy

Common Pitfalls

  • 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

  • When eslint finds an error you may see an error message coming from npm, this is normal, just fix the linting error and you won't see it anymore

Contributing

See the CONTRIBUTING Guidelines

Support

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

License

The MIT License

Copyright (c) 2016, 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.