Skip to content

Commit

Permalink
remove jsdoc; update .babelrc use
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayao.deng committed Aug 2, 2018
1 parent a04894e commit f89843a
Show file tree
Hide file tree
Showing 28 changed files with 1,935 additions and 553 deletions.
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

11 changes: 0 additions & 11 deletions .jsdoc.json

This file was deleted.

37 changes: 37 additions & 0 deletions example/normal(react)/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"comments": false,
"env": {
"development": {
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["last 2 versions", "> 5%", "safari >= 8", "ie >= 10", "Firefox ESR", "iOS >= 8", "android >= 4"]
}
}
],
"react",
"stage-2"
],
"plugins": ["transform-runtime", "react-hot-loader/babel"]
},
"production": {
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["last 2 versions", "> 5%", "safari >= 8", "ie >= 10", "Firefox ESR", "iOS >= 8", "android >= 4"]
}
}
],
"react",
"stage-2"
],
"plugins": ["transform-runtime"]
}
}
}
11 changes: 0 additions & 11 deletions example/normal(react)/.jsdoc.json

This file was deleted.

2 changes: 1 addition & 1 deletion example/normal(react)/client/static/html/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<p>static path defined in config.json: {{ client.publicPath }}</p>
<div id="react-app"></div>
</div>
<script src="{{ client.publicPath }}/static/lib.js"></script>
<script src="{{ client.publicPath }}/asset/lib.js"></script>
</body>
</html>
9 changes: 8 additions & 1 deletion example/normal(react)/client/static/js/app.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import React from 'react'
import { hot } from 'react-hot-loader'

export default class App extends React.Component {
class App extends React.Component {
constructor(props) {
super(props)
}
render() {
return <p>react render here</p>
}
}

if (module.hot) {
App = hot(module)(App)
}

export default App
2 changes: 1 addition & 1 deletion example/normal(react)/krau.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"renderType": "react",
"ftp": {
"host": "10.0.0.10",
"port": 22,
Expand All @@ -8,7 +9,6 @@
"patterns": ["client/dist"],
"keepWrapFolder": false
},
"jsdoc": false,
"postcss": {},
"webpack": {
"banner": "@copyright ",
Expand Down
Loading

0 comments on commit f89843a

Please sign in to comment.