$ npm install -g slush-jspm-react-seed
$ mkdir my-whalephant-seed
$ cd my-whalephant-seed$ slush jspm-react-seed$ npm run init
Dockerless NodeJS Server with unbundled dependencies using https via Browser-Sync
(includes live reload, Browser-Sync will open the website for you)
$ npm run dev:node
Dockerless NodeJS Server with bundled dependencies using https via Browser-Sync
(includes live reload and source maps)
$ npm run prod:node
Docker Nginx + Docker NodeJS Server with HTTPS and custom domain
(Observe that is not possible to reload and focus the browser from inside a container, every change you made will be reflected but you will have to manually refresh the website)
$ npm run start:docker$ open https://docker.nginx.node.com
Run arbitrary command inside the container
$ npm run exec:docker -- echo 'I am inside the container'
Run arbitrary command inside the container (docker natively)
$ docker-compose run --rm node-server /bin/bash -c 'echo "I am inside the container"'
Enter running Docker Node container
$ npm run enter:docker
$ npm run build:docker
Stop and clean all instances, images, containers and volumes of this application
$ npm run clean:docker
Bundle application dependencies
$ npm run bundle:jspm
Unbundle application dependencies
$ npm run unbundle:jspm
$ npm run check:eslint
$ npm run buildcss:nodesass
You have to login via command line in your OWN account):
$ firebase deploy
jspm imay have hiccups while doing look ups trying to download dependencies, just wait for it to finish and repeat
jspm ifew times until it manages to download all dependencies, eventually you may try to
slush jspm-react-seedagain in a clean folder if the installer gets stuck. You may see messages like this is that situation
warn It's taking a long time to process the dependencies of npm:firstname.lastname@example.org. This package may need an ignore property to indicate test or example folders for jspm to skip.
Updating registry cache... Looking up github:twbs/bootstrap Downloading github:email@example.com 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
No space left on device!, you can solve it deleting this file
$ ls -lah ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
ERROR: dial unix /Users/sloppylopez/Library/Containers/com.docker.docker/Data/00000003.00000948: connect: connection refused npm ERR! Darwin 16.7.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start:docker"
Solve it using :
$ npm run clean:docker
See the CONTRIBUTING Guidelines
If you have any problem or suggestion please open an issue here.
The MIT License
Copyright (c) 2017, 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.