Skip to content

Commit

Permalink
Updates to package json and webpack for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Padget committed Jun 22, 2017
1 parent 07ec317 commit 11c6153
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
API_URL = http://localhost:3000
CDN_URL = '/'
API_URL='http://localhost:3000'
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "ltg-fe",
"version": "0.1.0",
"version": "0.1.1",
"description": "Looking to game front end",
"main": "karma.conf.js",
"engines": {
"node": "4.4.7"
},
"scripts": {
"start": "node server.js",
"heroku-postbuild": "webpack",
"build": "webpack",
"build-watch": "webpack-dev-server --inline --hot",
"test": "karma start",
Expand All @@ -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",
Expand All @@ -50,12 +39,26 @@
"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",
"sass-loader": "^6.0.6",
"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"
}
}
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -41,7 +41,7 @@ module.exports = {
loaders: [
{
test:/\.js$/,
exclude: /node-modules/,
// exclude: /node-modules/,
use: ['babel-loader'],
},
{
Expand Down

0 comments on commit 11c6153

Please sign in to comment.