Skip to content

Commit

Permalink
Set repo up to work while dev'ing in Windows (#79)
Browse files Browse the repository at this point in the history
* Add cross-env package so env vars work in windows too

* Add .gitattributes so files are checked in uniformly across different operating systems

* Add cross-env to test:no-watcher CI env var
  • Loading branch information
sanjsanj authored and rkclark committed Oct 21, 2018
1 parent 41d633a commit f70508c
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 5 deletions.
194 changes: 194 additions & 0 deletions .gitattributes
@@ -0,0 +1,194 @@
## AUTOCRLF all text files
## This will handle all files NOT overridden below
* text=auto

## TERRAFORM
/terraform/* text eol=lf
*.ps1 text eol=crlf

## C-SHARP C#
*.cs text diff=csharp
*.xaml text
*.csproj text
*.sln text
*.tt text
*.ps1 text
*.cmd text
*.msbuild text
*.md text

## SOURCE CODE
*.bat text eol=crlf
*.coffee text
*.css text diff=css
*.htm text
*.html text diff=html
*.inc text
*.ini text
*.js text eol=lf
*.json text eol=lf
*.jsx text eol=lf
*.less text
*.od text
*.onlydata text
*.php text
*.pl text
*.py text diff=python
*.rb text diff=ruby
*.sass text diff=css
*.scm text
*.scss text diff=css
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text

## DOCKER
*.dockerignore text
Dockerfile text

## DOCUMENTATION
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

## TEMPLATES
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.tmpl text
*.tpl text
*.twig text

## LINTERS
.csslintrc text
.eslintrc text
.htmlhintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text

## CONFIGS
*.bowerrc text
*.cnf text
*.conf text
*.config text
.browserslistrc text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.npmignore text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text

## HEROKU
Procfile text
.slugignore text

## GRAPHICS
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
*.svg text
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary

## ARCHIVES
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

## EXECUTABLES
*.exe binary
*.pyc binary
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"body-parser": "^1.17.2",
"cors": "^2.8.4",
"cross-env": "^5.2.0",
"date-fns": "^1.29.0",
"dotenv": "^4.0.0",
"electron-debug": "^1.5.0",
Expand Down Expand Up @@ -95,20 +96,20 @@
"whatwg-fetch": "2.0.3"
},
"scripts": {
"start": "BROWSER=none node scripts/start.js",
"start": "cross-env BROWSER=none node scripts/start.js",
"stub:server": "nodemon stubServer",
"stub:start": "BROWSER=none REACT_APP_GITHUB_API_URL=http://localhost:3334/graphql REACT_APP_OAUTH_GATEKEEPER_URL=http://localhost:3334/authenticate REACT_APP_GITHUB_AUTH_URL=http://localhost:3334/oauth/authorize node scripts/start.js",
"stub:start": "cross-env BROWSER=none REACT_APP_GITHUB_API_URL=http://localhost:3334/graphql REACT_APP_OAUTH_GATEKEEPER_URL=http://localhost:3334/authenticate REACT_APP_GITHUB_AUTH_URL=http://localhost:3334/oauth/authorize node scripts/start.js",
"stub": "run-p stub:*",
"serve": "npm run build && node server",
"react-build": "node scripts/build.js",
"test": "node scripts/test.js --config .jestrc.json --env=jsdom",
"test:no-watcher": "CI=true npm run test",
"test:no-watcher": "cross-env CI=true npm run test",
"style": "eslint '**/*.js'",
"style-fix": "eslint --fix '**/*.js'",
"validate": "npm run test && npm run style",
"precommit": "npm run style && npm run test:no-watcher",
"electron": "NODE_ENV=production electron .",
"electron-dev": "ELECTRON_START_URL=http://localhost:3333/app electron .",
"electron": "cross-env NODE_ENV=production electron .",
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3333/app electron .",
"pack": "npm run react-build && build --dir",
"dist": "npm run react-build && build",
"ship": "npm run react-build && build --publish always"
Expand Down

0 comments on commit f70508c

Please sign in to comment.