mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
es5, es6, and typings, ohmy! (fix safari es5/es6 bug)
This commit is contained in:
parent
4b032a2b42
commit
8b4b915845
5 changed files with 22 additions and 11 deletions
3
www/tutorial/.babelrc
Normal file
3
www/tutorial/.babelrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
presets: ["es2015"]
|
||||
}
|
|
@ -20,12 +20,10 @@ module.exports = {
|
|||
test: /\.tsx?$/, loader: "ts-loader"
|
||||
},
|
||||
{
|
||||
test: /\.css$/, loader: 'style!css',
|
||||
test: /\.css$/, loader: 'style!css'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /.spec.js/,
|
||||
loader: "uglify"
|
||||
test: /\.js$/, exclude: /(node_modules)/, loader: 'babel'
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
"name": "angular2-quickstart",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"build": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack --config config/webpack.config.js --progress --profile --colors --display-error-details --display-cached",
|
||||
"start": "node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js",
|
||||
"dev": "node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js --inline --progress --hot --profile --colors --watch --display-error-details --display-cachedwebpack-dev-server"
|
||||
"build": "typings install && node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack --config config/webpack.config.js --progress --profile --colors --display-error-details --display-cached",
|
||||
"start": "typings install && node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js",
|
||||
"dev": "typings install && node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.config.js --inline --progress --hot --profile --colors --watch --display-error-details --display-cachedwebpack-dev-server"
|
||||
},
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
@ -30,6 +30,9 @@
|
|||
"zone.js": "^0.6.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.16.0",
|
||||
"babel-loader": "^6.2.5",
|
||||
"babel-preset-es2015": "^6.16.0",
|
||||
"concurrently": "^2.0.0",
|
||||
"css-loader": "^0.25.0",
|
||||
"gulp": "^3.9.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
|
@ -8,5 +8,13 @@
|
|||
"experimentalDecorators": true,
|
||||
"removeComments": false,
|
||||
"noImplicitAny": false
|
||||
}
|
||||
},
|
||||
"types": [
|
||||
"core-js"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"typings/main",
|
||||
"typings/main.d.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
"globalDependencies": {
|
||||
"core-js": "registry:dt/core-js#0.0.0+20160602141332",
|
||||
"es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504",
|
||||
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
|
||||
"node": "registry:dt/node#6.0.0+20160907103612",
|
||||
"zone.js": "registry:dt/zone.js#0.0.0+20160316155526"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue