Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kevin Brown
committed
Jan 24, 2017
1 parent
cfdc1f2
commit 42ba77d
Showing
8 changed files
with
902 additions
and
95 deletions.
There are no files selected for viewing
This file contains 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,21 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = tab | ||
|
||
[*.js] | ||
indent_size = 4 | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains 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,10 @@ | ||
module.exports = { | ||
'extends': [ | ||
'keystone-react', | ||
], | ||
'rules': { | ||
'react/jsx-indent': 0, | ||
'react/jsx-no-bind': 'off', | ||
'react/jsx-boolean-value': 'off', | ||
} | ||
}; |
This file contains 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,22 +1,26 @@ | ||
#! /usr/bin/env node | ||
const glob = require('glob'); | ||
|
||
const yargs = require("yargs"); | ||
const yargs = require('yargs'); | ||
|
||
var argv = yargs.usage("$0 command") | ||
.command( | ||
"fix-libraries", | ||
"add any missing build configurations to all xcode projects in node_modules", | ||
yargs => { | ||
require('./src/fix-libraries')(); | ||
}) | ||
.command( | ||
"fix-script", | ||
"replace the react native ios bundler with our scheme aware one", | ||
yargs => { | ||
require('./src/fix-script')(); | ||
}) | ||
.demand(1, "must provide a valid command") | ||
.help("h") | ||
.alias("h", "help") | ||
.argv | ||
yargs | ||
.usage('$0 command') | ||
.command('all', 'run all bundled commands', yargs => { | ||
const files = glob.sync('src/*.js'); | ||
|
||
for (const file of files) { | ||
if (file.endsWith('utilities.js')) continue; | ||
|
||
require(file)(); | ||
} | ||
}) | ||
.command('fix-libraries', 'add any missing build configurations to all xcode projects in node_modules', yargs => { | ||
require('./src/fix-libraries')(); | ||
}) | ||
.command('fix-script', 'replace the react native ios bundler with our scheme aware one', yargs => { | ||
require('./src/fix-script')(); | ||
}) | ||
.demand(1, 'must provide a valid command') | ||
.help('h') | ||
.alias('h', 'help') | ||
.argv; |
This file contains 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 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 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 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
Oops, something went wrong.