Skip to content

Commit

Permalink
Updated es proposals and babel plugins to TS39 2017-11
Browse files Browse the repository at this point in the history
  • Loading branch information
clavecoder committed Jan 13, 2018
1 parent 76e3090 commit 0c59cf9
Show file tree
Hide file tree
Showing 9 changed files with 250 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .bithoundrc
Expand Up @@ -4,7 +4,7 @@
"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."
],
"dependencies-mute": [
"@types/node muted because we are using Node 6"
"@types/node muted because we are using Node 8"
]
},
"critics": {
Expand Down
244 changes: 173 additions & 71 deletions ecmascript-proposals.md

Large diffs are not rendered by default.

47 changes: 38 additions & 9 deletions package.json
Expand Up @@ -94,7 +94,7 @@
"author": "Latticework",
"license": "MIT",
"engines": {
"node": ">= 6.9.0"
"node": ">= 8.9.0"
},
"bugs": {
"url": "https://github.com/latticework/jali/issues"
Expand All @@ -105,25 +105,29 @@
},
"devDependencies": {
"@types/mkdirp": "^0.3.29",
"@types/node": "^6.0.62",
"@types/node": "^8.0.51",
"@types/sanitize-filename": "^1.1.28",
"@types/tmp": "^0.0.32",
"app-root-path": "^2.0.1",
"awesome-typescript-loader": "^3.0.8",
"ava": "^0.18.2",
"babel-loader": "^6.3.2",
"babel-plugin-espower": "^2.3.2",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
"babel-plugin-transform-async-generator-functions": "^6.24.1",
"babel-plugin-transform-async-to-generator": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-function-name": "^6.22.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.23.0",
"babel-plugin-transform-exponentiation-operator": "^6.22.0",
"babel-plugin-transform-function-sent": "^1.0.1",
"babel-plugin-transform-modern-regexp": "^0.0.4",
"babel-plugin-transform-numeric-separator": "^7.0.0-alpha.11",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-node6": "^11.0.0",
"babel-register": "^6.23.0",
"babel-plugin-transform-unicode-property-regex": "^2.0.5",
"babel-register": "^6.26.0",
"copy-webpack-plugin": "^4.0.1",
"cpy-cli": "^1.0.1",
"esdoc": "^0.5.2",
Expand All @@ -134,7 +138,7 @@
"rimraf": "^2.6.1",
"sanitize-filename": "^1.6.1",
"tmp": "^0.0.31",
"ts-node": "^2.1.0",
"ts-node": "^3.3.0",
"tslint": "^4.5.0",
"typedoc": "^0.5.7",
"typescript": "^2.2.1",
Expand All @@ -152,24 +156,36 @@
},
"production": {}
},
"presets": [],
"plugins": [
"espower",
"syntax-trailing-function-commas",
"transform-async-generator-functions",
"transform-async-to-generator",
"transform-class-properties",
"transform-decorators-legacy",
"transform-es2015-function-name",
"transform-function-sent",
"transform-exponentiation-operator",
"transform-function-sent",
[
"transform-modern-regexp",
{
"features": [
"namedCapturingGroups",
"dotAll"
]
}
],
"transform-numeric-separator",
[
"transform-runtime",
{
"polyfill": false,
"regenerator": false
}
],
"espower"
"transform-unicode-property-regex"
],
"presets": [],
"ignore": [
"*.test.js"
],
Expand All @@ -182,22 +198,35 @@
"concurrency": 5,
"babel": {
"plugins": [
"espower",
"dynamic-import-node",
"syntax-trailing-function-commas",
"transform-async-generator-functions",
"transform-async-to-generator",
"transform-class-properties",
"transform-decorators-legacy",
"transform-es2015-modules-commonjs",
"transform-es2015-function-name",
"transform-exponentiation-operator",
"transform-function-sent",
[
"transform-modern-regexp",
{
"features": [
"namedCapturingGroups",
"dotAll"
]
}
],
"transform-numeric-separator",
[
"transform-runtime",
{
"polyfill": false,
"regenerator": false
}
],
"espower"
"transform-unicode-property-regex"
]
},
"require": [
Expand Down
2 changes: 1 addition & 1 deletion packages/@jali-ms/core/package.json
Expand Up @@ -40,7 +40,7 @@
"url": "https://github.com/latticework/jali.git"
},
"engines": {
"node": ">= 6.0.0"
"node": ">= 8.9.0"
},
"preferGlobal": false,
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/@jali-ms/note/package.json
Expand Up @@ -40,7 +40,7 @@
"url": "https://github.com/latticework/jali.git"
},
"engines": {
"node": ">= 6.0.0"
"node": ">= 8.9.0"
},
"preferGlobal": false,
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/@jali-ms/package.json
Expand Up @@ -11,7 +11,7 @@
}
],
"engines": {
"node": ">= 6.0.0"
"node": ">= 8.9.0"
},
"homepage": "http://jali-ms.io/",
"keywords": [
Expand Down
23 changes: 17 additions & 6 deletions packages/@jali-ms/util/webpackfile.js
Expand Up @@ -41,20 +41,31 @@ module.exports = function(options) {
cacheDirectory: true,
plugins: [
'syntax-trailing-function-commas',
"transform-async-generator-functions",
'transform-async-to-generator',
'transform-class-properties',
'transform-decorators-legacy',
'transform-es2015-function-name',
'transform-es2015-modules-commonjs',
'transform-function-sent',
'transform-exponentiation-operator',
'transform-function-sent',
[
"transform-modern-regexp",
{
"features": [
"namedCapturingGroups",
"dotAll"
]
}
],
"transform-numeric-separator",
[
'transform-runtime',
"transform-runtime",
{
polyfill: false,
regenerator: false,
"polyfill": false,
"regenerator": false
}
]
],
"transform-unicode-property-regex"
],
presets: []
},
Expand Down
6 changes: 4 additions & 2 deletions site-cookbooks/main/recipes/default.rb
Expand Up @@ -45,12 +45,14 @@
end

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

Expand Down
29 changes: 14 additions & 15 deletions webpackfile.js
Expand Up @@ -13,21 +13,20 @@ exports (options) => {
case "production":

}
switch (process.env.NODE_ENV) {
case 'prod':
case 'production':
module.exports = require('./config/webpack.prod');
break;
case 'test':
case 'testing':
module.exports = require('./config/webpack.test');
break;
case 'dev':
case 'development':
default:
module.exports = require('./config/webpack.dev');
}


switch (process.env.NODE_ENV) {
case 'prod':
case 'production':
module.exports = require('./config/webpack.prod');
break;
case 'test':
case 'testing':
module.exports = require('./config/webpack.test');
break;
case 'dev':
case 'development':
default:
module.exports = require('./config/webpack.dev');
}
}
}

0 comments on commit 0c59cf9

Please sign in to comment.