Skip to content

CSS and JS assets for our web sites (plus build script)

Notifications You must be signed in to change notification settings

s9y/website_assets

Repository files navigation

s9y website assets

Dependency Status devDependency Status

Important: Note that this is work in progress, including the documentation as to how to create a build and distribute the created files. For the time being, if you need help with a new build, please ping @yellowled.

Quickstart

You'll need a recent version of node.js. Clone the repository, do npm i in the project directory and npm run build to create a build.

This will create new builds of the CSS and JS assets for various s9y sites (currently for web site, blog theme and spartacus, but not for the forum theme).

What to do with the build

The build is created in the (new) directory dist/ in the repository's directory. The files relate to other s9y repositories as follows (see note below):

  1. Please also copy the respective .map files.
  2. [*] The fonts/ directories should almost never change.

Linting

Please note that you can (and should) lint your changes by using npm test in the project directory. This will test project assets which do not belong to 3rd-party assets using eslint for JS and stylelint for SCSS.

Updating jQuery

jQuery is managed through package.json, but there is currently no task to automagically copy an updated version of it from node_modules/jquery/dist to the directories for the sites that need it. So in case of an update to jQuery, for the time being the files

  • node_modules/jquery/dist/jquery.min.js
  • node_modules/jquery/dist/jquery.min.map

both need to be copied to

  • site/scripts/jquery/dist/ and
  • spartacus/scripts/jquery/dist/

For convenience, you can use npm run setup:all to copy those files.

About

CSS and JS assets for our web sites (plus build script)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •