mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
3a9381c5b3
* Add sensible React base to the app for frontend This PR attempts to "reactify" Kolide and provide a sane development environment that a front-end engineer would probably expect. This PR accomplishes by doing the following: 1. Reorganizes the app into a `server/` and `client/` folders to keep golang logic separated from react logic. 2. Adds an "asset pipeline" via webpack which knows how to build a js and css bundle. 3. Packages up all static assets in a go-bindata file so that the binary remains portable without external file dependencies. 1. Add a Makefile with several targets that will be common in everyday development. For example, we have `serve` target which spins up a nodejs reverse proxy on port 8081 which then watches for changed files, automatically rebuilds the app, and hot loads the new JS/CSS in. **Note:** Please use `make` to build the app, not `go build` as there are now several things that need to be orchestrated beyond the go code to build the app. * Create build if it doesn't exist, and use `go get` * Improve README to reflect new dev workflow * Document css vars and funcs and use alias paths * makefile and structure modifications
94 lines
2.0 KiB
JSON
94 lines
2.0 KiB
JSON
{
|
|
"name": "Kolide",
|
|
"version": "0.1.0",
|
|
"description": "Kolide, Black Box Security. Unboxed",
|
|
"author": "Kolide, Inc.",
|
|
"private": "true",
|
|
"dependencies": {
|
|
"autoprefixer": "6.3.7",
|
|
"autoprefixer-loader": "^3.2.0",
|
|
"babel-core": "6.11.4",
|
|
"babel-eslint": "6.1.2",
|
|
"babel-loader": "6.2.4",
|
|
"babel-preset-es2015": "6.9.0",
|
|
"babel-preset-es2016": "6.11.3",
|
|
"babel-preset-react": "6.11.1",
|
|
"babel-preset-react-hmre": "1.1.1",
|
|
"babel-preset-stage-0": "6.5.0",
|
|
"css-loader": "^0.23.1",
|
|
"cssrecipes-defaults": "^0.5.0",
|
|
"es6-promise": "^3.2.1",
|
|
"eslint-plugin-react": "^3.16.1",
|
|
"expose-loader": "^0.7.1",
|
|
"express": "^4.13.4",
|
|
"extract-text-webpack-plugin": "^1.0.1",
|
|
"file-loader": "^0.8.5",
|
|
"history": "2.0.0",
|
|
"lodash": "^4.3.0",
|
|
"normalize.css": "4.2.0",
|
|
"postcss-functions": "^2.1.0",
|
|
"postcss-loader": "^0.8.0",
|
|
"precss": "^1.4.0",
|
|
"proxy-middleware": "^0.15.0",
|
|
"react": "^15.2.1",
|
|
"react-dom": "^15.2.1",
|
|
"react-router": "^2.6.1",
|
|
"style-loader": "^0.13.0",
|
|
"stylus-loader": "1.5.1",
|
|
"webpack": "1.13.1",
|
|
"webpack-dev-middleware": "^1.5.1",
|
|
"webpack-hot-middleware": "^2.7.1",
|
|
"whatwg-fetch": "^0.11.0",
|
|
"when": "^3.7.7"
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"es2015",
|
|
"react",
|
|
"stage-0"
|
|
],
|
|
"env": {
|
|
"dev": {
|
|
"presets": [
|
|
"react-hmre"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"eslintConfig": {
|
|
"rules": {
|
|
"indent": [
|
|
2,
|
|
2
|
|
],
|
|
"quotes": [
|
|
2,
|
|
"single"
|
|
],
|
|
"linebreak-style": [
|
|
2,
|
|
"unix"
|
|
],
|
|
"semi": [
|
|
2,
|
|
"always"
|
|
],
|
|
"react/jsx-uses-react": 2,
|
|
"react/jsx-uses-vars": 2,
|
|
"react/react-in-jsx-scope": 2
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"ecmaFeatures": {
|
|
"jsx": true,
|
|
"modules": true
|
|
},
|
|
"plugins": [
|
|
"react"
|
|
]
|
|
}
|
|
}
|