tools
Tools and utility functions used to build and develop Periscope libraries.
To create a dev environment:
- Create an periscope directory to hold all of the projects.
mkdir periscope
- Change to the new directory
cd periscope
- Clone this repository into the
tools
directory. This repo contains the helper tools for creating the dev environment.
git clone https://github.com/privosoft/periscope-tools.git
- Clone the periscope-demo-app also which is the base app for testing -
git clone https://github.com/privosoft/periscope-demo-app.git
- Change directory into periscope-demo-app
cd periscope-demo-app
- Install the periscope-demo-app application's dependencies:
npm install
jspm install
- Build the dev environment. This will create all of the directories inside of
periscope
under the proper name,git clone
them all and then perform agulp build
. If the directories were created previouslybuild-dev-env
command will just rebuild them.
gulp build-dev-env
Alternatively, run gulp pull-dev-env
to only pull down each periscope
dependency and not perform builds.
Sometimes 'gulp build-dev-env' doesn't work properly with some versions of npm. If you was failed to create the dev environment using this command you can make it manually. Firstly, you have to create subfolders for each dependent package.
Each subfolder's name should be the same as repo name excluding the word 'periscope-'. So, your directory structure should look as follows:
+-- periscope
| +-- demo-app
| +-- framework (for periscope-framework)
| +-- ui (for periscope-ui)
| +-- etc.
Then you should run 'git clone', 'npm install' and 'jspm install' for each dependent package.
- Now you have the ability to update the repos locally, make changes, and use those in the periscope-demo-app in the
periscope
directory by using thegulp update-own-deps
command. Note: before runupdate-own-deps
command please make sure that the changed repos were properly built othervise runbuild-dev-env
one more time.