Code Monkey home page Code Monkey logo

pug-www's Introduction

pug-www's People

Contributors

dogancelik avatar ezhlobo avatar forbeslindesay avatar greenkeeper[bot] avatar greenkeeperio-bot avatar hemanth avatar kylekatarnls avatar lionnatsu avatar timothygu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

pug-www's Issues

An in-range update of prop-types is breaking the build 🚨

The dependency prop-types was updated from 15.6.2 to 15.7.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

prop-types is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of js-beautify is breaking the build 🚨

Version 1.6.10 of js-beautify just got published.

Branch Build failing 🚨
Dependency js-beautify
Current Version 1.6.9
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As js-beautify is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build is in progress Details

  • dependency-ci An error occured Details

Commits

The new version differs by 18 commits .

  • 5d3476f 1.6.10
  • 4aed13b Python 1.6.10
  • 0a8c733 Bump version numbers in README.md
  • ffc96b9 Update Changelog for 1.6.10
  • 7b20cc3 Excluded test resource from climate
  • 60f897e Updated CodeClimate config
  • 679f9f9 Updated test data to use improve matrix generation
  • 481f4d3 Rewrote test line generation
  • 891f45d Merge pull request #1117 from TimvdEijnden/master
  • 4370c5c Merge branch 'master' into master
  • 416abb7 blank lines should not have spaces/tabs
  • a769da5 default to false
  • 244397f update tests and fix issues with tabs
  • 72d23fb Merge branch 'master' into master
  • 8e7d5ab fix multiple for multiple empty lines

There are 18 commits in total. See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Clarify the relationship between the Pug Website repo and the Pug documentation repo.

At first glance, it seems like the repositories pug-www, pug-en, and pug-zh-cn might all be the same thing. I mean, I think I was able to figure it out: From looking through the pug-www and pug-en repositories, I gather that the Pug documentation repos contains most of the actual content (the language and API spec), and the Pug website repo adds some extra templates and scripts for presenting the documentation online. Still, it might help to state in their respective READMEs what role each repository serves. Users who see a typo in the documentation, or a bug in the interactive code examples, might rush to the wrong repository and get confused.

Language Picker

We should provide a simple language picker somewhere in the layout, so people can change languages.

Main page

We need a landing page for https://pugjs.org, instead of dropping users directly to the API intro. Specifically, I envision the page to have

  • Jumbotron-level logo & tagline
  • a simple demo
  • introduction to a few core features of Pug, like tags, attributes, mixins

Refactoring suggestions

We need to load content from https://github.com/pugjs/pug-{language}/ when it's not available locally. This is what will happen in the travis deployment. I suggest a few refactorings:

  • have the markdown module actually just render markdown
    • pull file reading/lookup out of the markdown module
    • pull rendering pug template out of the markdown module
    • pull loading strings out of the markdown module
  • Don't generate browserify bundles on the fly (https://github.com/pugjs/pug-www/blob/master/src/index.js#L23-L32) as this is really slow even for development. I'm not even sure if we need this. By writing it this way, the bundle gets built once for each request. In addition to this, each time you build it you are setting up a file watcher to rebuild every time the bundle changes.
  • serve the default language (i.e. en) with no /en/ url prefix
  • do not force browserify into development mode. This is probably what keeps the server alive after calling server.close(). We can manually disable minification as appropriate, but should do that separately.
  • use somewhat fewer promises. File system operations do not need to be async because this will be static once it's hosted. On the other hand, many of our file system operations will turn into reads from GitHub repos, so they will be async anyway.
  • create a clean separation between server and client code
  • support running in more environments by moving away from sass which requires a native module

An in-range update of resolve is breaking the build 🚨

Version 1.5.0 of resolve was just published.

Branch Build failing 🚨
Dependency resolve
Current Version 1.4.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

resolve is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • dependency-ci Dependencies checked Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 10 commits.

  • 19cbd5e v1.5.0
  • e0c5d51 [Tests] on node v8.8
  • 7f509ba [New] node v8.8+ supports http2
  • b826f30 [Fix] fix broken core tests; change core.json to be an object instead of an array; fix results
  • e66117d [New] add perf_hooks, added in node v8.5
  • d0de222 [Tests] up to node 8.7; use nvm install-latest-npm so new npm doesn’t break old node
  • 5bfb072 [Dev Deps] update eslint
  • e9d3a24 [Tests] up to v8.4; node 0.6 is failing due to travis-ci changes; allow it to fail for now.
  • 76f28a3 [Dev Deps] update eslint, @ljharb/eslint-config, tape
  • 3412f98 [Docs] update repo URL

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of express is breaking the build 🚨

The dependency express was updated from 4.16.4 to 4.17.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

express is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for 4.17.0
Commits

The new version differs by 53 commits.

There are 53 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Render error for Chrome but Postman correct

In this code I continue a table with the results of a database search

extends wineSearch

block content
   for val in wineSelection
      tr
         td
            form(action='/wine/update', method='POST')
               input(type='hidden', name='loc', value=val.wine_Location)
               button.loc_button=val.wine_Location   
         td= val.wine_Quantity
         td= val.wine_Type
         td= val.wine_Colour
         td= val.wine_Grape
         td= val.wine_Winery
         td= val.wine_Country
         td= val.wine_Vintage

In chrome the first row, the form is excluded. Remaining rows are correct. Testing using Postman yields the correct result

Chrome: (error)

						<td>
							<input type="hidden" name="loc" value="E1" /><button
								class="loc_button"
							>
								E1
							</button>
						</td>

Postman: (correct)

<td>
						<form action="/wine/update" method="POST">
							<input type="hidden" name="loc" value="E1" /><button
								class="loc_button"
							>
								E1
							</button>
						</form>
					</td>

I am sure that the input to PUG is the same. ie wineSelection
Does the express server detect the client and render differently?
Is there a way to force the render as if a Postman client?

Add a License

Currently this project doesn't have a license. This could especially be useful for others wanting to use the pug logo.
I would recommend a CC3.0 variant

Establish a good way to indicate out of date sections in translated versions

We need a good solution for identifying sections of the page that our out of date. We could assume that any given page is out of date if the english version of the markdown file has been updated more recently than the translated version. Ideally this would offer a link to the english version, and a link to edit the translated version so people can update them.

An in-range update of eslint-plugin-react is breaking the build 🚨

Version 7.3.0 of eslint-plugin-react just got published.

Branch Build failing 🚨
Dependency eslint-plugin-react
Current Version 7.2.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-plugin-react is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • dependency-ci An error occured Details

Release Notes v7.3.0

Added

  • Add checks for propTypes, contextTypes and childContextTypes to no-typos (#213 @DianaSuvorova)

Fixed

  • Fix boolean-prop-naming crash (#1369 @EvHaus)
  • Fix no-typos crash (#1353 @jseminck)
  • Fix require-default-props stopping when it finds a component without props (#1380 @brgibson)
  • Fix no-direct-mutation-state detection with nested components (#1382)

Changed

Commits

The new version differs by 25 commits.

  • 162b92b Update CHANGELOG and bump version
  • 686ab89 Merge pull request #1375 from jseminck/more-robust-no-typos-fix
  • 9805f70 Fix no-direct-mutation-state detection with nested components (fixes #1382)
  • 6af4bca Merge pull request #1383 from mjomble/patch-1
  • a05bc0a Fixed links in changelog
  • 48e8dc1 Merge pull request #1380 from brgibson/master
  • f371368 require-default-props - fixing an edge case where linting stops when it finds a component without props - should move on to the next component in the file
  • 5e25a5e Re-add FIXME and disable the warning through eslint-disable-next-line
  • d00e9e6 Remove FIXME as it fails linting
  • 0cf2415 Add comment to the eslint parent definition issue
  • 02ed7d0 Merge pull request #1371 from DianaSuvorova/i213
  • 1292807 Add comment explaining try/catch
  • fa890cb Tests and explaining the case that is currently not supported.
  • 1301fe9 More robust no-typos fix
  • 59a3f6a [no-typo] rule enhancement checking for a correct prop type spelling

There are 25 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Translation in french

Hi, I had to translate most of pugjs documentations contents in French for our PHP port documentation https://phug-lang.com

So now, I could easily translate your whole documentation if you set-up for me the pug-fr repository.

You can rely on my level in French, it's my mother tongue and I master it well.

Add section documenting babel-plugin-react-pug usage

This page should look along the lines of:

react-pug

You can use pug to generate react templates. This is supported via a babel-plugin. To use it, you need the following two plugins in your .babelrc:

{
  "plugins": [
    "transform-react-pug",
    "transform-react-jsx"
  ]
}

You can install them via:

npm install babel-plugin-transform-react-pug babel-plugin-transform-react-jsx --save-dev

Usage

To use react-pug, you just declare a tagged template literal:

import React from 'react';
import ReactDOM from 'react-dom';

function HomePage() {
  return pug`
    div
      h1 Home Page
      p Some content
  `;
}

ReactDOM.render(
  pug`HomePage`,
  document.getElementById('container'),
);

babel-plugin-transform-react-pug will convert the pug code in template literals into JSX.

Editor Support

In brackets you just install the pug plugin. In atom, install language-babel and the pug plugin, then configure the template literal tag in langauge-pug (this needs documenting properly).

An in-range update of react-dom is breaking the build 🚨

Version 15.6.2 of react-dom just got published.

Branch Build failing 🚨
Dependency react-dom
Current Version 15.6.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

react-dom is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • dependency-ci Dependencies checked Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Possible rendering bug on "Nested Filters" section

Hey, I've noticed that the Nested Filters section–which brings an example where the script is first transformed by babel, and then by cdata-js–outputs:

_.default.existsSync is not a function

As can be seen here:

pugjs-err 001

I admit I haven't read the source yet to find the problem–that's why this isn't a PR.

I wonder if maybe what I'm reporting here isn't a mistake of mine-then please point and I'll close the issue ASAP 😄 .

An in-range update of codemirror is breaking the build 🚨

Version 5.24.2 of codemirror just got published.

Branch Build failing 🚨
Dependency codemirror
Current Version 5.24.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As codemirror is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build is in progress Details

  • dependency-ci An error occured Details

Release Notes 5.24.2

Version 5.24.2

Bug fixes

javascript mode: Support computed class method names.

merge addon: Improve aligning of unchanged code in the presence of marks and line widgets.

Commits

The new version differs by 9 commits .

  • 948f94f Mark version 5.24.2
  • 96a1ca9 [javascript mode] Support computed class method names
  • d79935c [javascript mode] Test for typescript index signature
  • 8a52fce Revert "[xml mode] Allow dashes in tag names"
  • ec22459 [merge demo] Remove debug code
  • 1560928 [merge addon] Notice changed() calls on widgets and markers when aligning
  • 8595f5c test for typescript index signature
  • 7943e50 [merge addon] Improve aligning to work with collapsed markers and widgets
  • 4d7c803 Bump version number post-5.24

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of react is breaking the build 🚨

Version 15.6.2 of react just got published.

Branch Build failing 🚨
Dependency react
Current Version 15.6.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

react is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • dependency-ci Dependencies checked Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Add commandline installation instructions to pugjs.org #3132

This was posted long time ago at this link, reposting.
pugjs/pug#3132

Hey, I spent 1 hour to find out why my Webstorm File Watcher could not detect pug. I had installed Node.js, Express.js.
What I was missing was commandline installation instruction, which was not visible in the website.

Only in the github website I found it, and at the the I didn't even know what the question and solution was supposed to be.

So could you please also write the Command Line installation instructions from Github shown below in your website, that would save a lot of time. Thanks.
https://pugjs.org/api/getting-started.html

Command Line
After installing the latest version of Node.js, install with:

$ npm install pug-cli -g
and run with

$ pug --help

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.