webpacker-svelte 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 367ec4a01cb5378b9fc6eb159b4078d4d642d59b853d9fb8dda65a9c3e11c15f
4
+ data.tar.gz: e7801b82d78d0e9aa494b875e183deefc1476e0d4f5563325ded4ef3768ebd10
5
+ SHA512:
6
+ metadata.gz: cb0a7d64022715e25ed594e8f58937c0fb35ebbce055c6f45d0b34eea98624f60f759e0840e60f4317b90367d11accf60281d57653b0b0c3c784b60df26b6673
7
+ data.tar.gz: 0d94da959a590b3d7030f2e3c568d7cdc5d43155e3b252a5f720d5c695c41346128354184615325a99fa2c65e8eccb81ebcb2e2a9bfbf1c2018f743513fe2f17
@@ -0,0 +1,32 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ working_directory: ~/webpacker-svelte
5
+ docker:
6
+ - image: circleci/ruby:2.4.3-node-browsers
7
+ environment:
8
+ RAILS_ENV: test
9
+ steps:
10
+ - checkout
11
+
12
+ # Install dependencies
13
+ - run:
14
+ name: bundle install
15
+ command: bundle install --path=vendor/bundle --jobs=4 --retry=3
16
+ - run:
17
+ command: yarn
18
+ pwd: javascript/webpacker_svelte-npm-module
19
+ - run:
20
+ command: yarn
21
+ pwd: javascript/webpacker_svelte-npm-module/dist
22
+
23
+ # Lint
24
+ - run:
25
+ command: yarn lint
26
+ pwd: javascript/webpacker_svelte-npm-module
27
+ - run:
28
+ command: bundle exec rubocop
29
+
30
+ # Tests
31
+ - run:
32
+ command: bundle exec rake test
@@ -0,0 +1,9 @@
1
+ Fixes # .
2
+
3
+ Changes:
4
+
5
+ Please ensure that:
6
+ - [ ] Changelog is updated if not a minor patch
7
+ - [ ] Ruby linting is ok: `rubocop` is all green
8
+ - [ ] Javascript linting is ok: `cd javascript/webpacker_svelte-npm-module/ && yarn lint` is all green
9
+ - [ ] [Tests](https://github.com/will-wow/webpacker-svelte#testing) are all green
@@ -0,0 +1,18 @@
1
+ node_modules/
2
+ /.bundle/
3
+ /.yardoc
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ /javascript/webpacker_svelte-npm-module/dist/*.js
12
+
13
+ test/example_app/log/*
14
+ test/example_app/tmp/*
15
+ test/example_app/public/packs
16
+ test/example_app/public/packs-test
17
+
18
+ .rvmrc
@@ -0,0 +1,119 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+ # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
4
+ # to ignore them, so only the ones explicitly set in this file are enabled.
5
+ DisabledByDefault: true
6
+ Exclude:
7
+ - '**/node_modules/**/*'
8
+ - '**/vendor/**/*'
9
+
10
+ # Prefer &&/|| over and/or.
11
+ Style/AndOr:
12
+ Enabled: true
13
+
14
+ # Do not use braces for hash literals when they are the last argument of a
15
+ # method call.
16
+ Style/BracesAroundHashParameters:
17
+ Enabled: true
18
+
19
+ # Align `when` with `case`.
20
+ Layout/CaseIndentation:
21
+ Enabled: true
22
+
23
+ # Align comments with method definitions.
24
+ Layout/CommentIndentation:
25
+ Enabled: true
26
+
27
+ # No extra empty lines.
28
+ Layout/EmptyLines:
29
+ Enabled: true
30
+
31
+ # In a regular class definition, no empty lines around the body.
32
+ Layout/EmptyLinesAroundClassBody:
33
+ Enabled: true
34
+
35
+ # In a regular module definition, no empty lines around the body.
36
+ Layout/EmptyLinesAroundModuleBody:
37
+ Enabled: true
38
+
39
+ # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
40
+ Style/HashSyntax:
41
+ Enabled: true
42
+
43
+ # Method definitions after `private` or `protected` isolated calls need one
44
+ # extra level of indentation.
45
+ Layout/IndentationConsistency:
46
+ Enabled: true
47
+ EnforcedStyle: indented_internal_methods
48
+
49
+ # Two spaces, no tabs (for indentation).
50
+ Layout/IndentationWidth:
51
+ Enabled: true
52
+
53
+ Layout/SpaceAfterColon:
54
+ Enabled: true
55
+
56
+ Layout/SpaceAfterComma:
57
+ Enabled: true
58
+
59
+ Layout/SpaceAroundEqualsInParameterDefault:
60
+ Enabled: true
61
+
62
+ Layout/SpaceAroundKeyword:
63
+ Enabled: true
64
+
65
+ Layout/SpaceAroundOperators:
66
+ Enabled: true
67
+
68
+ Layout/SpaceBeforeFirstArg:
69
+ Enabled: true
70
+
71
+ # Defining a method with parameters needs parentheses.
72
+ Style/MethodDefParentheses:
73
+ Enabled: true
74
+
75
+ # Use `foo {}` not `foo{}`.
76
+ Layout/SpaceBeforeBlockBraces:
77
+ Enabled: true
78
+
79
+ # Use `foo { bar }` not `foo {bar}`.
80
+ Layout/SpaceInsideBlockBraces:
81
+ Enabled: true
82
+
83
+ # Use `{ a: 1 }` not `{a:1}`.
84
+ Layout/SpaceInsideHashLiteralBraces:
85
+ Enabled: true
86
+
87
+ Layout/SpaceInsideParens:
88
+ Enabled: true
89
+
90
+ # Check quotes usage according to lint rule below.
91
+ Style/StringLiterals:
92
+ Enabled: true
93
+ EnforcedStyle: double_quotes
94
+
95
+ # Detect hard tabs, no hard tabs.
96
+ Layout/Tab:
97
+ Enabled: true
98
+
99
+ # Blank lines should not have any spaces.
100
+ Layout/TrailingBlankLines:
101
+ Enabled: true
102
+
103
+ # No trailing whitespace.
104
+ Layout/TrailingWhitespace:
105
+ Enabled: true
106
+
107
+ # Use quotes for string literals when they are enough.
108
+ Style/UnneededPercentQ:
109
+ Enabled: true
110
+
111
+ # Align `end` with the matching keyword or starting expression except for
112
+ # assignments, where it should be aligned with the LHS.
113
+ Lint/EndAlignment:
114
+ Enabled: true
115
+ EnforcedStyleAlignWith: variable
116
+
117
+ # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
118
+ Lint/RequireParentheses:
119
+ Enabled: true
@@ -0,0 +1,14 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.0.0]
11
+
12
+ ### Added
13
+
14
+ - Ported over from [webpacker-react](https://github.com/renchap/webpacker-react)
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project maintainer at will.ockelmann.wagner@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rubocop", ">= 0.47", require: false
4
+ gem "rails", "~> 5.2.0"
5
+ gem "webpacker", "~> 4.0.0"
6
+ gem "puma", "~> 4.0"
7
+
8
+ # Specify your gem's dependencies in webpacker-svelte.gemspec
9
+ gemspec
@@ -0,0 +1,177 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ webpacker-svelte (0.0.0)
5
+ webpacker
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.2.3)
11
+ actionpack (= 5.2.3)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailer (5.2.3)
15
+ actionpack (= 5.2.3)
16
+ actionview (= 5.2.3)
17
+ activejob (= 5.2.3)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.2.3)
21
+ actionview (= 5.2.3)
22
+ activesupport (= 5.2.3)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.2.3)
28
+ activesupport (= 5.2.3)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.2.3)
34
+ activesupport (= 5.2.3)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.2.3)
37
+ activesupport (= 5.2.3)
38
+ activerecord (5.2.3)
39
+ activemodel (= 5.2.3)
40
+ activesupport (= 5.2.3)
41
+ arel (>= 9.0)
42
+ activestorage (5.2.3)
43
+ actionpack (= 5.2.3)
44
+ activerecord (= 5.2.3)
45
+ marcel (~> 0.3.1)
46
+ activesupport (5.2.3)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (>= 0.7, < 2)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ addressable (2.6.0)
52
+ public_suffix (>= 2.0.2, < 4.0)
53
+ arel (9.0.0)
54
+ ast (2.4.0)
55
+ builder (3.2.3)
56
+ capybara (3.25.0)
57
+ addressable
58
+ mini_mime (>= 0.1.3)
59
+ nokogiri (~> 1.8)
60
+ rack (>= 1.6.0)
61
+ rack-test (>= 0.6.3)
62
+ regexp_parser (~> 1.5)
63
+ xpath (~> 3.2)
64
+ childprocess (1.0.1)
65
+ rake (< 13.0)
66
+ concurrent-ruby (1.1.5)
67
+ crass (1.0.4)
68
+ erubi (1.8.0)
69
+ globalid (0.4.2)
70
+ activesupport (>= 4.2.0)
71
+ i18n (1.6.0)
72
+ concurrent-ruby (~> 1.0)
73
+ jaro_winkler (1.5.3)
74
+ loofah (2.2.3)
75
+ crass (~> 1.0.2)
76
+ nokogiri (>= 1.5.9)
77
+ mail (2.7.1)
78
+ mini_mime (>= 0.1.1)
79
+ marcel (0.3.3)
80
+ mimemagic (~> 0.3.2)
81
+ method_source (0.9.2)
82
+ mimemagic (0.3.3)
83
+ mini_mime (1.0.2)
84
+ mini_portile2 (2.4.0)
85
+ minitest (5.11.3)
86
+ nio4r (2.4.0)
87
+ nokogiri (1.10.3)
88
+ mini_portile2 (~> 2.4.0)
89
+ parallel (1.17.0)
90
+ parser (2.6.3.0)
91
+ ast (~> 2.4.0)
92
+ public_suffix (3.1.1)
93
+ puma (4.0.0)
94
+ nio4r (~> 2.0)
95
+ rack (2.0.7)
96
+ rack-proxy (0.6.5)
97
+ rack
98
+ rack-test (1.1.0)
99
+ rack (>= 1.0, < 3)
100
+ rails (5.2.3)
101
+ actioncable (= 5.2.3)
102
+ actionmailer (= 5.2.3)
103
+ actionpack (= 5.2.3)
104
+ actionview (= 5.2.3)
105
+ activejob (= 5.2.3)
106
+ activemodel (= 5.2.3)
107
+ activerecord (= 5.2.3)
108
+ activestorage (= 5.2.3)
109
+ activesupport (= 5.2.3)
110
+ bundler (>= 1.3.0)
111
+ railties (= 5.2.3)
112
+ sprockets-rails (>= 2.0.0)
113
+ rails-dom-testing (2.0.3)
114
+ activesupport (>= 4.2.0)
115
+ nokogiri (>= 1.6)
116
+ rails-html-sanitizer (1.0.4)
117
+ loofah (~> 2.2, >= 2.2.2)
118
+ railties (5.2.3)
119
+ actionpack (= 5.2.3)
120
+ activesupport (= 5.2.3)
121
+ method_source
122
+ rake (>= 0.8.7)
123
+ thor (>= 0.19.0, < 2.0)
124
+ rainbow (3.0.0)
125
+ rake (12.3.2)
126
+ regexp_parser (1.5.1)
127
+ rubocop (0.72.0)
128
+ jaro_winkler (~> 1.5.1)
129
+ parallel (~> 1.10)
130
+ parser (>= 2.6)
131
+ rainbow (>= 2.2.2, < 4.0)
132
+ ruby-progressbar (~> 1.7)
133
+ unicode-display_width (>= 1.4.0, < 1.7)
134
+ ruby-progressbar (1.10.1)
135
+ rubyzip (1.2.3)
136
+ selenium-webdriver (3.142.3)
137
+ childprocess (>= 0.5, < 2.0)
138
+ rubyzip (~> 1.2, >= 1.2.2)
139
+ sprockets (3.7.2)
140
+ concurrent-ruby (~> 1.0)
141
+ rack (> 1, < 3)
142
+ sprockets-rails (3.2.1)
143
+ actionpack (>= 4.0)
144
+ activesupport (>= 4.0)
145
+ sprockets (>= 3.0.0)
146
+ thor (0.20.3)
147
+ thread_safe (0.3.6)
148
+ tzinfo (1.2.5)
149
+ thread_safe (~> 0.1)
150
+ unicode-display_width (1.6.0)
151
+ webpacker (4.0.7)
152
+ activesupport (>= 4.2)
153
+ rack-proxy (>= 0.6.1)
154
+ railties (>= 4.2)
155
+ websocket-driver (0.7.1)
156
+ websocket-extensions (>= 0.1.0)
157
+ websocket-extensions (0.1.4)
158
+ xpath (3.2.0)
159
+ nokogiri (~> 1.8)
160
+
161
+ PLATFORMS
162
+ ruby
163
+
164
+ DEPENDENCIES
165
+ bundler (~> 1.13)
166
+ capybara
167
+ minitest (~> 5.0)
168
+ puma (~> 4.0)
169
+ rails (~> 5.2.0)
170
+ rake (~> 12.0)
171
+ rubocop (>= 0.47)
172
+ selenium-webdriver
173
+ webpacker (~> 4.0.0)
174
+ webpacker-svelte!
175
+
176
+ BUNDLED WITH
177
+ 1.17.2