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

@sintra-poland/gulp-shopify

v1.0.17

Published

Pre-made gulp for shopify projects

Downloads

3

Readme

Gulp for Sintra

This is pre-made gulp tasks for shopify projects.

Installation

npm i @sintra-poland/gulp-shopify --save-dev

Basic usage

Minimal Gulpfile.js with default configuration:

const { Gulp } = require('@sintra-poland/gulp-shopify');

new Gulp(exports);

Additional configuration:

const { Gulp } = require('@sintra-poland/gulp-shopify');

new Gulp(exports, {
  prefix: 'new-project'  
});

Tasks

  • default task will merge vendors, compile js & css and then watch for changes
  • vendor-js task will merge vendor js
  • vendor-css task will merge vendor css
  • js task will compile source javascript
  • css task will compile source scss

Structure

Default Dawn theme project structure should be as follows:

.
├── dev                         
│   ├── js                      
│   │   ├── sections 
│   │   │   └── example.js      # Each section should have very own js
│   │   └── core.js             # Global js used site-wide
│   ├── sass    
│   │   ├── components 
│   │   │   └── example.scss    # Components like eg. rating
│   │   ├── core 
│   │   │   └── _vars.scss      # Css variables
│   │   ├── sections 
│   │   │   └── example.scss    # Each section should have very own css
│   │   ├── _mixins.scss        # Common functions and mixins
│   │   ├── _variables.scss     # Sass variables
│   │   └── core.scss           # Core styles used site-wide
│   ├── vendors  
│   │   ├── js      
│   │   │   └── example.min.js  # Vendor js files which will be merged into one
│   │   └── css      
│   │       └── example.min.css # Vendor css files which will be merged into one
│   ├── Gulpfile.js
│   ├── package.json
│   └── package-lock.json
└── ...

Configuration

This is default configuration:

new Gulp(exports, {  
  // Use line breaks in css output
  lineBreaks: true,
  // Skip module version checking
  skipVersionCheck: false,
  // Destination directory for compiled files 
  dest: '../assets',
  // Prefix for compiled files
  prefix: 'custom',
  // Character for joining directory structured files
  glue: '.',
  // Split each source file to css file
  split: true,
  // Css config
  css: {
    // Source path for sass files
    src: 'sass/**/*',
    // Used for single output file (if split set to false)
    name: 'style',
    // Vendors source path      
    vendors: 'vendors/css/*.css',
    // Vendors output file name
    vendorsName: 'vendors',
    // Base directory where source files are stored
    baseDirectory: 'sass'
  },
  // Js config
  js: {
    // Source path for js files
    src: 'js/**/*',
    // Used for single output file (if split set to false)
    name: 'all',
    // Vendors source path      
    vendors: 'vendors/js/*.js',
    // Vendors output file name
    vendorsName: 'vendors',
    // Group js files if under one directory
    group: true,
    // Uglify output file
    uglify: true,
    // This prevent clean js from rendering to file
    onlyMinified: true,
    // Base directory where source js files are stored
    baseDirectory: 'js',
    // Options for babel compiler
    babelOptions: {
      presets: [
        ['@babel/env', {
          modules: false,
          targets: {
            chrome: 60
          }
        }]
      ]
    }
  }
})