Skip to content

Commit

Permalink
Merge pull request #14 from Drill4J/develop
Browse files Browse the repository at this point in the history
release 0.1.2
  • Loading branch information
pavyarov authored Jun 6, 2019
2 parents 25b1bf9 + 167d64c commit 090d773
Show file tree
Hide file tree
Showing 170 changed files with 9,796 additions and 40,881 deletions.
25 changes: 0 additions & 25 deletions .babelrc

This file was deleted.

7 changes: 7 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pipeline:
build:
image: node:8
commands:
- yarn
- yarn typecheck
- yarn lint
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc

This file was deleted.

47 changes: 26 additions & 21 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# Drill4J Project
# Drill4J Project · [![Build Status](https://cloud.drone.io/api/badges/Drill4J/browser-extension/status.svg)](https://cloud.drone.io/Drill4J/browser-extension)

<img src="./logo.svg" alt="Logo" width="128" align="right">

Drill4J is a plugin management platform for real-time application profiling and extension that does not affect code base.

Drill4J allows you to:

- automate and organize data
- choose the right solutions for specific tasks
- increase the velocity and quality of the team
- store all plugins in one place
- flexible configuration of agents and plugins for project needs

## Documentation

Check out our [documentation](https://github.com/Drill4J/browser-extension/tree/master/dev-guide)

## Development installation

Expand All @@ -8,14 +24,8 @@ To launch the development environment, follow these steps:

1. open console from the project root
2. run the command `npm install`
3. to proxy requests to the server, create `.env` file in root folder

```
PROXY_PATH=http://your_server:port/
```
4. run the command `npm run dev`
5. enjoy the development.
3. run the command `npm start`
4. enjoy the development.

## Production version installation

Expand All @@ -25,26 +35,21 @@ To get production bundle, follow these steps:

1. open console from the project root
2. run the command `npm install`
3. run the command `npm run build`
3. run the command `npm build`
4. in project root will be created 'build' folder with UI bundle, witch can be used on production server.

## All npm commands

`npm run lint` - syntax and formatting check with eslint
`npm run format` - reformat js, scss and md using eslint and prettier
`npm run dev` - launch the development environment
`npm start` - launch the development environment

`npm run build` - build the product version in the `build` folder
`npm build` - build the product version in the `build` folder

`npm run test` - single run all tests
`npm test` - run tests when changing files

`npm run test:watch` - run tests when changing files
`npm lint` - run tslint

`npm run manage:translations` - checking the relevance of localization
`npm typecheck` - run TypeScript typechecing

## Technology

Used technology stack: [React](https://reactjs.org/), [Redux](https://redux.js.org/)
Used technology stack: [TypeScript](https://www.typescriptlang.org/) [React](https://reactjs.org/)
9 changes: 9 additions & 0 deletions build-utils/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const webpack = require('webpack');

const config = require('../webpack.config');

delete config.chromeExtensionBoilerplate;

webpack(config, (err) => {
if (err) throw err;
});
5 changes: 5 additions & 0 deletions build-utils/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// tiny wrapper with default env vars
module.exports = {
NODE_ENV: process.env.NODE_ENV || 'development',
PORT: process.env.PORT || 3002,
};
36 changes: 36 additions & 0 deletions build-utils/webserver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* eslint-disable no-restricted-syntax */
const WebpackDevServer = require('webpack-dev-server');

const webpack = require('webpack');

const path = require('path');
const config = require('../webpack.config');

const env = require('./env');

const options = config.chromeExtensionBoilerplate || {};
const excludeEntriesToHotReload = options.notHotReload || [];

for (const entryName in config.entry) {
if (excludeEntriesToHotReload.indexOf(entryName) === -1) {
config.entry[entryName] = [
`webpack-dev-server/client?http://localhost:${env.PORT}`,
'webpack/hot/dev-server',
].concat(config.entry[entryName]);
}
}

config.plugins = [new webpack.HotModuleReplacementPlugin()].concat(config.plugins || []);

delete config.chromeExtensionBoilerplate;

const compiler = webpack(config);

const server = new WebpackDevServer(compiler, {
hot: true,
contentBase: path.join(__dirname, '../build'),
headers: { 'Access-Control-Allow-Origin': '*' },
disableHostCheck: true,
});

server.listen(env.PORT);
29 changes: 0 additions & 29 deletions jestsetup.js

This file was deleted.

14 changes: 14 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 090d773

Please sign in to comment.