Code Monkey home page Code Monkey logo

harpjs.com's People

Contributors

andrewmarino avatar andyvanee avatar bartolsthoorn avatar bdillahu avatar btargac avatar cfjedimaster avatar chandu avatar d2s avatar danielberkompas avatar evanrelf avatar fluxusfrequency avatar garthdb avatar gillchristian avatar gouch avatar harlantwood avatar hced avatar hdp avatar izaakrogan avatar jackpandas avatar jolidog avatar juanbrujo avatar justblackbird avatar jvandemo avatar kennethormandy avatar mkuehn avatar nelsonam avatar oliverrc avatar sehrope avatar sintaxi avatar spone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

harpjs.com's Issues

Inherit layout vars in partials

I'm trying to use a var declared in my _layout.jade within my _header.jade, but its returning undefined. It works when I output it directly in _layout, but I've read that jade partials should inherit vars from the file that included them. Am I not doing it right, or is it a limitation specific to Harp?

The specific purpose I have is to set a path variable for links and meta assets (like icons), to use an absolute root (using the uri global) in production and just a / while in development.

e.g. In layout

- var path = (environment == "production") ? uri + '/' : '/'

then something like this in my header partial

link(rel="icon" type="image/png" href="#{ path }img/favicon-32x32.png" sizes="32x32")

Any ideas?

Optional side nav

Some of my pages have a side nav (not all, just a few). I'm using bootstrap and I was wondering how I could add proper classes when the sidenav file is present.

So when sidenav is present:

---col-3--- | ---col-9---
sideNav     | page content

when not:

---col-12---
page content

My first shot was to do something in layout.jade but I cannot figure out how to check if the sideNav file is present or not in a simple way.

Here's roughly what I'd like to do in _layout.jade:

div.content-wrapper
    if(current folder has a _sideNav.jade)
        .sidebar-wrapper
            != partial(current.path.join('/') + '/_sideNav')

        article.main-container
            != yield
    else
        article.main-container
            != yield

Is this doable? Or is there a better way to handle this?

Add localization to website

Hi everyone!

I was thinking it would be interesting to have the site content in other languages. This would help increase the reach of the tool to more people.

It would be interesting to create a structure to accommodate the translated part. As an example, it is good practice to:

harpjs.com/ current site content in English
harpjs.com/es content in Spanish
harpjs.com/pt content in Portuguese

And so on.

To start, I am willing to do the translation in Portuguese (my native language).

Any other ideas?

Website translation

Hey!

I would like to translate the site to Brazilian Portuguese. Is it possible?

Thanks,
C.

Unable to fire up server

I could be missing something but I just fresh installed node.js -v 0.12.7 and tried:

  1. npm install -g harp
  2. harp init project
  3. harp server

Result:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: listen EADDRINUSE
  at exports._errnoException (util.js:746:11)
  at Server._listen2 (net.js:1156:14)
  at listen (net.js:1182:10)
  at net.js:1280:9
  at dns.js:85:18
  at process._tickCallback (node.js:355:11)
  at Function.Module.runMain (module.js:503:11)
  at startup (node.js:129:16)
  at node.js:814:3

I'm on OSX Yosemite v10.10.4

Error on Updated Windows Environment

0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\SamC\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]~prestart: [email protected] 6 silly lifecycle [email protected]~prestart: no script for prestart, continuing 7 info lifecycle [email protected]~start: [email protected] 8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 9 verbose lifecycle [email protected]~start: PATH: C:\Users\SamC\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\SamC\Sites\harp\harpjs.com\node_modules\.bin;C:\Program Files\nodejs;C:\Users\SamC\AppData\Roaming\npm;C:\Program Files\nodejs\;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Calibre2\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Brackets\command;D:\Program Files\Git\cmd;D:\Program Files (x86)\Skype\Phone\;D:\wamp64\bin\php\php5.6.19;C:\ProgramData\ComposerSetup\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\nodejs\;D:\Program files\Python\Python35\Scripts\;D:\Program files\Python\Python35\;C:\Users\SamC\AppData\Local\Programs\Python\Launcher\;D:\Ruby22-x64\bin;C:\Users\SamC\AppData\Roaming\Composer\vendor\bin;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\SamC\AppData\Roaming\npm 10 verbose lifecycle [email protected]~start: CWD: C:\Users\SamC\Sites\harp\harpjs.com 11 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'harp server' ] 12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null 13 info lifecycle [email protected]~start: Failed to exec start script 14 verbose stack Error: [email protected] start:harp server 14 verbose stack Exit status 1 14 verbose stack at EventEmitter.<anonymous> (C:\Users\SamC\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:244:16) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at EventEmitter.emit (events.js:191:7) 14 verbose stack at ChildProcess.<anonymous> (C:\Users\SamC\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:24:14) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at ChildProcess.emit (events.js:191:7) 14 verbose stack at maybeClose (internal/child_process.js:850:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5) 15 verbose pkgid [email protected] 16 verbose cwd C:\Users\SamC\Sites\harp\harpjs.com 17 error Windows_NT 10.0.10586 18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\SamC\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start" 19 error node v6.0.0 20 error npm v3.8.8 21 error code ELIFECYCLE 22 error [email protected] start:harp server22 error Exit status 1 23 error Failed at the [email protected] start script 'harp server'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the harpjs.com package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error harp server 23 error You can get information on how to open an issue for this project with: 23 error npm bugs harpjs.com 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls harpjs.com 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

this is my first time with Harp and I can't use this tool. My system was updated to the most recent versions of the tools. Can anyone help me?

Trouble installing harp with node-sass

I am having an issue installing harp globally on Ubuntu Linux 16.04

gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/usr/lib/node_modules/harp/node_modules/node-sass/build'
  g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/root/.node-gyp/6.3.0/include/node -I/root/.node-gyp/6.3.0/src -I/root/.node-gyp/6.3.0/deps/uv/include -I/root/.node-gyp/6.3.0/deps/v8/include -I../../nan  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw   -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../src/binding.cpp:3:0:
../src/sass_context_wrapper.h:8:26: fatal error: sass/context.h: No such file or directory
compilation terminated.
binding.target.mk:109: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/usr/lib/node_modules/harp/node_modules/node-sass/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/harp/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.4.0-28-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/harp/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/lib/node_modules/harp/node_modules/node-sass
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
Build failed
/usr/lib
└── (empty)

npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--unsafe-perm" "-g" "harp"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1

Security issue

Hi, More than one security issues have been found in HarpJS. Can someone (with publish rights) please contact @lirantal from Node Security Working Group so he can invite them to the private report on hackerone?
A response would be much appreciated!

cc: @sintaxi

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.