Skip to content

Commit de44446

Browse files
committed
dev環境setup
1 parent ba75f7e commit de44446

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
grammar-kit
44
tmp
55
node_modules
6+
envtools

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules
22
dist
33
assets
4+
envtools
45

56
grammar/charm.dfa
67
grammar/charm.dict

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
},
1818
"scripts": {
1919
"test": "xo",
20-
"start": "electron .",
21-
"package": "electron-packager . $npm_package_productName --out=dist --ignore='^/dist$' --prune --asar --all --version=$npm_package_electronVersion",
20+
"start": "docker run -ti -p 443:443 oice",
2221
"build:grammar": "cd grammar; ./build.sh",
23-
"build": "npm run build:grammar & webpack",
22+
"build:docker": "docker build -t oice .",
23+
"build": "npm run build:grammar; webpack; npm run build:docker",
24+
"start-dev": "npm run watch & bundle exec thin --ssl -p 4430 start",
2425
"watch": "npm-watch & webpack -w"
2526
},
2627
"main": "main/index.js",

setup-dev.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
brew install coreutils
2+
mkdir envtools
3+
cd envtools
4+
git clone https://github.com/julius-speech/julius.git --depth 1
5+
cd julius
6+
./configure --enable-words-int --prefix=`realpath ..` && make && make install
7+
cd ../bin
8+
ln -s julius.dSYM julius

0 commit comments

Comments
 (0)