Skip to content

smbc-digital/stockportgov-design-system-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stockportgov Design System Lambda

🏃 ✌️ 💪
Built with ❤︎ by Stockport Council and contributors

Stockportgov design system lambda function to serve .css files depenendent on the version requested.

The lambda function returns a 302 to the relevant file in S3. If no files can be found or an error occurs then either a 400, or 404 is returned.

Table of Contents

Requirements

  • npm
  • node
  • jest

Installation

  • clone repo
  • npm i

Development

  • All code has be written in index.js, as the lambda function is rather small.
  • All tests have been written in index.test.js for the same reason as above.
  • We are not using nodes --experimental-modules as this flag is not available on AWS lambdas. Therefore, things like import x from 'y' are not available.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published