Skip to content

Commit 6f2e259

Browse files
committed
Initial commit
0 parents  commit 6f2e259

File tree

100 files changed

+13751
-0
lines changed

Some content is hidden

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

100 files changed

+13751
-0
lines changed

.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# netbeans
2+
/nbproject
3+
4+
# PHPStorm
5+
.idea/
6+
7+
# composer vendor dir
8+
/vendor
9+
10+
# composer itself
11+
composer.phar
12+
13+
# mac DS_Store files
14+
.DS_Store
15+
16+
/bin
17+
18+
# public files
19+
#/public_html/assets
20+
#/public_html/storage
21+
22+
# project config
23+
/configs/local.php
24+
/configs/server.php
25+
26+
/config/local.php
27+
/config/server.php
28+
29+
# eclipse
30+
.buildpath
31+
.project
32+
.settings

README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Zephir Luya Boilerplate
2+
=======================
3+
4+
# Installation
5+
6+
[» LUYA installation](https://luya.io/de/handbuch/install)
7+
8+
# Front-End
9+
10+
### Libraries
11+
12+
[» jQuery (yii\web\JqueryAsset)](http://www.yiiframework.com/doc-2.0/yii-web-jqueryasset.html)
13+
[» Bootstrap v4-alpha2 (CSS & JS)](http://v4-alpha.getbootstrap.com/)
14+
15+
### Compiling
16+
17+
To compile all project assets, the compilers gulp and postcss are used.
18+
To minify the project assets, use `gulp ... --prod`.
19+
20+
> **HEADS UP!**
21+
> You can change some compiling settings in the `project-compile-config.json`.
22+
23+
#### Installation
24+
25+
To use gulp, you have to run `npm install` in the `ressources/` folder. After the installation successfully completes, you can run `gulp`.
26+
27+
**Examples** (Directory: ressources):
28+
29+
```
30+
gulp (--prod) // Run default task
31+
gulp styles (--prod) // run "styles" task
32+
gulp watch (--prod) // Watch all files and run for example "styles" task if a scss file is changed
33+
```
34+
35+
#### GULP Tasks
36+
37+
| Task | Description |
38+
| --- | --- |
39+
| `styles` | This will compile all scss styles that are defined in `config.source.styles`. It will generate a sourcemap for all stylesheets. *Steps: sass, autoprefixer, pxtorem* |
40+
| `test-styles` | This will test your styles. Currently it'll only check if you use css that is not supported by some browsers. *Steps: doiuse* |
41+
| `styleguide` | This will create a styleguide based on css comments. [» Styleguide docs.](https://github.com/morishitter/postcss-style-guide) *Steps: style-guide* |
42+
| `watch` | This will watch all files that have to be compiled after changes and recompile them on change. |
43+
| `default (just run gulp)` | This will clean the dist directory and compile all styles new. After that, all files being watched will automatically be compiled. *Steps: clean, styles, watch* |
44+
45+
#### Config (project-compile-config.json)
46+
47+
| Setting | Description |
48+
| --- | --- |
49+
| `baseFontSize` | The base font size used to calculate rems out of pixels. *Default: 16* |
50+
| `source` | A object with all source folders and files, that've to be compiled. *Currently only `styles` will be used.* |
51+
| `dest` | A object with all ouput paths. *Currently only `stlyes` will be used. |

assets/ResourcesAsset.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace app\assets;
4+
5+
class ResourcesAsset extends \luya\web\Asset
6+
{
7+
public $sourcePath = '@app/resources';
8+
9+
public $css = [
10+
'dist/css/main.css'
11+
];
12+
13+
public $depends = [
14+
'yii\web\JqueryAsset',
15+
];
16+
}

composer.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "zephir/luya-kickstarter",
3+
"description": "The kickstarter for a new luya project.",
4+
"type": "project",
5+
"license":"MIT",
6+
"minimum-stability" : "beta",
7+
"require": {
8+
"zephir/luya" : "1.0.0-beta4",
9+
"zephir/luya-module-cms" : "1.0.0-beta4",
10+
"zephir/luya-module-cmsadmin" : "1.0.0-beta4",
11+
"zephir/luya-module-admin" : "1.0.0-beta4"
12+
},
13+
"scripts": {
14+
"post-create-project-cmd": [
15+
"yii\\composer\\Installer::postCreateProject"
16+
]
17+
},
18+
"extra": {
19+
"yii\\composer\\Installer::postCreateProject": {
20+
"setPermission": [
21+
{
22+
"public_html/assets": "0777",
23+
"public_html/storage": "0777"
24+
}
25+
]
26+
},
27+
"asset-installer-paths": {
28+
"bower-asset-library": "vendor/bower"
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)