Skip to content

Commit

Permalink
workaround to publish also .gitignore (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianovide authored and joykuotw committed Oct 31, 2018
1 parent 121d3f8 commit c8a3be4
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/geovation-photos-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function copySrc() {
ncp(path.join(geovationPhotoFolder, "src"), "src", errFunc);
ncp(path.join(geovationPhotoFolder, "cordova-app"), "cordova-app", errFunc);
ncp(path.join(geovationPhotoFolder, "public"), "public", errFunc);
ncp(path.join(geovationPhotoFolder, ".gitignore"), ".gitignore", { clobber : false }, errFunc);
// see https://github.com/atlassubbed/atlas-npm-init/issues/1
ncp(path.join(geovationPhotoFolder, "gitignore"), ".gitignore", { clobber : false }, errFunc);
}

function errFunc(err) {
Expand Down
68 changes: 68 additions & 0 deletions gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

#editors
.idea
.DS_Store

# ignoring compiled folder for now
build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"scripts": {
"start": "HTTPS=true react-scripts start",
"build": "react-scripts build && cp -a ./build/. ./cordova-app/www/",
"build": "react-scripts build && cp -a ./build/. ./cordova-app/www/ && cp .gitignore gitignore",
"test": "react-scripts test --env=jsdom",
"coverage": "react-scripts test --env=jsdom --coverage",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
Expand Down

0 comments on commit c8a3be4

Please sign in to comment.