$ npm install
$ npm start
$ npm install -g gulp
$ npm install
$ gulp serve
$ gulp
Build and optimize the site, ready for deployment. This includes linting as well as image, script, stylesheet and HTML optimization and minification.
$ gulp serve:dist
Serve the optimized and minified version of the site for local testing.
$ gulp deploy
This builds for production, then deploys the dist folder to gh-pages.
$ gulp images
This command pipes all files in src/images
through imagemin
.
All Copay brand assets can be found in copay-brand.
Translatable strings are extracted and added to the native locale file (locales/en.json
) using s18n. A warning will be generated if a string is missing in any other locale file.
npm run simulate-translations
Simulates translation by mapping the s18n
accents dictionary to the current en.json
. This produces an accents
locale, which can be previewed at the /accents
route (e.g. localhost:3000/accents/)