Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tmugo/amp-boilerplate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tmugo/amp-boilerplate

Header and footer used in parts of AMP

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AMP Boilerplate

Initial install

Install NodeJS and npm. http://nodejs.org/

Install gulp globally:

$ sudo npm install -g gulp

Install all of the package.json dependencies locally. Run this command from inside this folder.

$ npm install

Updates

Call npm install after each pull to make sure latest build plugins are there.

$ npm install

When adding new dev/build dependencies, use the --save-dev option for npm so that they are added to package.json, so that other developers can keep up to date. Make sure to commit the updated package.json to version control when you commit.

$ npm install jshint --save-dev

Usage

All commands are automated with gulp, and configured in gulpfile.js.

Production builds

Compiled versions for testing and distribution are in dist/. The amp-boilerplate.js version in dist is uglified. Under src/compiled-js/amp-boilerplate.js you can find the original, more readable, version

$ gulp build

For use with browserify (this way should be avoided. Gulp-ing should be the usual procedure):

JavaScript

Broserify must be installed and on the $PATH:

$ browserify index.js -t brfs -s amp-boilerplate -o dist/amp-boilerplate.js

Anywhere in your app, do

var boilerplate = require('amp-boilerplate');

Using in jsp:

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc