Skip to content

Commit

Permalink
Merge pull request #14 from LuisManuelNR/develop
Browse files Browse the repository at this point in the history
 added dev and production folder for web test
  • Loading branch information
SIPVZ authored Oct 21, 2018
2 parents 5751353 + d0b1d28 commit 3b4f0d1
Show file tree
Hide file tree
Showing 58 changed files with 17,392 additions and 71 deletions.
Binary file modified engines/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified engines/__pycache__/auto_arima.cpython-36.pyc
Binary file not shown.
Binary file modified engines/__pycache__/functions_timeseries.cpython-36.pyc
Binary file not shown.
Binary file modified engines/__pycache__/helpers.cpython-36.pyc
Binary file not shown.
Binary file modified engines/__pycache__/holtwinter.cpython-36.pyc
Binary file not shown.
Binary file modified engines/__pycache__/lstm.cpython-36.pyc
Binary file not shown.
Binary file modified engines/__pycache__/var.cpython-36.pyc
Binary file not shown.
64 changes: 0 additions & 64 deletions web_test/csv_to_test.csv

This file was deleted.

2 changes: 1 addition & 1 deletion web_test/index.html → web_test/production/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>timecop</title><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel=stylesheet><link href=./static/css/app.14daf9aed06f69ef52ff8971689f65e3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.c2a07eda06ceb06f9226.js></script><script type=text/javascript src=./static/js/app.08435381b6fffdaa0f9e.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>timecop</title><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel=stylesheet><link href=./static/css/app.14daf9aed06f69ef52ff8971689f65e3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.c2a07eda06ceb06f9226.js></script><script type=text/javascript src=./static/js/app.1ad26df5b1044be50976.js></script></body></html>

Large diffs are not rendered by default.

File renamed without changes
File renamed without changes
2 changes: 2 additions & 0 deletions web_test/production/static/js/app.1ad26df5b1044be50976.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions web_test/static/js/app.08435381b6fffdaa0f9e.js

This file was deleted.

1 change: 0 additions & 1 deletion web_test/static/js/app.08435381b6fffdaa0f9e.js.map

This file was deleted.

12 changes: 12 additions & 0 deletions web_test/web_test_dev/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
],
"plugins": ["transform-vue-jsx", "transform-runtime"]
}
9 changes: 9 additions & 0 deletions web_test/web_test_dev/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions web_test/web_test_dev/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build/
/config/
/dist/
/*.js
25 changes: 25 additions & 0 deletions web_test/web_test_dev/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}
14 changes: 14 additions & 0 deletions web_test/web_test_dev/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
10 changes: 10 additions & 0 deletions web_test/web_test_dev/.postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}
21 changes: 21 additions & 0 deletions web_test/web_test_dev/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# timecop

> time series forecast
## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
```

For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
41 changes: 41 additions & 0 deletions web_test/web_test_dev/build/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
'use strict'
require('./check-versions')()

process.env.NODE_ENV = 'production'

const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')

const spinner = ora('building for production...')
spinner.start()

rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
chunks: false,
chunkModules: false
}) + '\n\n')

if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}

console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
' Opening index.html over file:// won\'t work.\n'
))
})
})
Loading

0 comments on commit 3b4f0d1

Please sign in to comment.