1/18/2023 0 Comments Codekit foundation error|-/dist // all files compile to this directory |-main.scss // all sass is imported through this file |-main.js // custom js for theme goes here gitignore file.Ĭheck out this directory structure that I use based on the Roots Sage Starter Theme /your-custom-theme-folder You can also keep dependencies out of the git repo by adding bower_components to your. The advantage of using bower is you can update the packages from the command line and also through CodeKit. CodeKit should then put foundation, jquery, and other scripts and frameworks in a folder called bower_components because it uses bower to fetch the project's dependencies. You should make your CodeKit project only contain the folder for the theme you are developing. How do others setup their projects on CodeKit with WordPress and Foundation? I’m doing this locally so I can’t show you the link, but I guess I just feel like I’m setting this up entirely wrong. I also found that if I place my sass partials in a folder called partials, CodeKit can't compile them, even though I'm importing them with the folder name, example: partials/layout, instead of layout. It says the compiling is complete, but when I look at the code it’s just the import line without the foundation code actually being outputted. I want to include the foundation app.scss file so everything is in one place, but it doesn’t call it up. I have one master style.sass file where I import all my partials and that works correctly. Where I get hung up is in the compiling of the files. I know in the YouTube video CodeKit mentions not to pull the files out so that any linking isn’t messed up, but I can’t keep those files in the root of my project because they need to be within the theme.Īssets is also where my sass files live for the overall site I then throw in my WordPress files, and throw that ‘Foundation’ folder into the theme I’m working on in WP in my ‘assets’ folder. It outputs the files and I throw them into a folder called 'Foundation'. I’m building a WP project so I start by creating a new CodeKit project with Zurb and compass. Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in read': No such file or directory - /Users/antohind/YETI/bower_components/foundation/scss/foundation/_settings.scss (Errno::ENOENT)įrom /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:inblock (2 levels) in new'įrom /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:in open'įrom /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:131:inblock in new'įrom /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:182:in block in inside'įrom /System/Library/Frameworks/amework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:inchdir'įrom /System/Library/Frameworks/amework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in cd'įrom /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/actions.rb:182:ininside'įrom /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/lib/foundation/cli/generator.rb:128:in new'įrom /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:inrun'įrom /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in invoke_command'įrom /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:indispatch'įrom /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in start'įrom /Library/Ruby/Gems/2.0.0/gems/foundation-1.0.4/bin/foundation:4:in'Īs you can see it appears to start successfully but then fails as I have used the sudo command but if I remove the sudo command it cannot locate node.I’m a new user to CodeKit and sass and I’ve been playing around with it for the past few days trying to figure out how to use it correctly to improve my workflow. You can however run a command with sudo using -allow-root option If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs. Since bower is a user command, there is no need to execute it with superuser permissions. Remote: Total 62 (delta 19), reused 57 (delta 15) Remote: Compressing objects: 100% (40/40), done. ```martin01:~ antohind$ sudo foundation new YETI OK I am having a problem with the sudo command it errors on the final step please see the following and please help!!!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |