-
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.
Merge pull request #8 from ostyn/updatingAureliaWebpack
Updating aurelia and webpack
- Loading branch information
Showing
79 changed files
with
17,584 additions
and
1,347 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,24 @@ | ||
{ | ||
"extends": "./node_modules/aurelia-tools/.eslintrc.json" | ||
} | ||
"root": true, | ||
"extends": "eslint:recommended", | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"legacyDecorators": true | ||
} | ||
}, | ||
"rules": { | ||
"no-unused-vars": 0, | ||
"no-prototype-builtins": 0, | ||
"no-console": 0, | ||
"getter-return": 0 | ||
}, | ||
"env": { | ||
"es6": true, | ||
"browser": true, | ||
"node": true, | ||
"jest": true | ||
} | ||
} |
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,3 +1,37 @@ | ||
node_modules | ||
.idea | ||
|
||
# You may want to customise this file depending on your Operating System | ||
# and the editor that you use. | ||
# | ||
# We recommend that you use a Global Gitignore for files that are not related | ||
# to the project. (https://help.github.com/articles/ignoring-files/#create-a-global-gitignore) | ||
|
||
# OS | ||
# | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/Linux.gitignore | ||
.DS_STORE | ||
Thumbs.db | ||
|
||
# Editors | ||
# | ||
# Ref: https://github.com/github/gitignore/blob/master/Global | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore | ||
# Ref: https://github.com/github/gitignore/blob/master/Global/VisualStudioCode.gitignore | ||
.idea | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# Dependencies | ||
node_modules | ||
|
||
# Compiled files | ||
/scripts | ||
/src/environment.js | ||
/src/environment.ts | ||
/dist | ||
/test/coverage-jest | ||
/test/coverage-karma |
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,33 @@ | ||
# `frontend` | ||
|
||
This project is bootstrapped by [aurelia-cli](https://github.com/aurelia/cli). | ||
|
||
For more information, go to https://aurelia.io/docs/cli/webpack | ||
|
||
## Run dev app | ||
|
||
Run `npm start`, then open `http://localhost:8080` | ||
|
||
You can change the standard webpack configurations from CLI easily with something like this: `npm start -- --open --port 8888`. However, it is better to change the respective npm scripts or `webpack.config.js` with these options, as per your need. | ||
|
||
To enable Webpack Bundle Analyzer, do `npm run analyze` (production build). | ||
|
||
To enable hot module reload, do `npm start -- --hmr`. | ||
|
||
To change dev server port, do `npm start -- --port 8888`. | ||
|
||
To change dev server host, do `npm start -- --host 127.0.0.1` | ||
|
||
**PS:** You could mix all the flags as well, `npm start -- --host 127.0.0.1 --port 7070 --open --hmr` | ||
|
||
For long time aurelia-cli user, you can still use `au run` with those arguments like `au run --env prod --open --hmr`. But `au run` now simply executes `npm start` command. | ||
|
||
## Build for production | ||
|
||
Run `npm run build`, or the old way `au build --env prod`. | ||
|
||
## Unit tests | ||
|
||
Run `au test` (or `au jest`). | ||
|
||
To run in watch mode, `au test --watch` or `au jest --watch`. |
Oops, something went wrong.