Skip to content

Commit

Permalink
🔧 scripts → bin
Browse files Browse the repository at this point in the history
  • Loading branch information
murosan committed Jun 16, 2019
1 parent 8929eb7 commit 6a3413c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh → bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cd $PROJECT_ROOT
yarn test:c

# insert Google Analytics to index.html
node $PROJECT_ROOT/scripts/ga.js insert
node $PROJECT_ROOT/bin/ga.js insert

# build app
yarn build
Expand Down Expand Up @@ -42,7 +42,7 @@ mkdir playground
cp -r $PROJECT_ROOT/build/* ./playground/

# restore index.html
node $PROJECT_ROOT/scripts/ga.js remove
node $PROJECT_ROOT/bin/ga.js remove

# deploy
read -p "Are you sure to deploy? [y/n]" CONFIRM
Expand Down
1 change: 0 additions & 1 deletion scripts/ga.js → bin/ga.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict'
const path = require('path')
const fs = require('fs')

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"将棋",
"検討",
"ブラウザ",
"動かせる"
"将棋ソフト"
],
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,7 +65,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"deploy": "scripts/deploy.sh",
"deploy": "bin/deploy.sh",
"test": "react-scripts test",
"test:c": "react-scripts test --coverage",
"test:debug": "react-scripts --inspect-brk test --runInBand",
Expand Down

0 comments on commit 6a3413c

Please sign in to comment.