Skip to content

Commit 6e7d9ce

Browse files
committed
Upgraded to grind 0.7.0 beta
1 parent 5a86a82 commit 6e7d9ce

File tree

16 files changed

+102
-36
lines changed

16 files changed

+102
-36
lines changed

.babelrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"presets": [ "grind" ],
33
"plugins": [
44
[
5-
"babel-plugin-module-alias", [
6-
{ "src": "./app", "expose": "App" },
7-
{ "src": "./boot", "expose": "Boot" }
8-
]
5+
"module-resolver", {
6+
"alias": {
7+
"App": "./app",
8+
"Boot": "./boot"
9+
}
10+
}
911
]
1012
]
1113
}

app/Bootstrap.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'babel-polyfill'
21
import Grind from 'grind-framework'
32

43
import { AssetsProvider } from 'grind-assets'

bin/.init

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pushd $NODE_ROOT > /dev/null
1919
NODE_ROOT="`pwd`"
2020
popd > /dev/null
2121

22+
pushd $NODE_ROOT/.. > /dev/null
23+
export BASE_PATH="`pwd`"
24+
popd > /dev/null
25+
2226
if [ -f "$NODE_ROOT/../.env" ];
2327
then
2428
source "$NODE_ROOT/../.env"

bin/cli

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ if [[ "$@" == *"--help"* ]]; then
1212
COMMAND="$COMMAND-help"
1313
fi
1414

15-
FLAGS=$(node -e 'console.log(Number.parseFloat(process.version.substring(1)) >= 7 ? "--harmony-async-await" : "")')
15+
NODE_VERSION=$(node -v)
16+
NODE_VERSION=$(echo ${NODE_VERSION#*v} | cut -d. -f1)
17+
18+
FLAGS=""
19+
if [ "$NODE_VERSION" -gt "6" ]; then
20+
FLAGS="--harmony-async-await"
21+
fi
1622

1723
case $COMMAND in
1824
watch) exec babel-node $FLAGS boot/Http.js --watch=app,config $@

boot/Cli.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import 'babel-polyfill'
2+
import 'grind-framework'
3+
14
import { CliProvider } from 'grind-cli'
25
import 'App/Providers/CommandsProvider'
36

boot/Http.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'babel-polyfill'
12
import { HttpServer } from 'grind-framework'
23

34
(new HttpServer(() => require('App/Bootstrap'))).start().catch(err => {

config/assets.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
"scss": {
66
"includePaths": [
7-
"{{ node_modules }}/bourbon/app/assets/stylesheets",
87
"{{ node_modules }}/normalize.css",
98
]
109
}

config/cache.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
"stores": {
66

7-
"fs": {
8-
"driver": "fs",
9-
"max": 1000000000,
10-
"ttl": 86400,
11-
"path": "storage/cache"
12-
},
13-
147
"memory": {
158
"driver": "memory",
169
"max": 10000,

config/cookie.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
3+
"secret": "change-me",
4+
"domain": null,
5+
"httpOnly": null,
6+
"maxAge": null,
7+
"path": "/",
8+
"secure": false
9+
10+
}

config/database.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
"connections": {
66

7-
"maria": {
8-
"driver": "mariasql",
7+
"mysql": {
8+
"driver": "mysql",
99
"host": "localhost",
10-
"db": "app-db-name",
10+
"database": "app-db-name",
1111
"user": "app-user",
1212
"password": "app-password",
1313
"charset": "utf8"

0 commit comments

Comments
 (0)