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

frontify-sync

v0.1.1

Published

Frontify-sync provides automatic synchronization between local patterns and assets folders to a Frontify project

Downloads

3

Readme

frontify-sync


This package provides automatic synchronization between local patterns and assets folders to a Frontify project.

schema

Installation


Installing globally will give you access to the frontify-sync command anywhere on your system:

npm install -g frontify-sync

You can also add frontify-sync to your package.json file:

npm install frontify-sync --save-dev

Options


frontify-sync comes with a few options.
It's possible to sync only assets or patterns, but at least one of these options must be set.

|Option | Type | Command | Optional | Notes | :------------- | :------------------------- | :------------------------- | :-----------| :-----------| | configuration | String | -c, --configuration | true | Set configuration file source path | projectId | String | -P, --project-id | false | Set project id | | accessToken | String | -A, --access-token | false | Set access token | | patterns | String | -p, --patterns | false if missing assets | Set patterns directory source path | | assets | Array of glob | glob | -a, --assets | false if missing patterns | Set assets directory source path | | cwd | String | -C, --cwd | true | Set the current working directory for local assets | | target | String | -T, --target | true | Set the target directory for assets in Frontify project | | dryRun | Boolean | -D, --dry-run | true | Run a fake synchronisation to check for updated items |

Usage


As a module


Just require the package and pass options to the function:

var sync = require('frontify-sync');
var options = {
  accessToken: "your_frontify_access_token",
  projectId: "your_frontify_project_id",
  patterns: "./patterns",
  assets: "./assets/**/*.*"
}

sync(options);

Additionally, you can use a configuration file that can contains all possible options (except configuration of course). Please note that options in configuration file will always be overwritten by regular options.

#configuration.json
{
  "accessToken": "your_frontify_access_token",
  "projectId": "your_frontify_project_id",
  "patterns": "./patterns",
  "assets": "./assets/**/*.*",
}
var sync = require('frontify-sync');
var options = {
  configuration: "./configuration.json"
}

sync(options);

From command line interface


$ frontify-sync -A "your_frontify_access_token" -P "your_frontify_project_id" -p "./patterns" -a "./assets/**/*.*"

As well, you can set only a configuration file path:

$ frontify-sync -c "./configuration.json"

Contributing


You can develop and test locally your modified package by running npm link. The package becomes then globally accessible.

Commit messages must follow conventions, please use these guidelines: https://github.com/conventional-changelog/conventional-changelog-angular/blob/master/convention.md

Any new feature must be unit tested. The following npm tasks are available:

  • npm test Will run all tests and print tests results along code coverage.
  • npm run test-ci Will watch for any files changes and run all tests

Code coverage report is generated in /coverage/lcov-report folder

Release process


Release is made with standard-version of conventional-changelog:

npm run release

The following jobs will be ran:

  • Bumping version in package.json file
  • Outputting changes to CHANGELOG.md (based on commit messages)
  • Committing package.json and CHANGELOG.md
  • Adding a new tag for targeted release

Once your local master branch is ready, just run the following command:

npm run publish

The following jobs will be ran:

  • Pushing commit and tag to the remote master branch
  • Publish the package to npm registry

Publishing on npm registry requires a registered user. Please read Publishing npm packages for more details.