ctlst 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 485fe6890c7a3e00b1506f3f3190c222a53d3cf6dcb15283948f3d1d04b8e227
4
- data.tar.gz: 1aa25920425d6f61dfb5b19c99ea83629ef1938f2fcbcb7223f9222031a62bad
3
+ metadata.gz: 5b399c7bc910c59eeb7fe8abdd19e54a795e7a39bb902c78a1093d9e80104965
4
+ data.tar.gz: 0ea85d40e3fc4c88740c0035620854204152a18943c9c9a5f87ae5287fffb67c
5
5
  SHA512:
6
- metadata.gz: 6fd99600271e8675a3f5ea6429d89cac184cb3693f7a8426d61447e45e3c002f7b15041c7c13fbf3b4589f0857e5ecb7b72f948bcd1e782635e078710fc3155b
7
- data.tar.gz: 97541b5155e1194cacf4a1d70b044af7f7a23afccff776f59232675f6b18b9db950fc15e00d3e386645ceaab74380f9bca30d627234e3405577177bea5744a89
6
+ metadata.gz: 97e8ea2a4b4bd5c535a6916044af1aa3875199ffbfebcad1e362918d91d1eb6c1b8dc040fda58c532a4ed9db13f806fbff6e727d8199e3378a7375b2ab25f2e0
7
+ data.tar.gz: 7ab935ad3c65f4567fc99101e9491432c5dd83e51986155e7006f05004cf1f381bce7df1423044f21762dcb49e0939ecd8c464699c4fe4964ccb96286303d74c
@@ -0,0 +1,4 @@
1
+ import { configure } from 'enzyme';
2
+ import Adapter from 'enzyme-adapter-react-16';
3
+
4
+ configure({ adapter: new Adapter() });
data/templates/new.rb CHANGED
@@ -22,10 +22,8 @@ module Template
22
22
  `npx create-react-app #{@project_name}`
23
23
  Dir.chdir "./#{@project_name}" do
24
24
  `git init`
25
- `npm install storybook`
26
- `npm install nock`
27
25
  `npm install isomorphic-fetch`
28
- `npm install enzyme`
26
+ `npm i --save-dev storybook@alpha nock enzyme enzyme-adapter-react-16 @storybook/react@alpha @storybook/cli@alpha`
29
27
  `storybook init`
30
28
 
31
29
  Templates.create('new', '.', binding)
@@ -1,4 +1,4 @@
1
- export default class <%= @component_class_name %> {
1
+ export default class <%= @usecase_class_name %> {
2
2
  constructor() {
3
3
 
4
4
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ctlst
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Faissal Bensefia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-21 00:00:00.000000000 Z
11
+ date: 2018-08-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ctlst (pronounced 'Catalyst') is a tool similar to the Rails CLI. It
14
14
  provides simple commands to build React project that takes advantage of clean architecture,
@@ -40,6 +40,7 @@ files:
40
40
  - templates/new/Dockerfile.erb
41
41
  - templates/new/Makefile.erb
42
42
  - templates/new/docker-compose.yml.erb
43
+ - templates/new/src/setupTests.js
43
44
  - templates/usecase.rb
44
45
  - templates/usecase/index.js.erb
45
46
  - templates/usecase/index.test.js.erb