-
Notifications
You must be signed in to change notification settings - Fork 3
Globalize #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Setogit
wants to merge
5
commits into
master
Choose a base branch
from
globalize
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Globalize #14
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8bde5e9
Globalize
Setogit 7775c00
Fix up a globalization issue
Setogit 13f3c3a
Remove non-En directories under intl
Setogit cf0b4fb
Add clrd-data as dependency
Setogit 5b4943f
Remove intl/en/messages.json and proof read strings
Setogit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| #!/usr/bin/env node | ||
|
|
||
| var g = require('strong-globalize'); | ||
| var install = require('../'); | ||
| var minimist = require('minimist'); | ||
| var path = require('path'); | ||
|
|
||
| var opts = minimist(process.argv.slice(2)); | ||
|
|
||
|
|
@@ -11,30 +13,20 @@ if (!opts.command && opts._.length > 0) { | |
| delete opts._; | ||
|
|
||
| if (opts.help || opts.h) { | ||
| return usage(process.argv[1], console.log.bind(console)); | ||
| g.log('sl-service-install.txt', process.argv[1]); | ||
| process.exit(0); | ||
| } | ||
|
|
||
| if (opts.version || opts.v) { | ||
| return console.log(require('../package.json').version); | ||
| console.log(require('../package.json').version); | ||
| process.exit(0); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment as above |
||
| } | ||
|
|
||
| g.setRootDir(path.resolve(__dirname)); | ||
|
|
||
| install(opts, function(err) { | ||
| if (err) { | ||
| console.error(err.stack); | ||
| process.exit(1); | ||
| } | ||
| }); | ||
|
|
||
| function usage($0, p) { | ||
| p('usage: %s [options] -- <app and args>', $0); | ||
| p(''); | ||
| p('Options:'); | ||
| p(' -h,--help Print this message and exit.'); | ||
| p(' --name NAME Name to use for service (default derived from app)'); | ||
| p(' --user USER User to run service as.'); | ||
| p(' --group GROUP Group to run service as.'); | ||
| p(' --jobFile PATH File to create (default /etc/init/<name>.conf)'); | ||
| p(' --cwd PATH Directory to run the service from.'); | ||
| p(' --upstart [VER] Generate Upstart job for VER: 0.6 or 1.4 (default)'); | ||
| p(' --systemd Generate systemd service'); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| usage: {0} [options] {{-- <app and args>}} | ||
|
|
||
| Options: | ||
| {{-h,--help}} Print this message and exit. | ||
| {{--name NAME}} Name to use for service (default derived from app) | ||
| {{--user USER}} User to run service as. | ||
| {{--group GROUP}} Group to run service as. | ||
| {{--jobFile PATH}} File to create (default {{/etc/init/<name>.conf}}) | ||
| {{--cwd PATH}} Directory to run the service from. | ||
| {{--upstart [VER]}} Generate {{Upstart}} job for VER: 0.6 or 1.4 (default) | ||
| {{--systemd}} Generate {{systemd}} service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,11 +31,13 @@ | |
| "dependencies": { | ||
| "async": "^1.0.0", | ||
| "chownr": "0.0.2", | ||
| "cldr-data": "^28.0.3", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how come strong-globalize doesn't depend directly on cldr-data, if it needs it? |
||
| "debug": "^2.0.0", | ||
| "lodash": "^3.10.0", | ||
| "minimist": "^1.0.0", | ||
| "mkdirp": "^0.5.1", | ||
| "shell-quote": "^1.4.2", | ||
| "strong-globalize": "^1.0.0", | ||
| "strong-service-systemd": "^1.0.0", | ||
| "strong-service-upstart": "^1.0.0", | ||
| "uid-number": "^0.0.5", | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this introduces a bug, please return
g.log(...)