Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 5b587da

Browse files
author
jiangmu
committed
build: add dev scripts
1 parent bf24b7f commit 5b587da

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ More stuff coming soon. Stay tuned!
5959
- Fork or clone this repo. Alternatively - if you have NPM installed, you can also do `npm install adminlte-reactjs`.
6060
- Install nodejs and NPM
6161
- Go to the project's root folder from your terminal and run `npm install`
62-
- Run `node server.js`
62+
- Run `npm run dev`
6363
- Going to [http://localhost:8000](http://localhost:8000) will render an empty dashboard skeleton in the client-side using ReactJS. Clicking on one of the dashboard options on the left pane displays the original dashboards from AdminLTE.
6464
- Go to [http://localhost:8000/widgets.html](http://localhost:8000/widgets.html) to see available widgets in ReactJS.
6565
- Use [React Developer Tools Chrome Extension](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) to understand the components hierarchy and structure and to track down bugs.
@@ -105,4 +105,4 @@ After you've finished writing a component and testing it out, you can include it
105105
- You can learn more about these tips in detail [here](https://guides.github.com/activities/contributing-to-open-source/#contributing)
106106

107107

108-
##### If you have any further queries that you may have on how to contribute, or you have just general questions about how to use the components in your app - feel free to shoot an email. I'll help you out! :smile_cat:
108+
##### If you have any further queries that you may have on how to contribute, or you have just general questions about how to use the components in your app - feel free to shoot an email. I'll help you out! :smile_cat:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"webpack-dev-server": "~1.14.1"
4242
},
4343
"scripts": {
44+
"dev": "node server.js",
4445
"test": "mocha test -u bdd -R spec",
4546
"build": "webpack -p --config ./webpack.production.config.js"
4647
}

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var config = {
4949
new webpack.optimize.CommonsChunkPlugin('vendors', 'dist/js/vendors.js', Infinity),
5050
new webpack.DefinePlugin({
5151
'process.env': {
52-
'NODE_ENV': JSON.stringify('production')
52+
'NODE_ENV': JSON.stringify('development')
5353
}
5454
}),
5555
new webpack.optimize.UglifyJsPlugin({
@@ -135,4 +135,4 @@ WebPack that whenever we try to require something that ends with .js it should r
135135
"dev": "webpack-dev-server --devtool eval --progress --colors --content-base views/"
136136
},
137137
138-
*/
138+
*/

0 commit comments

Comments
 (0)