@financial-times/origami-workshop
v3.0.3
Published
JavaScript and Sass build tools to facilitate the Origami manual build tutorial (https://origami.ft.com/documentation/tutorials/manual-build/). Origami Workshop is not meant for production use.
Downloads
20
Maintainers
Keywords
Readme
Origami Workshop Build Tools
JavaScript and Sass build tools to facilitate the Origami manual build tutorial. This is not meant for production use.
Usage
Origami Workshop is a single command with no options. For detailed usage instructions, follow the Origami manual build tutorial.
What does it do?
- Creates a
public
directory if one does not already exist. - Bundles
src/main.js
on change with esbuild topublic/main.js
. Note: this resolves imports but does not transpile JS for wider browser support. - Builds
src/main.scss
on change with dart-sass, postcss, and autoprefixer topublic/main.css
. - Copies
index.html
on change topublic/index.html
. - Starts a server for the public directory at http://localhost:3000. Another port is used if 3000 is taken.
Contact
If you have any questions or comments about this project, or need help using it, please either raise an issue, visit #origami-support or email Origami Support.
License
Copyright (c) 2020 Financial Times Ltd. All rights reserved.
This software is published under the MIT licence.