sc-npm-packages - @sxa/Theme 1.0.1

> npm install @sxa/Theme@1.0.1


Boilerplate for creating new theme for you Sitecore site.

For using Autosynchronizer, you need to complete next steps:

  1. Download theme boilerplate;

  2. 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;

  3. Switch to downloaded theme boilerplate folder

  4. Update config file for Gulp tasks. ThemeRoot/gulp/config.js file:

    1. serverOptions.server - path to sitecore instance. Example server: 'http://sxa';
  5. If you use Creative exchange skip this step. Open ThemeRoot/gulp/serverConfig.json

    1. serverOptions.projectPath - path to project, where theme placed. Example projectPath: '/themes';
    2. serverOptions.themePath - path to basic theme folder from project root. Example themePath: '/Basic2';
  6. Open Theme root folder with command line.

  7. Run npm install (node.js and npm should be already installed);

  8. If gulp is not yet installed - Install gulp using following command: npm install --global gulp-cli

  9. Run gulp task which you need:
    Global tasks:

    1. gulp default or just gulp - starts gulp all-watch.
    2. gulp all-watch - run a list of tasks:
      sass-watch
      js-watch
      es-watch
      css-watch
      img-watch
      watch-source-sass
      html-watch

    For SASS

    1. gulp sass-watch - run a list of tasks: watch-component watch-base watch-styles watch-dependency
    2. gulp sassComponents - to compile sass styles just for components;
    3. gulp sassStyles - to compile sass additional styles for component;
    4. gulp watch-styles - watch changes under sass/styles/common , sass/styles/content-alignment , sass/styles/layout folders and compile all of them to styles/styles.css;
    5. gulp watch-base - watch on changes under sass/abstracts/, sass/base/ , sass/components folders and run compiling of components and styles;
    6. gulp watch-component - watch changes of component styles under sass folder and compile them to styles folder;
    7. gulp watch-dependency - watch changes under sass/styles/ (exluded sass/styles/common , sass/styles/content-alignment , sass/styles/layout) and compile appropriate component;

    For CSS

    1. gulp css-watch - watch on changes of css files under stytles folder and upload them to server;

    For JavaScript:

    1. gulp eslint - run eslint for all js in scripts folder;
    2. gulp js-watch - watch on changes of js files under scripts folder and upload them to server;
    3. gulp es-watch - watch on changes of ES6+ js files under sources folder and upload them to server;

    For HTML (if you work with creative exchange)

    1. gulp html-watch - watch changes of html files and upload them to the server;

    For Gulp files

    1. gulp watch-gulp - watch on changes of js and json files under gulp folder and upload them to server;

    For Images

    1. gulp img-watch - watch on changes under images folder and upload files to server;

    For Sprite

    1. gulp spriteFlag - to create sprite for flags;
  10. When watcher starts you need to enter you login and password for Sitecore, for uploading reason.

Owners

Authors

Sitecore Corporation A/S

Project URL

https://doc.sitecore.com/developers/sxa/18/sitecore-experience-accelerator/en/modify-your-site-design-with-creative-exchange-live.html

License

Sitecore MyGet License

Keywords

SXA, Creative, Exchange, Live, Sitecore, Experience, Accelerator, Gulp, Theme

Info

52408 total downloads
2812 downloads for version 1.0.1
Download (1.05 MB)

Dependencies

@babel/polyfill@^7.0.0, colors@^1.1.2, form-data@^2.1.4, formstream@^1.1.0, gulp@^3.9.1, gulp-autoprefixer@^3.1.1, gulp-babel@^8.0.0, gulp-cli@^1.2.2, gulp-concat@^2.6.1, gulp-eslint@^3.0.1, gulp-filter@^5.0.0, gulp-if@^2.0.2, gulp-prompt@^0.2.0, gulp-rename@^1.2.2, gulp-sass@^3.1.0, gulp-sass-bulk-import@^1.0.1, gulp-sass-grapher@^0.1.4, gulp-sourcemaps@^2.5.0, gulp-upload@^0.0.3, gulp-watch@^4.3.11, gulp.spritesmith@^6.4.0, inquirer@^3.0.6, path@^0.12.7, request@^2.81.0, jsdoc@^3.5.5, rimraf@^2.6.2, urllib@^2.22.0

Dependencies (dev)

@sxa/celt@^1.0.1, @babel/cli@^7.1.2, @babel/core@^7.1.2, @babel/preset-env@^7.1.0, @babel/register@^7.0.0

Package history

Version Size Last updated Downloads Mirrored?
10.3.0 1.04 MB Tue, 07 Feb 2023 09:28:35 GMT 18310
10.2.3 1.04 MB Tue, 07 Feb 2023 09:18:39 GMT 7
10.2.2 1.04 MB Thu, 18 Nov 2021 09:39:41 GMT 17624
10.2.1 1.04 MB Tue, 09 Nov 2021 15:06:28 GMT 899
10.2.0 1.04 MB Fri, 05 Nov 2021 15:34:56 GMT 123
10.1.0 1.04 MB Thu, 25 Feb 2021 13:10:19 GMT 9932
10.0.0 1.05 MB Tue, 04 Aug 2020 13:48:53 GMT 2701
1.0.1 1.05 MB Thu, 28 Nov 2019 14:50:20 GMT 2812