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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +74 -0
- data/.gitignore +12 -40
- data/CHANGELOG.md +6 -0
- data/Gemfile +4 -0
- data/LICENSE +1 -24
- data/README.md +134 -1
- data/Rakefile +13 -0
- data/__tests__/assets/images/svg/ruby-icon.svg +1 -0
- data/__tests__/assets/images/webhook/slack_icon@1x.png +0 -0
- data/__tests__/assets/images/webhook/slack_icon@2x.png +0 -0
- data/__tests__/build/.gitkeep +0 -0
- data/__tests__/ts_assets_spec.tsx +39 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/ts_assets/application_generator.rb +58 -0
- data/lib/ts_assets/generators/const_generator.rb +29 -0
- data/lib/ts_assets/generators/react_generator.rb +88 -0
- data/lib/ts_assets/models/asset_meta_info.rb +85 -0
- data/lib/ts_assets/models/content.rb +19 -0
- data/lib/ts_assets/version.rb +3 -0
- data/lib/ts_assets.rb +27 -0
- data/package-lock.json +3026 -0
- data/package.json +53 -0
- data/ts_assets.gemspec +32 -0
- data/tsconfig.json +16 -0
- data/tslint.json +12 -0
- metadata +75 -10
@@ -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
|
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
|