Skip to content

Commit a61cc90

Browse files
committed
add initial migrations, tests, start of installer
1 parent 66c998e commit a61cc90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+138935
-17
lines changed

app/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/runtime
2+
/tests/runtime

app/assets/AppBundle.php

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace app\assets;
4+
5+
use yii\web\AssetBundle;
6+
7+
8+
/**
9+
* Class AppBundle
10+
*/
11+
class AppBundle extends AssetBundle
12+
{
13+
public function init()
14+
{
15+
$this->sourcePath = __DIR__ . '/bundle' . (YII_ENV_DEV ? '/dist-dev' : '/dist');
16+
$this->css = YII_ENV_DEV ? ['app.bundle.css'] : ['app.bundle.min.css'];
17+
$this->js = YII_ENV_DEV
18+
? [
19+
'vendor.bundle.js',
20+
'app.bundle.js',
21+
]
22+
: [
23+
'vendor.bundle.min.js',
24+
'app.bundle.min.js',
25+
];
26+
parent::init();
27+
}
28+
}

app/assets/bundle/.babelrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
"env",
4+
"react",
5+
"stage-2"
6+
]
7+
}

app/assets/bundle/.eslintrc

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"jquery": true
6+
},
7+
"globals": {
8+
"Promise": true
9+
},
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:react/recommended"
13+
],
14+
"parser": "babel-eslint",
15+
"rules": {
16+
"quotes": [2, "single"],
17+
"strict": [2, "never"],
18+
"react/jsx-uses-react": 2,
19+
"react/jsx-uses-vars": 2,
20+
"react/react-in-jsx-scope": 2
21+
},
22+
"plugins": [
23+
"react"
24+
]
25+
}
26+

app/assets/bundle/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.cache-loader
3+

app/assets/bundle/app/app.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
color: #fff;
3+
}

app/assets/bundle/app/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import './app.scss';
2+
3+
alert('foo');

app/assets/bundle/build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
echo "Building started ⚠️"
4+
npm run build && \
5+
# npm run build-prod && \
6+
echo "Built ✅" || echo "Error 🔴"

app/assets/bundle/dist-dev/app.bundle.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/bundle/dist-dev/app.bundle.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/bundle/dist-dev/app.bundle.js

+109
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/bundle/dist-dev/app.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)