-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- based on a webpack boilerplate - remove jQuery - update docker and jenkins
- Loading branch information
1 parent
4f9a31a
commit 9a16ce6
Showing
46 changed files
with
9,813 additions
and
3,862 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
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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"useBuiltIns": "usage", | ||
"corejs": "3.0.0" | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} |
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 @@ | ||
[production staging] | ||
>5% | ||
last 2 versions | ||
Firefox ESR | ||
not ie < 11 | ||
|
||
[development] | ||
last 1 chrome version | ||
last 1 firefox version | ||
last 1 edge version |
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 @@ | ||
src/scripts/vendor |
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,13 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"semi": 2 | ||
} | ||
} |
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 +1,14 @@ | ||
node_modules | ||
# dependencies | ||
node_modules | ||
|
||
# production | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
|
||
npm-debug.log | ||
yarn-error.log | ||
yarn.lock | ||
.yarnclean | ||
.vscode |
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,5 @@ | ||
language: node_js | ||
node_js: | ||
- "lts/*" | ||
- "node" | ||
script: npm run build |
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,15 +1,9 @@ | ||
FROM jmfirth/webpack:wheezy | ||
FROM node:10-alpine | ||
|
||
ENV NPM_CONFIG_LOGLEVEL warn | ||
# 2: create directory: | ||
RUN mkdir -p /frontend | ||
COPY . /frontend | ||
ENV HOST 0.0.0.0 | ||
|
||
WORKDIR /frontend | ||
WORKDIR /usr/app/ | ||
|
||
RUN yarn | ||
# 4: expose port | ||
COPY . . | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["yarn", "start"] | ||
RUN npm ci |
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,30 @@ | ||
# Bigworldgraph frontend | ||
|
||
Project based on [this boilerplate](https://github.com/wbkd/webpack-starter). | ||
|
||
|
||
### Installation | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
### Start Dev Server | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
### Build Prod Version | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
### Features: | ||
|
||
* ES6 Support via [babel](https://babeljs.io/) (v7) | ||
* SASS Support via [sass-loader](https://github.com/jtangelder/sass-loader) | ||
* Linting via [eslint-loader](https://github.com/MoOx/eslint-loader) | ||
|
||
When you run `npm run build` we use the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to move the css to a separate file. The css file gets included in the head of the `index.html`. |
Oops, something went wrong.