Skip to content

check in packages.json for windows #673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const envOpts = {}

if (process.env.BABEL_ENV === 'node') {
envOpts.targets = { node: 9 }
envOpts.modules = 'commonjs'
}

if (process.env.BABEL_ENV === 'browser') {
envOpts.targets = { browsers: ['>0.5%'] }
envOpts.modules = false
envOpts.useBuiltIns = 'entry'
}

const config = {
comments: false,
presets: [['@babel/env', envOpts]],
plugins: [
['babel-plugin-inline-import', { extensions: ['.glsl'] }],
'lodash',
'@babel/proposal-class-properties',
['@babel/proposal-object-rest-spread', { useBuiltIns: true }]
]
}

module.exports = config
7 changes: 0 additions & 7 deletions .eslintrc

This file was deleted.

21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
env: {
browser: true,
node: true,
mocha: true,
es6: true
},
parser: 'babel-eslint',
plugins: ['html'],
rules: {
'no-console': 0
},
globals: {
KerasJS: true,
TEST_DATA: true,
testGlobals: true,
chai: true,
performance: true
},
extends: 'eslint:recommended'
}
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceRoot}"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
25 changes: 25 additions & 0 deletions keras-js/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const envOpts = {}

if (process.env.BABEL_ENV === 'node') {
envOpts.targets = { node: 9 }
envOpts.modules = 'commonjs'
}

if (process.env.BABEL_ENV === 'browser') {
envOpts.targets = { browsers: ['>0.5%'] }
envOpts.modules = false
envOpts.useBuiltIns = 'entry'
}

const config = {
comments: false,
presets: [['@babel/env', envOpts]],
plugins: [
['babel-plugin-inline-import', { extensions: ['.glsl'] }],
'lodash',
'@babel/proposal-class-properties',
['@babel/proposal-object-rest-spread', { useBuiltIns: true }]
]
}

module.exports = config
21 changes: 21 additions & 0 deletions keras-js/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
env: {
browser: true,
node: true,
mocha: true,
es6: true
},
parser: 'babel-eslint',
plugins: ['html'],
rules: {
'no-console': 0
},
globals: {
KerasJS: true,
TEST_DATA: true,
testGlobals: true,
chai: true,
performance: true
},
extends: 'eslint:recommended'
}
Loading