lightningcss 0.0.1 → 0.1.0

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.
@@ -0,0 +1,26 @@
1
+ # Note: This file is hand written, `rbs-inline` does not generate this file.
2
+
3
+ module LightningCSS
4
+ type browsers = {
5
+ ?android: Integer,
6
+ ?chrome: Integer,
7
+ ?edge: Integer,
8
+ ?firefox: Integer,
9
+ ?ie: Integer,
10
+ ?ios: Integer,
11
+ ?ios_saf: Integer,
12
+ ?opera: Integer,
13
+ ?safari: Integer,
14
+ ?samsung: Integer
15
+ }
16
+
17
+ type css_modules = bool | {
18
+ ?pattern: String,
19
+ ?dashed_idents: bool,
20
+ ?animation: bool,
21
+ ?grid: bool,
22
+ ?container: bool,
23
+ ?custom_idents: bool,
24
+ ?pure: bool
25
+ }
26
+ end
@@ -0,0 +1,5 @@
1
+ # Generated from lib/lightningcss/version.rb with RBS::Inline
2
+
3
+ module LightningCSS
4
+ VERSION: ::String
5
+ end
@@ -0,0 +1,31 @@
1
+ # Generated from lib/lightningcss.rb with RBS::Inline
2
+
3
+ # Ruby bindings for Lightning CSS.
4
+ #
5
+ # LightningCSS.transform(".a { color: red }", minify: true).code
6
+ # #=> ".a{color:red}"
7
+ #
8
+ # Every option is passed through to Lightning CSS as written, except `scope`, which narrows each
9
+ # rule by a selector fragment so a stylesheet only applies where that fragment matches:
10
+ #
11
+ # LightningCSS.transform(".title { color: red }", scope: "[data-scope-abc]").code
12
+ # #=> ".title[data-scope-abc]{color:red}"
13
+ #
14
+ # `LightningCSS::Options` is what the options are read by, and `LightningCSS::Transformer` holds a
15
+ # set of them to reuse across many stylesheets.
16
+ module LightningCSS
17
+ # : (String, ?filename: String?, ?minify: bool, ?error_recovery: bool, ?targets: browsers?, ?css_modules: css_modules?, ?scope: String?) -> LightningCSS::Result
18
+ def self.transform: (String, ?filename: String?, ?minify: bool, ?error_recovery: bool, ?targets: browsers?, ?css_modules: css_modules?, ?scope: String?) -> LightningCSS::Result
19
+
20
+ # : (String, ?filename: String?, ?minify: bool, ?error_recovery: bool, ?targets: browsers?, ?css_modules: css_modules?, ?scope: String?) -> LightningCSS::Result
21
+ def self.bundle: (String, ?filename: String?, ?minify: bool, ?error_recovery: bool, ?targets: browsers?, ?css_modules: css_modules?, ?scope: String?) -> LightningCSS::Result
22
+
23
+ # : (String, ?filename: String?, ?minify: bool, ?error_recovery: bool, ?targets: browsers?) -> LightningCSS::Result
24
+ def self.transform_style_attribute: (String, ?filename: String?, ?minify: bool, ?error_recovery: bool, ?targets: browsers?) -> LightningCSS::Result
25
+
26
+ # : (String, ?filename: String?, ?error_recovery: bool, ?targets: browsers?, ?css_modules: css_modules?, ?scope: String?) -> String
27
+ def self.minify: (String, ?filename: String?, ?error_recovery: bool, ?targets: browsers?, ?css_modules: css_modules?, ?scope: String?) -> String
28
+
29
+ # : () -> String
30
+ def self.native_version: () -> String
31
+ end
metadata CHANGED
@@ -1,27 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightningcss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth
8
- bindir: exe
8
+ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
- description: LightningCSS for Ruby
12
+ description: Ruby bindings for Lightning CSS, an extremely fast CSS parser, transformer,
13
+ bundler, and minifier.
13
14
  email:
14
15
  - marco.roth@intergga.ch
15
16
  executables: []
16
- extensions: []
17
+ extensions:
18
+ - ext/lightningcss/extconf.rb
17
19
  extra_rdoc_files: []
18
- files: []
19
- homepage: https://github.com/marcoroth/lightningcss
20
- licenses: []
20
+ files:
21
+ - LICENSE.txt
22
+ - README.md
23
+ - ext/lightningcss/extconf.rb
24
+ - ext/lightningcss/include/lightningcss.h
25
+ - ext/lightningcss/lightningcss.c
26
+ - lib/lightningcss.rb
27
+ - lib/lightningcss/backend.rb
28
+ - lib/lightningcss/errors.rb
29
+ - lib/lightningcss/options.rb
30
+ - lib/lightningcss/result.rb
31
+ - lib/lightningcss/transformer.rb
32
+ - lib/lightningcss/version.rb
33
+ - licenses/README.md
34
+ - licenses/lightningcss-MPL-2.0.txt
35
+ - lightningcss.gemspec
36
+ - rust/Cargo.lock
37
+ - rust/Cargo.toml
38
+ - rust/build.rs
39
+ - rust/cbindgen.toml
40
+ - rust/rustfmt.toml
41
+ - rust/src/lib.rs
42
+ - rust/src/options.rs
43
+ - rust/src/scope.rs
44
+ - sig/lightningcss.rbs
45
+ - sig/lightningcss/backend.rbs
46
+ - sig/lightningcss/errors.rbs
47
+ - sig/lightningcss/options.rbs
48
+ - sig/lightningcss/result.rbs
49
+ - sig/lightningcss/transformer.rbs
50
+ - sig/lightningcss/types.rbs
51
+ - sig/lightningcss/version.rbs
52
+ homepage: https://github.com/marcoroth/lightningcss-ruby
53
+ licenses:
54
+ - MIT
21
55
  metadata:
22
- homepage_uri: https://github.com/marcoroth/lightningcss
23
- source_code_uri: https://github.com/marcoroth/lightningcss
24
- changelog_uri: https://github.com/marcoroth/lightningcss/rleases
56
+ homepage_uri: https://github.com/marcoroth/lightningcss-ruby
57
+ source_code_uri: https://github.com/marcoroth/lightningcss-ruby
58
+ changelog_uri: https://github.com/marcoroth/lightningcss-ruby/releases
25
59
  rubygems_mfa_required: 'true'
26
60
  rdoc_options: []
27
61
  require_paths:
@@ -39,5 +73,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
73
  requirements: []
40
74
  rubygems_version: 4.0.16
41
75
  specification_version: 4
42
- summary: LightningCSS for Ruby
76
+ summary: An extremely fast CSS parser, transformer, bundler, and minifier.
43
77
  test_files: []