Skip to content

getzaymo/amp.dev

Repository files navigation

amp.dev

This repository is meant to work towards the relaunch of the official website of ampproject.org until we reach a progress that makes a merge over to the original repository beneficial.

Requirements

  1. Install the LTS version of NodeJS. An easy way to do so is with nvm. (Mac and Linux: here, Windows: here)

    $ nvm install --lts
  2. Install libyaml alongside with Grow as it heavily increases performance while running grow build:

    $ brew install libyaml
    $ pip install grow
  3. Install the stable version of Yarn. (Mac and Linux: here, Windows: here)

    $ curl -o- -L https://yarnpkg.com/install.sh | bash
  4. Install the dependencies for the project:

    $ cd platform
    $ yarn

Develop

To start developing start a pipeline that takes care of building the frontend, collecting all needed files and start Grow when finished. The pipeline then watches the sources files for changes and rebuilds them if needed.

$ cd platform
$ yarn run develop

To run a local test build that does all the minifying and vends the static pages instead of proxying them through to Grow you can run

$ cd platform
$ yarn run build:local
$ yarn run start:local

Build & Deploy

To build and deploy to the staging environment on Google App Engine run the following

$ cd platform
$ yarn run build:staging
$ yarn run start:staging

Copyright 2018 The AMP HTML Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

The AMP Project Website.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 56.7%
  • JavaScript 16.5%
  • SCSS 9.9%
  • CSS 8.8%
  • Jinja 5.3%
  • Python 2.3%
  • Other 0.5%