-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from appodeal/develop
Release v0.0.13
- Loading branch information
Showing
66 changed files
with
4,858 additions
and
2,982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -- Release --- | ||
FROM nginx:1.15.9 | ||
COPY dist/*.* /usr/share/nginx/html/ | ||
COPY download-page/*.* /usr/share/nginx/html/ | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY app/*.* /usr/share/nginx/html/ | ||
COPY html/* /usr/share/nginx/html/ | ||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules | ||
build | ||
/.idea | ||
**/.DS_Store | ||
*.iml | ||
config/*.json | ||
/release | ||
/dist | ||
tmp | ||
userData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// just empty js | ||
// to be able use webpack with ejs for index.html |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"esModuleInterop": false | ||
}, | ||
"include": [ | ||
"./**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import CopyPlugin from 'copy-webpack-plugin'; | ||
import HtmlWebpackPlugin from 'html-webpack-plugin'; | ||
import * as path from 'path'; | ||
import webpack from 'webpack'; | ||
import * as dist from '../dist/app/dist-info.json'; | ||
|
||
|
||
export const SRC_PATH = path.resolve(__dirname, './src'); | ||
export const NGINX_PATH = path.resolve(__dirname, './nginx'); | ||
|
||
export const BUILD_PATH = path.resolve(__dirname, '..', 'dist'); | ||
|
||
export default (env: webpack.Configuration): webpack.Configuration => { | ||
return { | ||
context: __dirname, | ||
target: 'web', | ||
entry: path.resolve(SRC_PATH, 'index.js'), | ||
output: { | ||
path: BUILD_PATH, | ||
filename: 'html/main.js' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(ejs)$/, | ||
use: [ | ||
{ | ||
loader: 'ejs-webpack-loader', | ||
options: { | ||
data: {dist}, | ||
htmlmin: false | ||
} | ||
} | ||
] | ||
|
||
} | ||
] | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: path.join(SRC_PATH, 'index.ejs'), | ||
filename: 'html/index.html', | ||
htmlmin: true, | ||
inject: false | ||
}), | ||
new HtmlWebpackPlugin({ | ||
hash: false, | ||
inject: false, | ||
template: path.join(NGINX_PATH, 'nginx.conf.ejs'), | ||
filename: 'nginx/nginx.conf' | ||
|
||
}), | ||
new CopyPlugin([ | ||
{ | ||
from: path.join(SRC_PATH, 'logo.png'), | ||
to: 'html/logo.png' | ||
} | ||
]) | ||
] | ||
}; | ||
} |
Oops, something went wrong.