Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tokunami/943f8b6d25da213714dbbb0cc890050c to your computer and use it in GitHub Desktop.
Save tokunami/943f8b6d25da213714dbbb0cc890050c to your computer and use it in GitHub Desktop.

PhotoSwipeにチャレンジ http://photoswipe.com/

PhotoSwipeがgitリポジトリであることを確認

$ ls -a PhotoSwipe

git pull でアップデート

$ cd PhotoSwipe
$ git pull

本家のHPを見て自分でBuildしようと思い、gruntではまる

$ npm install
$ grunt
Running "sass:dist" (sass) task

Running "autoprefixer:no_dest" (autoprefixer) task
>> 1 autoprefixed stylesheet created.

Running "pswpbuild:all" (pswpbuild) task
Your build is made of:framework-bridge,core,gestures,show-hide-transition,items-controller,tap,desktop-zoom,history

Running "uglify:my_target" (uglify) task
>> 2 files created.

Running "copy:dev" (copy) task
Created 2 directories, copied 12 files

Running "copy:main" (copy) task
Created 2 directories, copied 9 files

Running "jekyll:dev" (jekyll) task
`jekyll build --source website --destination _site --config /var/folders/rs/d1zv9_814rg5sq8r5ks07ss00000gn/T/_config.4473A656nrnGufeU.yml false local` was initiated.

Configuration file: /var/folders/rs/d1zv9_814rg5sq8r5ks07ss00000gn/T/_config.4473A656nrnGufeU.yml
       Deprecation: Auto-regeneration can no longer be set from your configuration file(s). Use the --[no-]watch/-w command-line option instead.
            Source: website
       Destination: _site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- redcarpet' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! 
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting '/documentation/api.md':
                    redcarpet
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    redcarpet
Warning:        Deprecation: Auto-regeneration can no longer be set from your configuration file(s). Use the --[no-]watch/-w command-line option instead.
  Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- redcarpet' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! 
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting '/documentation/api.md':
                    redcarpet
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    redcarpet Used --force, continuing.
Warning: Task "jekyll:dev" failed. Used --force, continuing.

Done, but with warnings.

関連するモジュール類をとりあえず全部update

$ gem install rubygems-update
$ update_rubygems
$ gem install jekyll
$ sudo npm update -g
$ npm uninstall grunt -g
$ npm install grunt-cli -g

でもダメ。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment