Coder Social home page Coder Social logo

foundation-cli's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

foundation-cli's Issues

New Project with --libsass, unable to clone template repo

Getting the following output when attempting foundation new test --libsass:

Creating ./test
      create  test
Cloning into 'test'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Installing dependencies with bower...
fatal: Not a git repository (or any of the parent directories): .git
         run  npm install from "./test"
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/Users/plfacheris/Documents/Development/test/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.22/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/plfacheris/Documents/Development/test
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path /Users/plfacheris/Documents/Development/test/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/plfacheris/Documents/Development/test/npm-debug.log
npm ERR! not ok code 0
         run  grunt build from "./test"
grunt-cli: The grunt command line interface. (v0.1.11)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started
./test was created

bug: compass watch error

$ foundation new test
$ compass watch

~> compass watch
>>> Change detected at 11:46:29 to: app.scss
Encoding::CompatibilityError on line ["57"] of /Users/tangmonk/.rvm/gems/ruby-2.1.2/gems/sass-3.2.19/lib/sass/util/multibyte_string_scanner.rb: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
Run with --trace to see the full backtrace
>>> Compass is polling for changes. Press Ctrl-C to Stop.

Throws error on missing scss directory on ruby windows

I am working on a PR, just need to create the scss directory before line 131 File.open("scss/_settings.scss ...

This corrects the error on line generator.rb line 131, file not found error that many people are complaining about on SO, forum, etc.

In my case this affected the cli only with the --libsass flag set on win 7 pro 64, using ruby 1.9.3.

'foundation help new' shows misleading information about the --version option

I get the following output when I type foundation help new:

foundation-cli

I have tried:

  • foundation new project_name --version=5.1.1 (using the equal sign as suggested in the aforementioned help)
  • foundation new project_name --version="5.1.1" (using the equal sign as suggested in the aforementioned help and using quotes)
  • foundation new project_name --version 5.1.1 (as suggested in the README of this repo)
  • foundation new project_name --version "5.1.1" (as suggested in the Thor help)

None of them worked and I always get the latest version (currently 5.2.2).

I have no experience coding in Ruby. Either I haven't any experience using Thor. But looking at generator.rb#L115 I guess nothing is done with the version option.

Currently what I do to get a speficic version of Foundation is:
1st. Run git clone https://github.com/zurb/foundation-compass-template.git project_name
2nd. Edit bower.json:

{
  ...
  "dependencies": {
    "foundation": "5.1.1"
  }
}

3rd. Run bower install

If modifying generator.rb to work with the --version option is difficult and the way to go is the above mentioned, I suggest removing the option and updating README.md to let newcomers know what is the way to get a specific version.

Thanks!

Changed subfolder in Foundation

CLI fails because of changed subfolders in Foundation

Line 131:
File.open("scss/_settings.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/foundation/scss/foundation/_settings.scss") }

should point to

File.open("src/assets/scss/_settings.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/foundation/scss/foundation/_settings.scss") }

Failed to create new project

With bower 1.2.7

WMteki-MacBook-Air% foundation new yati
Creating ./yati
      create  yati
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 55 (delta 17), reused 52 (delta 15)
Unpacking objects: 100% (55/55), done.
Installing dependencies with bower...
/Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/foundation-1.0.2/lib/foundation/cli/generator.rb:68:in `read': No such file or directory - /Users/wm/Projects/yati/bower_components/foundation/scss/foundation/_settings.scss (Errno::ENOENT)
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/foundation-1.0.2/lib/foundation/cli/generator.rb:68:in `block in new'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/thor-0.18.1/lib/thor/actions.rb:182:in `block in inside'
    from /Users/wm/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:125:in `chdir'
    from /Users/wm/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:125:in `cd'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/thor-0.18.1/lib/thor/actions.rb:182:in `inside'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/foundation-1.0.2/lib/foundation/cli/generator.rb:65:in `new'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/gems/foundation-1.0.2/bin/foundation:4:in `<top (required)>'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/bin/foundation:23:in `load'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/bin/foundation:23:in `<main>'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/bin/ruby_executable_hooks:15:in `eval'
    from /Users/wm/.rvm/gems/ruby-2.0.0-p195/bin/ruby_executable_hooks:15:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.