Skip to content

Commit

Permalink
file structure: create app and public folder for better separation of…
Browse files Browse the repository at this point in the history
… concerns
  • Loading branch information
mehl321 committed Sep 3, 2015
1 parent 1a18568 commit f922d7c
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
compiled.js
public/compiled.js
npm-debug.log
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ cd wallet
npm install
```

To build for production:
To run tests and build for production:

```bash
npm run build
```

To just run tests:

```bash
npm run test
```

To run in development/watch mode:

```bash
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 0 additions & 35 deletions npm-debug.log

This file was deleted.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "Wallet",
"name": "wallet",
"version": "0.0.0",
"description": "A simple wallet webapp",
"main": "main.js",
"scripts": {
"watch": "watchify -v -d -t babelify main.js --extension=.jsx -o compiled.js",
"build": "NODE_ENV=production browserify -t babelify --extension=.jsx main.js | uglifyjs > compiled.js",
"lint": "standard ./**/*.js*"
},
"main": "app/main.js",
"author": "Guilhem Soulas",
"license": "MIT",
"scripts": {
"watch": "watchify -v -d -t babelify app/main.js --extension=.jsx -o public/compiled.js",
"build": "npm run test && NODE_ENV=production browserify -t babelify --extension=.jsx app/main.js | uglifyjs > public/compiled.js",
"test": "standard app/**/*.js*"
},
"dependencies": {
"accounting": "0.4.1",
"classnames": "2.1.3",
Expand Down
2 changes: 1 addition & 1 deletion index.html → public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Wallet</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"/>
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="../assets/css/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</head>
<body>
Expand Down

0 comments on commit f922d7c

Please sign in to comment.