diff --git a/.env b/.env index 7ec0ccc..eb4ac6b 100644 --- a/.env +++ b/.env @@ -1,2 +1 @@ -API_URL = http://localhost:3000 -CDN_URL = '/' +API_URL='http://localhost:3000' diff --git a/README.md b/README.md index ac28f1b..4176341 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,25 @@ [![Build Status](https://travis-ci.org/Looking-To-Game/ltg-fe.svg?branch=master)](https://travis-ci.org/Looking-To-Game/ltg-fe) -# Packages -## file-loader -Instructs webpack to emit the required object as file and to return its public url. -https://www.npmjs.com/package/file-loader +## Version +0.1.1 + +## Description +Looking to game is a service that helps people form groups to play games. + +## Application +Looking to game is a full stack JavaScript application (app) with a front end and back end. Both the front and back end are necessary to make the application work. This repository (repo) is the front end. +### Back End +The back end can be found at the following GitHub location: +https://github.com/Looking-To-Game/ltg-be + +## Notes 1. Run `npm i` 1. Run the back end server and database. 1. Build webpack and run the server on the front end `npm run build-watch`. + +# Packages +## file-loader +Instructs webpack to emit the required object as file and to return its public url. +https://www.npmjs.com/package/file-loader diff --git a/package.json b/package.json index d283a22..1779335 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ltg-fe", - "version": "0.1.0", + "version": "0.1.1", "description": "Looking to game front end", "main": "karma.conf.js", "engines": { @@ -8,6 +8,7 @@ }, "scripts": { "start": "node server.js", + "heroku-postbuild": "webpack", "build": "webpack", "build-watch": "webpack-dev-server --inline --hot", "test": "karma start", @@ -24,18 +25,6 @@ "url": "https://github.com/Looking-To-Game/ltg-fe/issues" }, "homepage": "https://github.com/Looking-To-Game/ltg-fe#readme", - "devDependencies": { - "angular-mocks": "^1.6.4", - "babel-polyfill": "^6.23.0", - "chai": "^4.0.2", - "karma": "^1.7.0", - "karma-chrome-launcher": "^2.1.1", - "karma-mocha": "^1.3.0", - "karma-mocha-reporter": "^2.2.3", - "karma-webpack": "^2.0.3", - "mocha": "^3.4.2", - "webpack-dev-server": "^2.4.5" - }, "dependencies": { "@uirouter/angularjs": "^1.0.4", "angular": "^1.6.4", @@ -50,6 +39,7 @@ "file-loader": "^0.11.2", "html-loader": "^0.4.5", "html-webpack-plugin": "^2.28.0", + "karma-coverage": "^1.1.1", "node-sass": "^4.5.3", "pascalcase": "^0.1.1", "resolve-url-loader": "^2.0.2", @@ -57,5 +47,18 @@ "style-loader": "^0.18.2", "url-loader": "^0.5.8", "webpack": "^2.6.1" + }, + "devDependencies": { + "angular-mocks": "^1.6.4", + "babel-polyfill": "^6.23.0", + "chai": "^4.0.2", + "karma": "^1.7.0", + "karma-chrome-launcher": "^2.1.1", + "karma-mocha": "^1.3.0", + "karma-mocha-reporter": "^2.2.3", + "karma-phantomjs-launcher": "^1.0.4", + "karma-webpack": "^2.0.3", + "mocha": "^3.4.2", + "webpack-dev-server": "^2.4.5" } } diff --git a/webpack.config.js b/webpack.config.js index 175e4c6..c35dd8d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,7 @@ const webpack = require('webpack'); const HTMLPlugin = require('html-webpack-plugin'); // const CleanPlugin = require('clean-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); -require('clean-webpack-plugin'); +// require('clean-webpack-plugin'); const production = process.env.NODE_ENV === 'production'; @@ -41,7 +41,7 @@ module.exports = { loaders: [ { test:/\.js$/, - exclude: /node-modules/, + // exclude: /node-modules/, use: ['babel-loader'], }, {