npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sitecore/sxa-cli

v10.4.0

Published

SXA CLI for theme

Downloads

414

Readme

For using Autosynchronizer, you need to complete next steps:

  1. Open PathToInstance/Website/App_Config/Include/z.Feature.Overrides (in previous version of Sitecore it can be PathToInstance/Website/App_Config/Include/Feature) folder and remove .disabled from z.SPE.Sync.Enabler.Gulp.config.disabled file;

| command | alias | options | description | | :----------------------- | :-------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | sxa init | sxa i | - | Download all necessary files for compatibility with Creative Exchange Live Mode. This process will not replace existing files only download the missing ones. | | sxa new [themeName] | sxa n | --url <url> - Url to the instance where the theme should be created. You don't have to specify the URL if you want to create the theme in the currently registered Sitecore instance. | Creates a theme both locally and within your Sitecore instance. Use this command to create a new theme for your site. | | sxa register <url> | sxa reg | - | Specifies the default Sitecore instance for the "init" and "new" commands for your working environment. Only one instance can be registered as the default at a time. | | sxa get-url | sxa g | - | Returns the current default Sitecore instance URL for the "init" and "new" commands. | | sxa config [themeName] | sxa c | - | Sets up a theme configuration variable by answering a list of questions. Use this command to change the theme configuration. | | sxa build [taskName] | sxa b | -d, --debug - provides additional debugging information | Builds theme assets based on the current theme configuration | | sxa upload [taskName] | sxa u | 1. -d, --debug provides additional debugging information; 2. -l, --login <login> - Login for uploading; 3. -p, --password <password> - Password for uploading | Upload theme assets based on the theme configuration | | sxa watch [taskName] | sxa w | 1. -d, --debug - provides additional debugging information; 2. -l, --login <login> - Login for watching; 3. -p, --password <password> - Password for watching | Watches for theme asset changes on the drive and uploads any modified files automatically. Can be configured with "sxa config" command | | sxa rebuild [taskName] | sxa r | 1. -d, --debug - provides additional debugging information; 2. -l, --login <login> - Login for watching; 3. -p, --password <password> - Password for watching | rebuild and upload theme assets |

List of build tasks:

Global tasks

  1. build All - compiles sass, minifies css and js;

For SASS

  1. build Sass - compiles sass into css from root of sass folder;
  2. build SassStyles - compiles files from sass/styles/common , sass/styles/content-alignment , sass/styles/layout to styles/styles.css;

For CSS

  1. build Css - bundles and minifies files in styles folder;

For JavaScript:

  1. build Eslint - run eslint for all JavaScript in the Scripts folder;
  2. build Js - bundles and minifies JavaScript files in the Scripts folder;

For SASS and CSS

  1. build Styles - compiles sass components into css, bundles and minfies css files;

For Sprite

  1. build SpriteFlag - to create sprite for flags;

List of upload tasks:

Global tasks:

  1. upload All - uploading JavaScript, CSS, and images to the Sitecore instance;

For CSS

  1. upload Css - uploading CSS files from styles folder based on the theme configuration.

For JavaScript:

  1. upload Js - uploading JavaScript files from Scripts folder based on the theme configuration

For SASS and CSS

  1. upload Img - upload files from images to the Sitecore instance;

For Fonts

  1. upload Fonts - upload files from Fonts folder to the Sitecore instance;

For Gulp config

  1. upload GulpConfig - uploading config folder and gulpfilejs

List of rebuild tasks:

Global tasks:

  1. rebuild All - compiles sass components into css, minifies js and css, uploads js, css, images;
  2. rebuild Main - compiles sass components into css, minifies js and css, uploads js, css;

List of watch tasks:

Global tasks:

  1. sxa watch All - aggregates the functionality of the following tasks: watch Sass watch JS watch Es watch Css watch Img watch SassSource watch Scriban watch Html

For Sass:

  1. watch Sass - run a list of tasks: watch SassComponents watch SassBase watch SassStyles watch SassDependency
  2. watch SassStyles - monitors changes under sass/styles/common , sass/styles/content-alignment , sass/styles/layout folders, compiles all of them to styles/styles.css;
  3. watch SassBase - monitors changes under sass/abstracts/, sass/base/ , sass/components folders and compiles components and styles;
  4. watch SassComponents - monitors changes in component stylesunder sass folder and compiles them to styles folder;
  5. watch SassDependency - monitors changes under sass/styles (except for sass/styles/common , sass/stylescontent-alignment , sass/styles/layout) and compilesappropriate components;
  6. watch SassSource - monitors changed under sass/* folderand uploads changed file to the Sitecore instance;

For CSS

  1. watch Css - monitors changes of css files under styles folder and uploads them to the Sitecore instance;

For JavaScript:

  1. watch Js - watch on changes of js files under Scripts folder and upload them to the Sitecore instance;
  2. watch Es - watch on changes of js files under sources folder and upload them to the Sitecore instance;

For Images

  1. watch Img - monitors changes under images folder and uploads the files to the Sitecore instance;

Creative Exchange specific tasks

For HTML

  1. watch Html - monitors changes of HTML files and uploads them to the Sitecore instance to be parsed by Creative Exchange;

For Scriban

  1. watch Scriban - monitors changes of Scriban files and uploads them to the Sitecore instance;