Permalink
Browse files

Initialized all the settings

  • Loading branch information...
1 parent 383e7c9 commit d893235d55518d17ae15bd4dc28f23d97bb93441 @skyronic committed Apr 16, 2015
View
@@ -0,0 +1,3 @@
+{
+ "directory":"src/static/vendor"
+}
View
@@ -25,3 +25,12 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
+
+/vendor/
+
+.idea
+build
+bower_components
+vendor
+.idea/*
+.composer.lock
View
@@ -0,0 +1,25 @@
+module.exports = function(grunt) {
+
+ grunt.initConfig({
+ watch: {
+ },
+ copy:{
+
+ },
+ less: {
+ main: {
+ files: {
+ "src/static/build/crudkit.css": "src/static/less/crudkit.less"
+ }
+ }
+ }
+
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-less');
+
+ grunt.registerTask('default', ['']);
+
+};
View
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2015 crudkit
+Copyright (c) 2015 Anirudh Sanjeev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
@@ -0,0 +1,28 @@
+{
+ "name": "crudkit",
+ "version": "0.0.0",
+ "homepage": "https://github.com/crudkit/crudkit",
+ "authors": [
+ "Anirudh Sanjeev <skyronic@gmail.com>"
+ ],
+ "description": "PHP Admin generator",
+ "moduleType": [
+ "amd"
+ ],
+ "directory": "./vendor/bower_components",
+ "license": "MIT",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "vendor",
+ "test",
+ "tests"
+ ],
+ "dependencies": {
+ "semantic-ui": "~1.11.8",
+ "angularjs": "~1.3.15",
+ "jquery": "~2.1.1",
+ "kendo-ui-core": "*"
+ }
+}
View
@@ -0,0 +1,26 @@
+{
+ "name": "crudkit/crudkit",
+ "description": "Toolkit to quickly build powerful mobile-friendly CRUD (create/read/update/delete) interfaces for PHP, Laravel, and Codeigniter apps. Works with MySQL and other databases.",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Anirudh Sanjeev",
+ "email": "skyronic@gmail.com"
+ }
+ ],
+ "autoload": {
+ "psr-4": {
+ "CrudKit\\": "src/CrudKit/"
+ }
+ },
+ "minimum-stability": "beta",
+ "require": {
+ "doctrine/dbal": "2.6.*@dev"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "4.8.*@dev"
+ },
+ "scripts": {
+ "phpunit":"vendor/bin/phpunit"
+ }
+}
View
@@ -0,0 +1,11 @@
+<?php
+
+use CrudKit\CrudKit;
+use CrudKit\Pages\BasePage;
+
+require "../vendor/autoload.php";
+
+$crud = new CrudKit();
+$crud->addPage(new BasePage());
+
+echo $crud->say();
View
@@ -0,0 +1,29 @@
+{
+ "name": "crudkit",
+ "version": "1.0.0",
+ "description": "PHP library to generate crud interfaces. ",
+ "directories": {
+ "test": "test"
+ },
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/crudkit/crudkit.git"
+ },
+ "author": "Anirudh Sanjeev <skyronic@gmail.com>",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/crudkit/crudkit/issues"
+ },
+ "homepage": "https://github.com/crudkit/crudkit",
+ "dependencies": {
+ "bower": "^1.4.1",
+ "grunt": "^0.4.5",
+ "grunt-bower-requirejs": "^2.0.0",
+ "grunt-contrib-copy": "^0.8.0",
+ "grunt-contrib-less": "^1.0.1",
+ "grunt-contrib-watch": "^0.6.1"
+ }
+}
View
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit
+ backupGlobals="false"
+ backupStaticAttributes="false"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false"
+ bootstrap="./tests/bootstrap.php"
+ colors="true">
+
+ <testsuites>
+ <testsuite name="CrudKit test suite">
+ <directory>./tests</directory>
+ </testsuite>
+ </testsuites>
+
+ <logging>
+ <log type="junit" target="build/logs/phpunit-junit-report.xml" />
+ <log type="coverage-clover" target="build/logs/phpunit-clover-coverage.xml"/>
+ <log type="coverage-html"
+ target="build/html-coverage"
+ title="CrudKit test suite"
+ charset="UTF-8"
+ yui="true"
+ highlight="true"
+ lowUpperBound="35"
+ highLowerBound="70"
+ />
+ </logging>
+
+ <filter>
+ <whitelist>
+ <directory>./</directory>
+ <exclude>
+ <directory>tests</directory>
+ <directory>vendor</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+
+ <php>
+ <ini name="error_reporting" value="32767"/><!-- E_ALL -->
+ <ini name="display_errors" value="1" />
+ <ini name="display_startup_errors" value="1" />
+ </php>
+
+</phpunit>
@@ -0,0 +1,21 @@
+<?php
+
+namespace CrudKit;
+
+use CrudKit\Pages\BasePage;
+
+class CrudKit {
+ /**
+ * @var BasePage
+ */
+ protected $page;
+ public function addPage(BasePage $page) {
+ $this->page = $page;
+ }
+
+ public function say () {
+ $result = "Hello ".$this->page->saySomething ();
+
+ return $result;
+ }
+}
@@ -0,0 +1,9 @@
+<?php
+
+namespace CrudKit\Pages;
+
+class BasePage {
+ public function saySomething () {
+ return "World";
+ }
+}
@@ -0,0 +1,3 @@
+$(function () {
+ console.log("Hello crudkit");
+})
No changes.
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Hello CrudKit</title>
+</head>
+<body>
+
+</body>
+</html>
@@ -0,0 +1,16 @@
+<?php
+namespace CrudKitTests\Unit;
+
+use CrudKit\CrudKit;
+use CrudKit\Pages\BasePage;
+
+class CrudKitTest extends \PHPUnit_Framework_TestCase
+{
+ public function testHelloWorld()
+ {
+ $crud = new CrudKit();
+ $crud->addPage(new BasePage());
+
+ $this->assertEquals($crud->say(), "Hello World");
+ }
+}
View
@@ -0,0 +1,12 @@
+<?php
+if (!($loader = @include __DIR__ . '/../vendor/autoload.php')) {
+ exit(<<<EOT
+You need to install the project dependencies using Composer:
+$ wget http://getcomposer.org/composer.phar
+OR
+$ curl -s https://getcomposer.org/installer | php
+$ php composer.phar install
+EOT
+ );
+}
+$loader->setPsr4('CrudKitTests\\', __DIR__);

0 comments on commit d893235

Please sign in to comment.