ts_assets 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+
2
+ module TsAssets
3
+ module Models
4
+ class Content
5
+ # @return [String]
6
+ attr_reader :header
7
+
8
+ # @return [String]
9
+ attr_reader :body
10
+
11
+ # @param [String] header
12
+ # @param [String] body
13
+ def initialize(header:, body:)
14
+ @header = header
15
+ @body = body
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module TsAssets
2
+ VERSION = "0.1.0"
3
+ end
data/lib/ts_assets.rb ADDED
@@ -0,0 +1,27 @@
1
+ # Copyright 2017 kenju-wagatsuma@bitjourney.com
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ require 'ts_assets/version'
15
+ require 'ts_assets/application_generator'
16
+
17
+ require 'ts_assets/generators/const_generator'
18
+ require 'ts_assets/generators/react_generator'
19
+
20
+ require 'ts_assets/models/asset_meta_info'
21
+ require 'ts_assets/models/content'
22
+
23
+ module TsAssets
24
+ def self.generate(**opts)
25
+ TsAssets::ApplicationGenerator.new(**opts).generate
26
+ end
27
+ end