Permalink
Browse files

Automated commit at 2014-03-06 15:41:28 UTC by middleman-deploy 0.2.3

  • Loading branch information...
1 parent d94ac58 commit 4c59c20a1cebe4ee322978c3357eae38c1e308d5 @seratch seratch committed Mar 6, 2014
Showing with 50 additions and 49 deletions.
  1. +3 −3 documentation/assets.html
  2. +1 −1 documentation/factory-girl.html
  3. +32 −31 documentation/scaffolding.html
  4. +2 −2 documentation/view-templates.html
  5. +12 −12 index.html
@@ -84,9 +84,9 @@ <h1 id="assets-support">Assets Support</h1>
<p>First, add <code>skinny-assets</code> to libraryDependencies.</p>
<pre class="highlight plaintext">libraryDependencies ++= Seq(
- "org.skinny-framework" %% "skinny-framework" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-assets" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-test" % "1.0.0-RC6" % "test"
+ "org.skinny-framework" %% "skinny-framework" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-assets" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-test" % "1.0.0-RC7" % "test"
)
</pre>
<p>And then, add <code>AssetsController</code> to routes. Now you can easily use CoffeeScript, LESS and Sass.</p>
@@ -85,7 +85,7 @@ <h3 id="easy-to-use-fixture-tool">Easy-to-use Fixture Tool</h3>
<p>FactoryGirl is a part of Skinny ORM, so you can use FactoryGirl even in your Play2 apps!</p>
<p>Just add skinny-ORM to your apps.</p>
-<pre class="highlight plaintext">libraryDependencies += "org.skinny-framework" %% "skinny-orm" % "1.0.0-RC6"
+<pre class="highlight plaintext">libraryDependencies += "org.skinny-framework" %% "skinny-orm" % "1.0.0-RC7"
</pre>
<hr/>
@@ -103,24 +103,24 @@ <h4 id="parameters">Parameters</h4>
<li>{columnType}: (optional) Database column type. This will be embedded into DB migration file.</li>
</ul>
+<p>It&rsquo;s also possible to specify namespace for the resource:</p>
+<pre class="highlight plaintext">./skinny g scaffold:{template} {namespace} {resources} {resource} {attributes}...
+</pre>
+<ul>
+<li>{namespace}: prefix for the resource (e.g. admin.foo.bar)</li>
+</ul>
+
<hr/>
<h4 id="example-usage">Example Usage</h4>
<hr/>
-<p>Let&rsquo;s create a CRUD pages for project members!</p>
+<p>Let&rsquo;s create CRUD pages to manage project members!</p>
<hr/>
<pre class="highlight plaintext">$ ./skinny g scaffold:jade projectMembers projectMember name:String "nickname:Option[String]:varchar(32)" joinedAt:DateTime leaveAt:Option[DateTime]
-[info] Loading global plugins from /Users/seratch/.sbt/0.13/plugins
-[info] Updating {file:/Users/seratch/.sbt/0.13/plugins/}global-plugins...
-[info] Resolving org.fusesource.jansi#jansi;1.4 ...
-[info] Done updating.
-[info] Loading project definition from /home/project
-[info] Set current project to dev (in build file:/home/)
-[info] Generating /home/task/target/scala-2.10/resource_managed/main/rebel.xml.
[info] Running TaskRunner generate:scaffold:jade projectMembers projectMember name:String nickname:Option[String]:varchar(32) joinedAt:DateTime leaveAt:Option[DateTime]
*** Skinny Generator Task ***
@@ -142,30 +142,35 @@ <h4 id="example-usage">Example Usage</h4>
[success] Total time: 1 s, completed Mar 2, 2014 12:58:53 AM
</pre>
+<p>With namespace:</p>
+<pre class="highlight plaintext">$ ./skinny g scaffold:jade admin.foo members member name:String
+
+[info] Running TaskRunner generate:scaffold:jade admin.foo members member name:String
+
+ *** Skinny Generator Task ***
+
+ "src/main/scala/controller/ApplicationController.scala" skipped.
+ "src/main/scala/controller/admin/foo/MembersController.scala" created.
+ "src/main/scala/ScalatraBootstrap.scala" modified.
+ "src/test/scala/controller/admin/foo/MembersControllerSpec.scala" created.
+ "src/test/resources/factories.conf" modified.
+ "src/main/scala/model/admin/foo/Member.scala" created.
+ "src/test/scala/model/admin/foo/MemberSpec.scala" created.
+ "src/main/webapp/WEB-INF/views/admin/foo/members/_form.html.jade" created.
+ "src/main/webapp/WEB-INF/views/admin/foo/members/new.html.jade" created.
+ "src/main/webapp/WEB-INF/views/admin/foo/members/edit.html.jade" created.
+ "src/main/webapp/WEB-INF/views/admin/foo/members/index.html.jade" created.
+ "src/main/webapp/WEB-INF/views/admin/foo/members/show.html.jade" created.
+ "src/main/resources/messages.conf" modified.
+ "src/main/resources/db/migration/V20140307003617__Create_members_table.sql" created.
+
+[success] Total time: 2 s, completed Mar 7, 2014 12:36:17 AM
+</pre>
<hr/>
<p>After that, do DB migration.
<hr/></p>
<pre class="highlight plaintext">$ ./skinny db:migrate
-
-[info] Loading global plugins from /Users/seratch/.sbt/0.13/plugins
-[info] Loading project definition from /home/project
-[info] Set current project to dev (in build file:/home/)
-[info] Generating /home/task/target/scala-2.10/resource_managed/main/rebel.xml.
-[info] Running TaskRunner db:migrate
-2014-03-02 01:01:00,305 DEBUG [run-main-0] s.ConnectionPool$ [Log.scala:45] Registered connection pool : ConnectionPool(url:jdbc:h2:file:db/development, user:sa)
-Mar 02, 2014 1:01:00 AM com.googlecode.flyway.core.command.DbMigrate migrate
-INFO: Current version of schema "PUBLIC": 20140301231655
-Mar 02, 2014 1:01:00 AM com.googlecode.flyway.core.command.DbMigrate applyMigration
-INFO: Migrating schema "PUBLIC" to version 20140301231759
-Mar 02, 2014 1:01:00 AM com.googlecode.flyway.core.command.DbMigrate applyMigration
-INFO: Migrating schema "PUBLIC" to version 20140302005853
-Mar 02, 2014 1:01:00 AM com.googlecode.flyway.core.command.DbMigrate logSummary
-INFO: Successfully applied 2 migrations to schema "PUBLIC" (execution time 00:00.078s).
-2014-03-02 01:01:01,043 DEBUG [run-main-0] s.ConnectionPool$ [Log.scala:45] Registered connection pool : ConnectionPool(url:jdbc:h2:file:db/development, user:sa)
-2014-03-02 01:01:01,045 DEBUG [Thread-3] s.ConnectionPool$ [Log.scala:45] The old pool destruction started. connection pool : ConnectionPool(url:jdbc:h2:file:db/development, user:sa)
-2014-03-02 01:01:01,067 DEBUG [Thread-3] s.ConnectionPool$ [Log.scala:45] The old pool is successfully closed. connection pool : ConnectionPool(url:jdbc:h2:file:db/development, user:sa)
-[success] Total time: 2 s, completed Mar 2, 2014 1:01:01 AM
</pre>
<hr/>
@@ -248,10 +253,6 @@ <h3 id="reverse-scaffold-generator">Reverse Scaffold Generator</h3>
<p>Default SkinnyEnv is <code>development</code>. If you need specifying others, add it as the fourth parameter.</p>
<pre class="highlight plaintext">$ ./skinny g reverse-scaffold:scaml project_members projectMembers projectMember
-[info] Loading global plugins from /Users/seratch/.sbt/0.13/plugins
-[info] Loading project definition from /home/project
-[info] Set current project to dev (in build file:/home/)
-[info] Generating /home/task/target/scala-2.10/resource_managed/main/rebel.xml.
[info] Running TaskRunner generate:reverse-scaffold:scaml project_members projectMembers projectMember
*** Skinny Reverse Engineering Task ***
@@ -182,7 +182,7 @@ <h3 id="freemarker">FreeMarker</h3>
<p><a href="http://freemarker.org/">http://freemarker.org/</a></p>
<p>First, add <code>skinny-freemarker</code> to your library-dependencies.</p>
-<pre class="highlight plaintext">libraryDependencies += "org.skinny-framewrok" %% "skinny-freemarker" % "1.0.0-RC6"
+<pre class="highlight plaintext">libraryDependencies += "org.skinny-framewrok" %% "skinny-freemarker" % "1.0.0-RC7"
</pre>
<p>Mixin <code>FreeMarkerTemplateEngineFeature</code> to your controllers.</p>
<pre class="highlight java"><span class="kn">import</span> <span class="nn">skinny.controller.feature.FreeMarkerTemplateEngineFeature</span>
@@ -209,7 +209,7 @@ <h3 id="thymeleaf">Thymeleaf</h3>
<p><a href="http://www.thymeleaf.org/">http://www.thymeleaf.org/</a></p>
<p>First, add <code>skinny-thymeleaf</code> to your library-dependencies.</p>
-<pre class="highlight plaintext">libraryDependencies += "org.skinny-framewrok" %% "skinny-thymeleaf" % "1.0.0-RC6"
+<pre class="highlight plaintext">libraryDependencies += "org.skinny-framewrok" %% "skinny-thymeleaf" % "1.0.0-RC7"
</pre>
<p>Mixin <code>ThymeleafTemplateEngineFeature</code> to your controllers.</p>
<pre class="highlight java"><span class="kn">import</span> <span class="nn">skinny.controller.feature.ThymeleafTemplateEngineFeature</span>
View
@@ -112,7 +112,7 @@ <h2 id="try-skinny-framework-now!">Try Skinny Framework now!</h2>
<p>If you&rsquo;re a Windows user, don&rsquo;t worry. Use skinny.bat on cmd.exe instead.</p>
-<p><a href="https://github.com/skinny-framework/skinny-framework/releases/download/1.0.0-RC6/skinny-blank-app.zip"><img alt="Download" src="/images/blank-app-download.png" /></a></p>
+<p><a href="https://github.com/skinny-framework/skinny-framework/releases/download/1.0.0-RC7/skinny-blank-app.zip"><img alt="Download" src="/images/blank-app-download.png" /></a></p>
<p>Let&rsquo;s create our first Skinny app by using the scaffold generator.</p>
<pre class="highlight shell">./skinny g scaffold members member name:String activated:Boolean luckyNumber:Option[Long] birthday:Option[LocalDate]
@@ -160,18 +160,18 @@ <h3 id="integrating-with-existing-scalatra-apps">Integrating with existing Scala
<p>After preparing the Scalatra app, just add the following dependency to your <code>project/Build.scala</code>.</p>
<pre class="highlight plaintext">libraryDependencies ++= Seq(
- "org.skinny-framework" %% "skinny-assets" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-framework" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-task" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-test" % "1.0.0-RC6" % "test"
+ "org.skinny-framework" %% "skinny-assets" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-framework" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-task" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-test" % "1.0.0-RC7" % "test"
)
</pre>
<p>If you need only Skinny-ORM or Skinny-Validator, you can use only what you need. Even if you&rsquo;re using Play2 (or any other framework), these components are available for you as well.</p>
<pre class="highlight plaintext">libraryDependencies ++= Seq(
- "org.skinny-framework" %% "skinny-orm" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-mailer" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-standalone" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-validator" % "1.0.0-RC6"
+ "org.skinny-framework" %% "skinny-orm" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-mailer" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-standalone" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-validator" % "1.0.0-RC7"
)
</pre>
<hr/>
@@ -360,9 +360,9 @@ <h3 id="assets-support-(coffeescript,-less,-sass,-reactjs,-scala.js)">Assets Sup
<p>First, add <code>skinny-assets</code> to libraryDependencies.</p>
<pre class="highlight plaintext">libraryDependencies ++= Seq(
- "org.skinny-framework" %% "skinny-framework" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-assets" % "1.0.0-RC6",
- "org.skinny-framework" %% "skinny-test" % "1.0.0-RC6" % "test"
+ "org.skinny-framework" %% "skinny-framework" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-assets" % "1.0.0-RC7",
+ "org.skinny-framework" %% "skinny-test" % "1.0.0-RC7" % "test"
)
</pre>
<p>And then, add <code>AssetsController</code> to routes. Now you can easily use CoffeeScript, LESS and Sass.</p>

0 comments on commit 4c59c20

Please sign in to comment.