Skip to content

Commit 354794b

Browse files
author
Jared Palmer
committed
Change default output to just build/main.js
1 parent e8c0bea commit 354794b

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Then run the build command and start your app
9393

9494
```bash
9595
npm run build
96-
node ./build/server/main.js
96+
node ./build/main.js
9797
```
9898

9999
## CLI Commands
@@ -113,7 +113,7 @@ It correctly bundles your production mode and optimizes the build for the best p
113113
You can run your production application with the following command:
114114

115115
```bash
116-
node ./build/server/main.js
116+
node ./build/main.js
117117
```
118118

119119
Your application is ready to be deployed!

examples/basic/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "backpack-examples-basic",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"scripts": {
5-
"start": "node ./build/server/main.js",
5+
"start": "node ./build/main.js",
66
"dev": "backpack dev",
77
"build": "backpack build",
88
"postinstall": "backpack build"
@@ -12,6 +12,6 @@
1212
"express": "^4.14.0"
1313
},
1414
"devDependencies": {
15-
"backpack-core": "0.0.4"
15+
"backpack-core": "0.0.5"
1616
}
1717
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "backpack-examples-with-custom-webpack-config",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"scripts": {
5-
"start": "node ./build/server/main.js",
5+
"start": "node ./build/main.js",
66
"dev": "backpack dev",
77
"build": "backpack build",
88
"postinstall": "backpack build"
@@ -12,6 +12,6 @@
1212
"express": "^4.14.0"
1313
},
1414
"devDependencies": {
15-
"backpack-core": "0.0.4"
15+
"backpack-core": "0.0.5"
1616
}
1717
}

examples/with-jest/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "backpack-examples-with-jest",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"scripts": {
5-
"start": "node ./build/server/main.js",
5+
"start": "node ./build/main.js",
66
"test": "NODE_ENV=test jest",
77
"dev": "backpack dev",
88
"build": "backpack build",
@@ -14,7 +14,7 @@
1414
},
1515
"devDependencies": {
1616
"babel-jest": "^18.0.0",
17-
"backpack-core": "0.0.4",
17+
"backpack-core": "0.0.5",
1818
"jest-cli": "^18.1.0",
1919
"supertest": "^2.0.1"
2020
},

packages/backpack-core/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![backpack-status](https://david-dm.org/palmerhq/backpack.svg?path=packages/backpack-core)
44
[![npm version](https://badge.fury.io/js/backpack-core.svg)](https://badge.fury.io/js/backpack-core) [![Join the chat at https://gitter.im/palmerhq/backpack](https://badges.gitter.im/palmerhq/backpack.svg)](https://gitter.im/palmerhq/backpack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
55

6-
Backpack is minimalistic build system for Node.js. Inspired by Facebook's [create-react-app](https://github.com/facebookincubator/create-react-app), Zeit's [Next.js](https://github.com/zeit/next.js), and Remy's [Nodemon](https://github.com/remy/nodemon), Backpack let's you create modern Node.js apps and services with zero configuration. Backpack handles all the file-watching, live-reloading, transpiling, and bundling, so you don't have to. It comes with a few ~~conventions~~ defaults (like support for the latest JavaScript awesomeness (i.e. async/await, object rest spread, and class properties)), but everything can be customized to fit your project's needs. Best of all, you can easily add Backpack to your existing Node.js project with just a single dependency.
6+
Backpack is minimalistic build system for Node.js. Inspired by Facebook's [create-react-app](https://github.com/facebookincubator/create-react-app), Zeit's [Next.js](https://github.com/zeit/next.js), and Remy's [Nodemon](https://github.com/remy/nodemon), Backpack lets you create modern Node.js apps and services with zero configuration. Backpack handles all the file-watching, live-reloading, transpiling, and bundling, so you don't have to. It comes with a few ~~conventions~~ defaults (like support for the latest JavaScript awesomeness (i.e. async/await, object rest spread, and class properties)), but everything can be customized to fit your project's needs. Best of all, you can easily add Backpack to your existing Node.js project with just a single dependency.
77

88
**Backpack comes with the "battery-pack included":**
99

@@ -37,7 +37,7 @@ After that there are just a few ~~conventions~~ defaults:
3737

3838
- `src/index.js`: the entry of your app.
3939

40-
...actually thats it.
40+
...actually that's it.
4141

4242
You can then run your application in development mode:
4343

@@ -93,7 +93,7 @@ Then run the build command and start your app
9393

9494
```bash
9595
npm run build
96-
node ./build/server/main.js
96+
node ./build/main.js
9797
```
9898

9999
## CLI Commands
@@ -113,7 +113,7 @@ It correctly bundles your production mode and optimizes the build for the best p
113113
You can run your production application with the following command:
114114

115115
```bash
116-
node ./build/server/main.js
116+
node ./build/main.js
117117
```
118118

119119
Your application is ready to be deployed!

packages/backpack-core/config/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
publicBuildPath,
1010
publicSrcPath: path.join(rootPath, 'public'),
1111
serverSrcPath: path.join(rootPath, 'src'),
12-
serverBuildPath: path.join(buildPath, 'server'),
12+
serverBuildPath: buildPath,
1313
userNodeModulesPath: path.join(rootPath, 'node_modules'),
1414
publicPath: '/',
1515
serverUrl: 'http://localhost:3000'

packages/backpack-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backpack-core",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Backpack is a minimalistic build system for Node.js",
55
"author": "@jaredpalmer",
66
"license": "MIT",

0 commit comments

Comments
 (0)