All Projects → jonschlinkert → sync-pkg

jonschlinkert / sync-pkg

Licence: MIT license
Minimalist CLI to sync only basic properties from package.json to bower.json

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sync-pkg

Deck
decK: Configuration management and drift detection for Kong
Stars: ✭ 211 (+1306.67%)
Mutual labels:  sync
Go Fastdfs
go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic r…
Stars: ✭ 2,923 (+19386.67%)
Mutual labels:  sync
client-side-databases
An implementation of the exact same app in Firestore, AWS Datastore, PouchDB, RxDB and WatermelonDB
Stars: ✭ 787 (+5146.67%)
Mutual labels:  sync
Redissyncer Server
RedisSyncer是一个多任务的redis数据同步工具,可灵活的满足Redis间的数据同步、迁移需求; redissyncer is a redis synchronization tool, used in redis single instance and cluster synchronization
Stars: ✭ 216 (+1340%)
Mutual labels:  sync
Pull
🤖 Keep your forks up-to-date via automated PRs
Stars: ✭ 3,364 (+22326.67%)
Mutual labels:  sync
To Do
一个无后端待办事项应用,数据用 LeanCloud 进行同步。
Stars: ✭ 238 (+1486.67%)
Mutual labels:  sync
Seam3
Cloudkit based persistent store for Core Data
Stars: ✭ 207 (+1280%)
Mutual labels:  sync
git2gus
A Github application to keep issues in sync with Agile Accelerator
Stars: ✭ 27 (+80%)
Mutual labels:  sync
Realm Cocoa
Realm is a mobile database: a replacement for Core Data & SQLite
Stars: ✭ 14,778 (+98420%)
Mutual labels:  sync
React Native Storage
local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
Stars: ✭ 2,822 (+18713.33%)
Mutual labels:  sync
Vuex Easy Firestore
Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!
Stars: ✭ 224 (+1393.33%)
Mutual labels:  sync
Sync
JSON to Core Data and back. Swift Core Data Sync.
Stars: ✭ 2,538 (+16820%)
Mutual labels:  sync
Plex Sync
🎬 Command line utility for synchronizing Plex Media Server watched / seen status between multiple servers
Stars: ✭ 239 (+1493.33%)
Mutual labels:  sync
Crdt Playground
Stars: ✭ 215 (+1333.33%)
Mutual labels:  sync
ng-stomp
📑 STOMP for AngularJS
Stars: ✭ 42 (+180%)
Mutual labels:  bower
Sync
deprecated Brave sync server. (sync now uses a fork of the Chromium sync protocol.)
Stars: ✭ 208 (+1286.67%)
Mutual labels:  sync
Realmcontent
Light Realm-powered content management system
Stars: ✭ 237 (+1480%)
Mutual labels:  sync
Notion-GCal-Sync
A Python script to automate the syncing of tasks between Google Calendar and the all-in-one productivity workspace, Notion. It utilizes API and is customizable for your own needs. Free to use.
Stars: ✭ 120 (+700%)
Mutual labels:  sync
ChronoChat
A simple but interesting demo to visualize how ChronoSync library works
Stars: ✭ 16 (+6.67%)
Mutual labels:  sync
React Scroll Sync
Synced scroll position across multiple scrollable elements
Stars: ✭ 252 (+1580%)
Mutual labels:  sync

sync-pkg NPM version NPM downloads Build Status

CLI to sync only basic properties from package.json to bower.json.

Install

Install with npm:

$ npm install sync-pkg --save

API

var sync = require('sync-pkg');

// omit fields using glob patterns
sync(['!description', '!foo*']);

// extend existing bower.json
sync(null, {
  extend: true
});

// allow empty fields
sync(null, {
  empty: true
});

CLI

Run sync-pkg in the command line to create and/or update bower.json.

$ sync-pkg
  • If bower.json exists, it will be updated with values in package.json.
  • If bower.json does not exist, you will be asked if you want to create one.

Commands

bower

Create a bower.json file and/or update the existing bower.json. Equivalent to running sync-pkg without the bower command, except that it will automatically create a bower.json file if one does not exist, and you will not be prompted.

$ sync-pkg bower

diff

See a visual diff of proposed changes between package.json and bower.json. Does not modify any files.

$ sync-pkg diff

Example output

screen shot 2016-05-13 at 12 50 11 pm

properties

The following fields from package.json are used:

  • name: required
  • description: recommended
  • license: recommended
  • main: recommended
  • ignore: recommended
  • keywords: recommended

These fields are also included, but are considered optional by bower:

  • repository
  • homepage
  • authors
  • dependencies
  • devDependencies

Pull requests or feature requests are welcome!

Related projects

You might also be interested in these projects:

  • filter-object: Filter an object by its keys or values. Returns a copy of an object filtered… more | homepage
  • load-pkg: Loads the package.json from the root of the user's current project. | homepage
  • omit-empty: Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero. | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on May 13, 2016.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].