@spaship/sync
@spaship/sync
npm i @spaship/sync
@spaship/sync

@spaship/sync

SPAship is an early-stages Single-Page App deployment and hosting platform.

by spaship

0.14.0 (see all)License:MITTypeScript:Not Found
npm i @spaship/sync
Readme

SPAship Sync

The sync service of SPAship

Global install

npm install -g @spaship/sync
spaship-sync

Hacking

git@github.com:spaship/sync.git
npm install

From here, you can npm start to launch the service, or npm run dev to launch the service with auto-restart when source files are changed.

Testing

CommandPurpose
npm testRun tests.
npm test -- --watchRun tests, and re-run them when files change.

Pull requests and commit messages

This repo follows Conventional Commits, a standard format for writing commit messages. Each commit message becomes an entry in CHANGELOG.md, and the commit messages are also used to determine what version bump to apply.

Read more about Conventional Commits for a description and examples!

If you are working on a pull request, don't worry about commit message format. Commit early and often.

When your pull request is merged, "squash and merge" should be used, and a Conventional Commit message written at that point. In this way, your pull request will become a single commit in the master branch and one entry in the CHANGELOG will be created.

Configuration

Configuration can be provided by CLI flags, environment variables, or a configuration file. Arguments are processed in that order, so CLI flags take precedence over environment variables, which take precedence over the configuration file.

OptionDescriptionCLIEnvconfig.jsonDefault
config fileWhere to find the config file.--config-fileSPASHIP_SYNC_CONFIG_FILEN/Anone
autosyncSync details--autosyncSPASHIP_AUTOSYNC"autosync"view
portPort to run on.--portSPASHIP_SYNC_PORT"port"8009
log-levelGranularity of log messages to print. Options are: fatal, error, warn, info, debug, trace or silent.--log-levelSPASHIP_LOG_LEVEL"log_level"info
log-formatpretty for human-friendly logs, json for machine-friendly logs.--log-formatSPASHIP_LOG_FORMAT"log_format"pretty

Note: the filepath configurations (config file) must be absolute paths when defined in an environment variable or config file. When defined in CLI options like, they can be written relative to CWD. Example: --config-file=../config.json.

API

/force

force sync all files

Downloads/wk

22

GitHub Stars

32

LAST COMMIT

8mos ago

MAINTAINERS

3

CONTRIBUTORS

20

OPEN ISSUES

115

OPEN PRs

15
VersionTagPublished
0.14.0
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate