rocket_cms 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +74 -58
- data/lib/generators/rocket_cms/templates/.babelrc +17 -6
- data/lib/generators/rocket_cms/templates/package.json +28 -42
- data/lib/generators/rocket_cms/templates/postcss.config.js +5 -0
- data/lib/generators/rocket_cms/templates/webpack.config.js +74 -86
- data/lib/rocket_cms/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99f28386f0c25e7b5b4130753a92cbd67879a73103731cfc7ee7becbb5f51b56
|
4
|
+
data.tar.gz: 4b40826b97201fac4d6e135b7626840b191ce27b196f3c2eae488ad47907ad06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64a1c82f6fdd78704826efcf596168a8d8307b5d000cf7fc615f6f2a20aa595df4d8768b3d70a8f3a89293dcdc1beb8641ed42f253086b1e7337133c91ba0bd1
|
7
|
+
data.tar.gz: 8b02db625b5ce810e9b14fe92b2048e00c78f759c940bed48916abe8481932d91fcc4aeeb74daeac8579d9564d4c11ccb7a0d20383aabe06b2b5f7109e5e1cf3
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rocket_cms (0.
|
4
|
+
rocket_cms (0.30.0)
|
5
5
|
addressable
|
6
6
|
coffee-rails
|
7
7
|
jquery-rails
|
@@ -16,50 +16,63 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
18
18
|
specs:
|
19
|
-
actioncable (
|
20
|
-
actionpack (=
|
19
|
+
actioncable (6.0.1)
|
20
|
+
actionpack (= 6.0.1)
|
21
21
|
nio4r (~> 2.0)
|
22
22
|
websocket-driver (>= 0.6.1)
|
23
|
-
|
24
|
-
actionpack (=
|
25
|
-
|
26
|
-
|
23
|
+
actionmailbox (6.0.1)
|
24
|
+
actionpack (= 6.0.1)
|
25
|
+
activejob (= 6.0.1)
|
26
|
+
activerecord (= 6.0.1)
|
27
|
+
activestorage (= 6.0.1)
|
28
|
+
activesupport (= 6.0.1)
|
29
|
+
mail (>= 2.7.1)
|
30
|
+
actionmailer (6.0.1)
|
31
|
+
actionpack (= 6.0.1)
|
32
|
+
actionview (= 6.0.1)
|
33
|
+
activejob (= 6.0.1)
|
27
34
|
mail (~> 2.5, >= 2.5.4)
|
28
35
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (
|
30
|
-
actionview (=
|
31
|
-
activesupport (=
|
36
|
+
actionpack (6.0.1)
|
37
|
+
actionview (= 6.0.1)
|
38
|
+
activesupport (= 6.0.1)
|
32
39
|
rack (~> 2.0)
|
33
40
|
rack-test (>= 0.6.3)
|
34
41
|
rails-dom-testing (~> 2.0)
|
35
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
36
|
-
|
37
|
-
|
42
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
43
|
+
actiontext (6.0.1)
|
44
|
+
actionpack (= 6.0.1)
|
45
|
+
activerecord (= 6.0.1)
|
46
|
+
activestorage (= 6.0.1)
|
47
|
+
activesupport (= 6.0.1)
|
48
|
+
nokogiri (>= 1.8.5)
|
49
|
+
actionview (6.0.1)
|
50
|
+
activesupport (= 6.0.1)
|
38
51
|
builder (~> 3.1)
|
39
52
|
erubi (~> 1.4)
|
40
53
|
rails-dom-testing (~> 2.0)
|
41
|
-
rails-html-sanitizer (~> 1.
|
42
|
-
activejob (
|
43
|
-
activesupport (=
|
54
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
55
|
+
activejob (6.0.1)
|
56
|
+
activesupport (= 6.0.1)
|
44
57
|
globalid (>= 0.3.6)
|
45
|
-
activemodel (
|
46
|
-
activesupport (=
|
47
|
-
activerecord (
|
48
|
-
activemodel (=
|
49
|
-
activesupport (=
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
activerecord (=
|
58
|
+
activemodel (6.0.1)
|
59
|
+
activesupport (= 6.0.1)
|
60
|
+
activerecord (6.0.1)
|
61
|
+
activemodel (= 6.0.1)
|
62
|
+
activesupport (= 6.0.1)
|
63
|
+
activestorage (6.0.1)
|
64
|
+
actionpack (= 6.0.1)
|
65
|
+
activejob (= 6.0.1)
|
66
|
+
activerecord (= 6.0.1)
|
54
67
|
marcel (~> 0.3.1)
|
55
|
-
activesupport (
|
68
|
+
activesupport (6.0.1)
|
56
69
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
57
70
|
i18n (>= 0.7, < 2)
|
58
71
|
minitest (~> 5.1)
|
59
72
|
tzinfo (~> 1.1)
|
60
|
-
|
61
|
-
|
62
|
-
|
73
|
+
zeitwerk (~> 2.2)
|
74
|
+
addressable (2.7.0)
|
75
|
+
public_suffix (>= 2.0.2, < 5.0)
|
63
76
|
builder (3.2.3)
|
64
77
|
coffee-rails (5.0.0)
|
65
78
|
coffee-script (>= 2.2.0)
|
@@ -69,13 +82,13 @@ GEM
|
|
69
82
|
execjs
|
70
83
|
coffee-script-source (1.12.2)
|
71
84
|
concurrent-ruby (1.1.5)
|
72
|
-
crass (1.0.
|
73
|
-
erubi (1.
|
85
|
+
crass (1.0.5)
|
86
|
+
erubi (1.9.0)
|
74
87
|
execjs (2.7.0)
|
75
88
|
globalid (0.4.2)
|
76
89
|
activesupport (>= 4.2.0)
|
77
90
|
htmlentities (4.3.4)
|
78
|
-
i18n (1.
|
91
|
+
i18n (1.7.0)
|
79
92
|
concurrent-ruby (~> 1.0)
|
80
93
|
jquery-rails (4.3.5)
|
81
94
|
rails-dom-testing (>= 1, < 3)
|
@@ -93,7 +106,7 @@ GEM
|
|
93
106
|
activerecord
|
94
107
|
kaminari-core (= 1.1.1)
|
95
108
|
kaminari-core (1.1.1)
|
96
|
-
loofah (2.
|
109
|
+
loofah (2.3.1)
|
97
110
|
crass (~> 1.0.2)
|
98
111
|
nokogiri (>= 1.5.9)
|
99
112
|
mail (2.7.1)
|
@@ -104,45 +117,47 @@ GEM
|
|
104
117
|
mimemagic (~> 0.3.2)
|
105
118
|
method_source (0.9.2)
|
106
119
|
mimemagic (0.3.3)
|
107
|
-
mini_mime (1.0.
|
120
|
+
mini_mime (1.0.2)
|
108
121
|
mini_portile2 (2.4.0)
|
109
|
-
minitest (5.
|
110
|
-
nio4r (2.
|
111
|
-
nokogiri (1.10.
|
122
|
+
minitest (5.13.0)
|
123
|
+
nio4r (2.5.2)
|
124
|
+
nokogiri (1.10.5)
|
112
125
|
mini_portile2 (~> 2.4.0)
|
113
|
-
public_suffix (
|
126
|
+
public_suffix (4.0.1)
|
114
127
|
rack (2.0.7)
|
115
128
|
rack-test (1.1.0)
|
116
129
|
rack (>= 1.0, < 3)
|
117
|
-
rails (
|
118
|
-
actioncable (=
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
130
|
+
rails (6.0.1)
|
131
|
+
actioncable (= 6.0.1)
|
132
|
+
actionmailbox (= 6.0.1)
|
133
|
+
actionmailer (= 6.0.1)
|
134
|
+
actionpack (= 6.0.1)
|
135
|
+
actiontext (= 6.0.1)
|
136
|
+
actionview (= 6.0.1)
|
137
|
+
activejob (= 6.0.1)
|
138
|
+
activemodel (= 6.0.1)
|
139
|
+
activerecord (= 6.0.1)
|
140
|
+
activestorage (= 6.0.1)
|
141
|
+
activesupport (= 6.0.1)
|
127
142
|
bundler (>= 1.3.0)
|
128
|
-
railties (=
|
143
|
+
railties (= 6.0.1)
|
129
144
|
sprockets-rails (>= 2.0.0)
|
130
145
|
rails-dom-testing (2.0.3)
|
131
146
|
activesupport (>= 4.2.0)
|
132
147
|
nokogiri (>= 1.6)
|
133
|
-
rails-html-sanitizer (1.0
|
134
|
-
loofah (~> 2.
|
135
|
-
railties (
|
136
|
-
actionpack (=
|
137
|
-
activesupport (=
|
148
|
+
rails-html-sanitizer (1.3.0)
|
149
|
+
loofah (~> 2.3)
|
150
|
+
railties (6.0.1)
|
151
|
+
actionpack (= 6.0.1)
|
152
|
+
activesupport (= 6.0.1)
|
138
153
|
method_source
|
139
154
|
rake (>= 0.8.7)
|
140
|
-
thor (>= 0.
|
141
|
-
rake (
|
142
|
-
smart_excerpt (0.1.
|
155
|
+
thor (>= 0.20.3, < 2.0)
|
156
|
+
rake (13.0.1)
|
157
|
+
smart_excerpt (0.1.6)
|
143
158
|
activesupport
|
144
159
|
htmlentities
|
145
|
-
sprockets (
|
160
|
+
sprockets (4.0.0)
|
146
161
|
concurrent-ruby (~> 1.0)
|
147
162
|
rack (> 1, < 3)
|
148
163
|
sprockets-rails (3.2.1)
|
@@ -159,6 +174,7 @@ GEM
|
|
159
174
|
websocket-driver (0.7.1)
|
160
175
|
websocket-extensions (>= 0.1.0)
|
161
176
|
websocket-extensions (0.1.4)
|
177
|
+
zeitwerk (2.2.1)
|
162
178
|
|
163
179
|
PLATFORMS
|
164
180
|
ruby
|
@@ -1,8 +1,19 @@
|
|
1
1
|
{
|
2
|
-
"presets": [
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
"presets": [
|
3
|
+
["@babel/env", {
|
4
|
+
"targets": {
|
5
|
+
"browsers": ["last 2 versions", "ie >= 11"]
|
6
|
+
},
|
7
|
+
"corejs": 3,
|
8
|
+
"useBuiltIns": "entry"
|
9
|
+
}]
|
10
|
+
//, "@babel/react"
|
11
|
+
],
|
12
|
+
"plugins": [
|
13
|
+
//["@babel/plugin-transform-react-jsx", { "pragma":"h" }],
|
14
|
+
"@babel/plugin-proposal-function-bind",
|
15
|
+
"@babel/plugin-syntax-dynamic-import",
|
16
|
+
["@babel/plugin-proposal-class-properties", { "loose": false }],
|
17
|
+
"@babel/plugin-transform-runtime"
|
18
|
+
]
|
8
19
|
}
|
@@ -4,51 +4,37 @@
|
|
4
4
|
"license": "UNLICENSED",
|
5
5
|
"private": true,
|
6
6
|
"repository": "git@rscz.ru:rocket-science/<%= app_name.downcase %>.git",
|
7
|
-
"scripts": {
|
8
|
-
"start": "./node_modules/.bin/webpack-dev-server --config config/webpack.config.js --hot --inline"
|
9
|
-
},
|
10
7
|
"dependencies": {
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"babel-
|
14
|
-
"babel-
|
15
|
-
"babel
|
16
|
-
"babel-
|
17
|
-
"babel-
|
18
|
-
"
|
19
|
-
"babel-
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"css-loader": "^
|
24
|
-
"
|
25
|
-
"file-loader": "^
|
8
|
+
"@babel/core": "^7.0.0",
|
9
|
+
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
10
|
+
"@babel/plugin-proposal-function-bind": "^7.0.0",
|
11
|
+
"@babel/plugin-transform-runtime": "^7.7.4",
|
12
|
+
"@babel/polyfill": "^7.0.0",
|
13
|
+
"@babel/preset-env": "^7.0.0",
|
14
|
+
"@babel/preset-react": "^7.0.0",
|
15
|
+
"autoprefixer": "^9.3.1",
|
16
|
+
"babel-loader": "^8.0.2",
|
17
|
+
"compression-webpack-plugin": "^3.0.0",
|
18
|
+
"core-js": "3",
|
19
|
+
"css-hot-loader": "^1.3.6",
|
20
|
+
"css-loader": "^3.2.0",
|
21
|
+
"extract-css-chunks-webpack-plugin": "^4.6.0",
|
22
|
+
"file-loader": "^4.3.0",
|
26
23
|
"html-loader": "^0.5.5",
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"lodash-es": "^4.17.5",
|
30
|
-
"mini-css-extract-plugin": "^0.4.0",
|
31
|
-
"node-sass": "^4.7.2",
|
32
|
-
"normalize.css": "^8.0.0",
|
33
|
-
"popper.js": "^1.14.3",
|
24
|
+
"node-sass": "^4.0.0",
|
25
|
+
"normalize.css": "^8.0.1",
|
34
26
|
"postcss-functions": "^3.0.0",
|
35
|
-
"postcss-loader": "^
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"stats-webpack-plugin": "^0.6.2",
|
41
|
-
"style-loader": "^0.21.0",
|
42
|
-
"svg-inline-loader": "^0.8.0",
|
43
|
-
"turbolinks": "^5.1.1",
|
44
|
-
"url-loader": "^1.0.1",
|
45
|
-
"vue": "^2.5.15",
|
46
|
-
"vue-loader": "^15.2.1",
|
47
|
-
"vue-template-compiler": "^2.5.15",
|
48
|
-
"webpack": "^4.1.1",
|
27
|
+
"postcss-loader": "^3.0.0",
|
28
|
+
"sass-loader": "^8.0.0",
|
29
|
+
"style-loader": "^1.0.0",
|
30
|
+
"url-loader": "^2.3.0",
|
31
|
+
"webpack": "^4.25.1",
|
49
32
|
"webpack-cli": "^3.1.2",
|
50
|
-
"webpack-dev-server": "^3.1.
|
51
|
-
"webpack-
|
52
|
-
|
33
|
+
"webpack-dev-server": "^3.1.10",
|
34
|
+
"webpack-manifest-plugin": "^2.0.4"
|
35
|
+
},
|
36
|
+
"scripts": {
|
37
|
+
"build": "webpack --config config/webpack.config.js",
|
38
|
+
"start": "webpack-dev-server --config config/webpack.config.js --hot --inline"
|
53
39
|
}
|
54
40
|
}
|
@@ -4,91 +4,76 @@ var path = require('path');
|
|
4
4
|
var webpack = require('webpack');
|
5
5
|
var ManifestPlugin = require('webpack-manifest-plugin');
|
6
6
|
|
7
|
-
var MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
8
7
|
var autoprefixer = require('autoprefixer');
|
9
8
|
var CompressionPlugin = require("compression-webpack-plugin");
|
10
9
|
|
11
10
|
var host = process.env.HOST || 'localhost'
|
12
|
-
var devServerPort =
|
11
|
+
var devServerPort = 3808;
|
13
12
|
|
14
13
|
var production = process.env.NODE_ENV === 'production';
|
15
14
|
|
16
|
-
const
|
17
|
-
filename: production ? "[name].[chunkhash].css" : "[name].css",
|
18
|
-
});
|
15
|
+
const ExtractCssChunks = require("extract-css-chunks-webpack-plugin")
|
19
16
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
{
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
{
|
33
|
-
loader: "css-loader",
|
34
|
-
options: {
|
35
|
-
sourceMap: true
|
36
|
-
}
|
37
|
-
}, {
|
38
|
-
loader: "sass-loader",
|
39
|
-
options: {
|
40
|
-
sourceMap: true
|
17
|
+
class CleanUpExtractCssChunks {
|
18
|
+
shouldPickStatChild(child) {
|
19
|
+
return child.name.indexOf('extract-css-chunks-webpack-plugin') !== 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
apply(compiler) {
|
23
|
+
compiler.hooks.done.tap('CleanUpExtractCssChunks', (stats) => {
|
24
|
+
const children = stats.compilation.children;
|
25
|
+
if (Array.isArray(children)) {
|
26
|
+
// eslint-disable-next-line no-param-reassign
|
27
|
+
stats.compilation.children = children
|
28
|
+
.filter(child => this.shouldPickStatChild(child));
|
41
29
|
}
|
42
|
-
}
|
43
|
-
|
30
|
+
});
|
31
|
+
}
|
44
32
|
}
|
45
|
-
|
46
33
|
var config = {
|
34
|
+
//stats: { children: false },
|
47
35
|
mode: production ? "production" : "development",
|
48
36
|
entry: {
|
49
|
-
// Sources are expected to live in $app_root
|
50
|
-
//vendor: [],
|
37
|
+
// Sources are expected to live in $app_root/webpack
|
51
38
|
application: 'application.es6',
|
52
39
|
},
|
53
40
|
|
54
41
|
module: {
|
55
42
|
rules: [
|
43
|
+
{ test: /\.es6$/, use: "babel-loader" },
|
44
|
+
{ test: /\.jsx$/, use: "babel-loader" },
|
45
|
+
//{ test: /react-select\/src/, use: "babel-loader" },
|
46
|
+
{ test: /\.(jpe?g|png|gif)$/i, use: "file-loader" },
|
56
47
|
{
|
57
|
-
test:
|
58
|
-
use:
|
59
|
-
loader: "babel-loader",
|
60
|
-
options: {
|
61
|
-
cacheDirectory: true
|
62
|
-
}
|
63
|
-
}
|
64
|
-
},
|
65
|
-
{
|
66
|
-
test: /(\.pug)$/,
|
67
|
-
loader: "pug-loader",
|
68
|
-
query: {}
|
69
|
-
},
|
70
|
-
{
|
71
|
-
test: /\.vue/,
|
72
|
-
use: {
|
73
|
-
loader: "vue-loader",
|
74
|
-
}
|
75
|
-
},
|
76
|
-
{
|
77
|
-
test: /\.(jpe?g|png|gif)$/i,
|
78
|
-
use: "file-loader"
|
79
|
-
},
|
80
|
-
{
|
81
|
-
test: /\.svg$/i,
|
82
|
-
exclude: /inline/i,
|
83
|
-
use: "file-loader"
|
84
|
-
},
|
85
|
-
{
|
86
|
-
test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.otf($|\?)|\.eot($|\?)/,
|
48
|
+
test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)|\.otf($|\?)/,
|
49
|
+
//use: production ? 'file-loader' : 'url-loader'
|
87
50
|
use: 'file-loader'
|
88
51
|
},
|
89
52
|
{
|
90
|
-
test: /\.(
|
91
|
-
use:
|
53
|
+
test: /\.(sass|scss|css)$/,
|
54
|
+
use: [
|
55
|
+
{
|
56
|
+
loader: ExtractCssChunks.loader,
|
57
|
+
options: {
|
58
|
+
hot: production ? false : true,
|
59
|
+
// Force reload all
|
60
|
+
//reloadAll: true,
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
loader: "css-loader",
|
65
|
+
options: {
|
66
|
+
//minimize: true,
|
67
|
+
sourceMap: true
|
68
|
+
}
|
69
|
+
},
|
70
|
+
{
|
71
|
+
loader: "postcss-loader",
|
72
|
+
},
|
73
|
+
{
|
74
|
+
loader: "sass-loader"
|
75
|
+
}
|
76
|
+
]
|
92
77
|
},
|
93
78
|
]
|
94
79
|
},
|
@@ -98,7 +83,7 @@ var config = {
|
|
98
83
|
// that all webpacked assets start with webpack/
|
99
84
|
|
100
85
|
// must match config.webpack.output_dir
|
101
|
-
path: path.join(__dirname, "..",
|
86
|
+
path: path.join(__dirname, "..", 'public', 'webpack'),
|
102
87
|
publicPath: '/webpack/',
|
103
88
|
|
104
89
|
filename: production ? '[name]-[chunkhash].js' : '[name].js',
|
@@ -106,52 +91,56 @@ var config = {
|
|
106
91
|
},
|
107
92
|
|
108
93
|
resolve: {
|
109
|
-
modules: [
|
110
|
-
|
111
|
-
path.resolve(__dirname, "..", "node_modules"),
|
112
|
-
],
|
113
|
-
extensions: [".es6", ".vue", ".sass", ".css", ".js"],
|
94
|
+
modules: [path.resolve(__dirname, "..", "webpack"), path.resolve(__dirname, "..", "node_modules")],
|
95
|
+
extensions: [".es6", ".jsx", ".sass", ".css", ".js"],
|
114
96
|
alias: {
|
115
97
|
'~': path.resolve(__dirname, "..", "webpack"),
|
116
98
|
}
|
117
99
|
},
|
118
100
|
|
119
101
|
plugins: [
|
120
|
-
|
102
|
+
new ExtractCssChunks(
|
103
|
+
{
|
104
|
+
// Options similar to the same options in webpackOptions.output
|
105
|
+
// both options are optional
|
106
|
+
filename: production ? "[name]-[chunkhash].css" : "[name].css",
|
107
|
+
chunkfilename: production ? "[name]-[id].css" : "[name].css",
|
108
|
+
}
|
109
|
+
),
|
110
|
+
new CleanUpExtractCssChunks(),
|
121
111
|
new ManifestPlugin({
|
122
112
|
writeToFileEmit: true,
|
113
|
+
//basePath: "",
|
123
114
|
publicPath: production ? "/webpack/" : 'http://' + host + ':' + devServerPort + '/webpack/',
|
124
115
|
}),
|
125
|
-
new webpack.
|
126
|
-
|
127
|
-
jQuery: "jquery",
|
128
|
-
"window.jQuery": "jquery",
|
129
|
-
})
|
116
|
+
//new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
117
|
+
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /ru|en/),
|
130
118
|
],
|
131
119
|
optimization: {
|
132
|
-
|
120
|
+
minimize: production,
|
133
121
|
splitChunks: {
|
134
|
-
chunks: "initial",
|
135
122
|
cacheGroups: {
|
136
123
|
default: false,
|
137
124
|
vendors: {
|
138
|
-
|
139
|
-
|
140
|
-
priority: -10,
|
125
|
+
test: /[\\/]node_modules[\\/].*js/,
|
126
|
+
priority: 1,
|
141
127
|
name: "vendor",
|
128
|
+
chunks: "initial",
|
129
|
+
enforce: true
|
142
130
|
},
|
143
131
|
},
|
144
132
|
},
|
145
|
-
}
|
133
|
+
}
|
146
134
|
};
|
147
135
|
|
148
136
|
if (production) {
|
149
137
|
config.plugins.push(
|
138
|
+
//new webpack.NoEmitOnErrorsPlugin(),
|
150
139
|
new webpack.DefinePlugin({ // <--key to reduce React's size
|
151
140
|
'process.env': { NODE_ENV: JSON.stringify('production') }
|
152
141
|
}),
|
153
142
|
new CompressionPlugin({
|
154
|
-
asset: "[path].gz",
|
143
|
+
//asset: "[path].gz",
|
155
144
|
algorithm: "gzip",
|
156
145
|
test: /\.js$|\.css$/,
|
157
146
|
threshold: 4096,
|
@@ -161,7 +150,7 @@ if (production) {
|
|
161
150
|
config.output.publicPath = '/webpack/';
|
162
151
|
} else {
|
163
152
|
config.plugins.push(
|
164
|
-
new webpack.NamedModulesPlugin()
|
153
|
+
new webpack.NamedModulesPlugin(),
|
165
154
|
)
|
166
155
|
|
167
156
|
config.devServer = {
|
@@ -169,11 +158,10 @@ if (production) {
|
|
169
158
|
disableHostCheck: true,
|
170
159
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
171
160
|
};
|
161
|
+
|
172
162
|
config.output.publicPath = 'http://' + host + ':' + devServerPort + '/webpack/';
|
173
163
|
// Source maps
|
174
164
|
config.devtool = 'source-map';
|
175
165
|
}
|
176
166
|
|
177
|
-
module.exports = config
|
178
|
-
|
179
|
-
|
167
|
+
module.exports = config
|
data/lib/rocket_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -282,6 +282,7 @@ files:
|
|
282
282
|
- lib/generators/rocket_cms/templates/migration_pages.rb
|
283
283
|
- lib/generators/rocket_cms/templates/migration_seos.rb
|
284
284
|
- lib/generators/rocket_cms/templates/package.json
|
285
|
+
- lib/generators/rocket_cms/templates/postcss.config.js
|
285
286
|
- lib/generators/rocket_cms/templates/production.erb
|
286
287
|
- lib/generators/rocket_cms/templates/unicorn.erb
|
287
288
|
- lib/generators/rocket_cms/templates/webpack.config.js
|
@@ -367,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
367
368
|
- !ruby/object:Gem::Version
|
368
369
|
version: '0'
|
369
370
|
requirements: []
|
370
|
-
rubygems_version: 3.0.
|
371
|
+
rubygems_version: 3.0.6
|
371
372
|
signing_key:
|
372
373
|
specification_version: 4
|
373
374
|
summary: Please DO NOT use this gem directly, use rocket_cms_mongoid or rocket_cms_activerecord
|