simpacker 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +31 -2
- data/lib/simpacker/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23b7c5891f8dd786aeb87c9ffe96ffb523869165a2e7ba3f6092530f6fe555c
|
4
|
+
data.tar.gz: f9c22f0d68c5642f2f8fcb7cad20811aba7a792a0f3d461da1ee177400ffee4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84e25b65c83b399fb97fbb586d4f6bf324eeef0a93e7524a0eed978498b0f435ac56e4e3a4c16e85206f55379cd51ae685d9aa74b293840dedeb65f3b08a8e82
|
7
|
+
data.tar.gz: 7e20cd2635db6e5afeabd72c98f6a3b613236f00032be79df011fe59f771c53b2441304607f154e9bba7607322c9aa87dd4f1cd337fa09fa6241c2364e557287
|
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
language: ruby
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Simpacker
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/hokaccha/simpacker.svg?branch=master)](https://travis-ci.org/hokaccha/simpacker) [![Gem Version](https://badge.fury.io/rb/simpacker.svg)](https://badge.fury.io/rb/simpacker)
|
4
|
+
|
3
5
|
Simpacker provides the feature to integrate modern JavaScript build system with Rails, like a [webpacker](https://github.com/rails/webpacker).
|
4
6
|
|
5
7
|
## Installation
|
@@ -34,9 +36,34 @@ Run the folloing command to build JavaScript.
|
|
34
36
|
$ ./node_modules/.bin/wabpack --watch
|
35
37
|
```
|
36
38
|
|
37
|
-
##
|
39
|
+
## Examples
|
40
|
+
|
41
|
+
- Webpack settings
|
42
|
+
- [webpack-dev-server](https://github.com/hokaccha/simpacker/tree/master/example/webpack-dev-server)
|
43
|
+
- [Multiple Entry Point](https://github.com/hokaccha/simpacker/tree/master/example/multiple-entry-points)
|
44
|
+
- Languages
|
45
|
+
- [TypeScript](https://github.com/hokaccha/simpacker/tree/master/example/typescript)
|
46
|
+
- [Babel](https://github.com/hokaccha/simpacker/tree/master/example/babel)
|
47
|
+
- [Sass](https://github.com/hokaccha/simpacker/tree/master/example/sass)
|
48
|
+
- Frameworks
|
49
|
+
- [React](https://github.com/hokaccha/simpacker/tree/master/example/react)
|
50
|
+
- [Vue.js](https://github.com/hokaccha/simpacker/tree/master/example/vue)
|
51
|
+
- [Angular](https://github.com/hokaccha/simpacker/tree/master/example/angular)
|
52
|
+
- Deployment
|
53
|
+
- [CDN](https://github.com/hokaccha/simpacker/tree/master/example/asset-host)
|
54
|
+
- [Heroku](https://github.com/hokaccha/simpacker/tree/master/example/heroku)
|
55
|
+
- [Docker](https://github.com/hokaccha/simpacker/tree/master/example/docker)
|
56
|
+
- Others
|
57
|
+
- [Rails Engines](https://github.com/hokaccha/simpacker/tree/master/example/engines)
|
58
|
+
- [Parcel](https://github.com/hokaccha/simpacker/tree/master/example/parcel)
|
59
|
+
|
60
|
+
## VS. Webpacker
|
38
61
|
|
39
|
-
|
62
|
+
Webpacker is a great product that you can easily use webpack without knowing it. It also provides many useful features. The difficulty with Webpacker is that you need to configure webpack via webpacker's own DSL and webpacker.yml. If you know how to configure webpack, you need to convert it to webpacker configuration. I want to edit webpack.config.js directly!
|
63
|
+
|
64
|
+
Simpacker provides only minimal features that lookup the manifest.json output by webpack and a create script tag through javascript_pack_tag. You need to know about webpack, but there is little to know about Simpacker.
|
65
|
+
|
66
|
+
However, some useful features of Webpacker, such as yarn integrity and compilation on request, are not available in Simpacker.
|
40
67
|
|
41
68
|
## Deployment
|
42
69
|
|
@@ -47,6 +74,8 @@ $ npm install
|
|
47
74
|
$ NODE_ENV=production ./node_modules/.bin/webpack
|
48
75
|
```
|
49
76
|
|
77
|
+
See also: [CDN](https://github.com/hokaccha/simpacker/tree/master/example/asset-host), [Heroku](https://github.com/hokaccha/simpacker/tree/master/example/heroku), [Docker](https://github.com/hokaccha/simpacker/tree/master/example/docker)
|
78
|
+
|
50
79
|
## Contributing
|
51
80
|
|
52
81
|
Bug reports and pull requests are welcome on GitHub at https://github.com/hokaccha/simpacker.
|
data/lib/simpacker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuhito Hokamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -88,6 +88,7 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
91
92
|
- Gemfile
|
92
93
|
- README.md
|
93
94
|
- Rakefile
|