Visitar URL original
uswds/examples/gulp at develop · sitedata/uswds · GitHub
Skip to content

Latest commit

 

History

History
 
 

gulp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Using the Design System with Gulp

This example illustrates how to build custom CSS and JS from the Standards JavaScript with Gulp.

First, install the dependencies with npm:

npm install

Once you've done this, you can modify src/js/main.js and run the following command to build js/main.js and its complimentary source map:

npm run build:js

To build CSS from [src/css/main.scss], run:

npm run build:css

This example uses a slight variation of this Gulp recipe for the js task, and borrows from the Design System's own sass task to build CSS from the SCSS sources.