Skip to content

Commit 498ddf0

Browse files
committed
chore(devenv): #153 Updated es proposals and babel plugins to TS39 2018-05
1 parent 76e3090 commit 498ddf0

File tree

10 files changed

+310
-110
lines changed

10 files changed

+310
-110
lines changed

.bithoundrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Linting turned off again. Don't know how to control what to lint. Since project linting is in CI build, it's safe to turn it off here."
55
],
66
"dependencies-mute": [
7-
"@types/node muted because we are using Node 6"
7+
"@types/node muted because we are using Node 8"
88
]
99
},
1010
"critics": {

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
// "files.trimTrailingWhitespace": true,
1313
"files.encoding": "utf8",
1414
"git.enabled": true,
15-
"git.enableLongCommitWarning": true,
15+
"npm.enableScriptExplorer": true,
1616
"typescript.tsdk": "node_modules/typescript/lib"
1717
}

ecmascript-proposals.md

Lines changed: 232 additions & 73 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"author": "Latticework",
9595
"license": "MIT",
9696
"engines": {
97-
"node": ">= 6.9.0"
97+
"node": ">= 8.9.0"
9898
},
9999
"bugs": {
100100
"url": "https://github.com/latticework/jali/issues"
@@ -105,25 +105,29 @@
105105
},
106106
"devDependencies": {
107107
"@types/mkdirp": "^0.3.29",
108-
"@types/node": "^6.0.62",
108+
"@types/node": "^8.0.51",
109109
"@types/sanitize-filename": "^1.1.28",
110110
"@types/tmp": "^0.0.32",
111111
"app-root-path": "^2.0.1",
112112
"awesome-typescript-loader": "^3.0.8",
113113
"ava": "^0.18.2",
114114
"babel-loader": "^6.3.2",
115115
"babel-plugin-espower": "^2.3.2",
116+
"babel-plugin-dynamic-import-node": "^1.2.0",
116117
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
118+
"babel-plugin-transform-async-generator-functions": "^6.24.1",
117119
"babel-plugin-transform-async-to-generator": "^6.22.0",
118120
"babel-plugin-transform-class-properties": "^6.23.0",
119121
"babel-plugin-transform-decorators-legacy": "^1.3.4",
120122
"babel-plugin-transform-es2015-function-name": "^6.22.0",
121123
"babel-plugin-transform-es2015-modules-commonjs": "^6.23.0",
122124
"babel-plugin-transform-exponentiation-operator": "^6.22.0",
123125
"babel-plugin-transform-function-sent": "^1.0.1",
126+
"babel-plugin-transform-modern-regexp": "^0.0.4",
127+
"babel-plugin-transform-numeric-separator": "^7.0.0-alpha.11",
124128
"babel-plugin-transform-runtime": "^6.23.0",
125-
"babel-preset-node6": "^11.0.0",
126-
"babel-register": "^6.23.0",
129+
"babel-plugin-transform-unicode-property-regex": "^2.0.5",
130+
"babel-register": "^6.26.0",
127131
"copy-webpack-plugin": "^4.0.1",
128132
"cpy-cli": "^1.0.1",
129133
"esdoc": "^0.5.2",
@@ -134,7 +138,7 @@
134138
"rimraf": "^2.6.1",
135139
"sanitize-filename": "^1.6.1",
136140
"tmp": "^0.0.31",
137-
"ts-node": "^2.1.0",
141+
"ts-node": "^3.3.0",
138142
"tslint": "^4.5.0",
139143
"typedoc": "^0.5.7",
140144
"typescript": "^2.2.1",
@@ -152,24 +156,36 @@
152156
},
153157
"production": {}
154158
},
155-
"presets": [],
156159
"plugins": [
160+
"espower",
157161
"syntax-trailing-function-commas",
162+
"transform-async-generator-functions",
158163
"transform-async-to-generator",
159164
"transform-class-properties",
160165
"transform-decorators-legacy",
161166
"transform-es2015-function-name",
162-
"transform-function-sent",
163167
"transform-exponentiation-operator",
168+
"transform-function-sent",
169+
[
170+
"transform-modern-regexp",
171+
{
172+
"features": [
173+
"namedCapturingGroups",
174+
"dotAll"
175+
]
176+
}
177+
],
178+
"transform-numeric-separator",
164179
[
165180
"transform-runtime",
166181
{
167182
"polyfill": false,
168183
"regenerator": false
169184
}
170185
],
171-
"espower"
186+
"transform-unicode-property-regex"
172187
],
188+
"presets": [],
173189
"ignore": [
174190
"*.test.js"
175191
],
@@ -182,22 +198,35 @@
182198
"concurrency": 5,
183199
"babel": {
184200
"plugins": [
201+
"espower",
202+
"dynamic-import-node",
185203
"syntax-trailing-function-commas",
204+
"transform-async-generator-functions",
186205
"transform-async-to-generator",
187206
"transform-class-properties",
188207
"transform-decorators-legacy",
189208
"transform-es2015-modules-commonjs",
190209
"transform-es2015-function-name",
191210
"transform-exponentiation-operator",
192211
"transform-function-sent",
212+
[
213+
"transform-modern-regexp",
214+
{
215+
"features": [
216+
"namedCapturingGroups",
217+
"dotAll"
218+
]
219+
}
220+
],
221+
"transform-numeric-separator",
193222
[
194223
"transform-runtime",
195224
{
196225
"polyfill": false,
197226
"regenerator": false
198227
}
199228
],
200-
"espower"
229+
"transform-unicode-property-regex"
201230
]
202231
},
203232
"require": [

packages/@jali-ms/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"url": "https://github.com/latticework/jali.git"
4141
},
4242
"engines": {
43-
"node": ">= 6.0.0"
43+
"node": ">= 8.9.0"
4444
},
4545
"preferGlobal": false,
4646
"private": false,

packages/@jali-ms/note/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"url": "https://github.com/latticework/jali.git"
4141
},
4242
"engines": {
43-
"node": ">= 6.0.0"
43+
"node": ">= 8.9.0"
4444
},
4545
"preferGlobal": false,
4646
"private": false,

packages/@jali-ms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"engines": {
14-
"node": ">= 6.0.0"
14+
"node": ">= 8.9.0"
1515
},
1616
"homepage": "http://jali-ms.io/",
1717
"keywords": [

packages/@jali-ms/util/webpackfile.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,31 @@ module.exports = function(options) {
4141
cacheDirectory: true,
4242
plugins: [
4343
'syntax-trailing-function-commas',
44+
"transform-async-generator-functions",
4445
'transform-async-to-generator',
4546
'transform-class-properties',
4647
'transform-decorators-legacy',
4748
'transform-es2015-function-name',
48-
'transform-es2015-modules-commonjs',
49-
'transform-function-sent',
5049
'transform-exponentiation-operator',
50+
'transform-function-sent',
51+
[
52+
"transform-modern-regexp",
53+
{
54+
"features": [
55+
"namedCapturingGroups",
56+
"dotAll"
57+
]
58+
}
59+
],
60+
"transform-numeric-separator",
5161
[
52-
'transform-runtime',
62+
"transform-runtime",
5363
{
54-
polyfill: false,
55-
regenerator: false,
64+
"polyfill": false,
65+
"regenerator": false
5666
}
57-
]
67+
],
68+
"transform-unicode-property-regex"
5869
],
5970
presets: []
6071
},

site-cookbooks/main/recipes/default.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@
4545
end
4646

4747
# Install Node
48+
# https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
49+
# However consider nvm http://www.hostingadvice.com/how-to/update-node-js-latest-version/
4850
if ::Dir.exist?('/usr/bin/node')
4951
Chef::Log.info('(up to date)')
5052
else
51-
bash 'prep_for_node_6_x' do
53+
bash 'prep_for_node_8_x' do
5254
code <<-EOH
53-
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
55+
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
5456
EOH
5557
end
5658

webpackfile.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,20 @@ exports (options) => {
1313
case "production":
1414

1515
}
16-
switch (process.env.NODE_ENV) {
17-
case 'prod':
18-
case 'production':
19-
module.exports = require('./config/webpack.prod');
20-
break;
21-
case 'test':
22-
case 'testing':
23-
module.exports = require('./config/webpack.test');
24-
break;
25-
case 'dev':
26-
case 'development':
27-
default:
28-
module.exports = require('./config/webpack.dev');
29-
}
30-
3116

17+
switch (process.env.NODE_ENV) {
18+
case 'prod':
19+
case 'production':
20+
module.exports = require('./config/webpack.prod');
21+
break;
22+
case 'test':
23+
case 'testing':
24+
module.exports = require('./config/webpack.test');
25+
break;
26+
case 'dev':
27+
case 'development':
28+
default:
29+
module.exports = require('./config/webpack.dev');
30+
}
3231
}
3332
}

0 commit comments

Comments
 (0)