Skip to content

Commit 47a98f5

Browse files
committed
Add build system. 0.2.0
1 parent a4075e0 commit 47a98f5

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"stage": 0
2+
"stage": 0,
3+
"optional": ["runtime"]
34
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
npm-debug.log
33
.DS_Store
4+
lib

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src
2+
examples

package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "redux",
3-
"version": "0.1.0",
4-
"description": "Work in progress",
3+
"version": "0.2.0",
4+
"description": "An experiment in fully hot-reloadable Flux",
5+
"main": "lib/index.js",
56
"scripts": {
67
"start": "cd examples && node server.js",
7-
"lint": "eslint src"
8+
"lint": "eslint src",
9+
"build": "./scripts/build",
10+
"prepublish": "npm run build"
811
},
912
"repository": {
1013
"type": "git",
@@ -28,6 +31,7 @@
2831
},
2932
"homepage": "https://github.com/gaearon/redux",
3033
"devDependencies": {
34+
"babel": "^5.4.7",
3135
"babel-core": "^5.4.7",
3236
"babel-eslint": "^3.1.9",
3337
"babel-loader": "^5.1.2",
@@ -37,6 +41,7 @@
3741
"webpack-dev-server": "^1.8.2"
3842
},
3943
"dependencies": {
44+
"babel-runtime": "^5.4.7",
4045
"lodash": "^3.9.3",
4146
"react": "^0.13.0"
4247
}

scripts/build

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
./node_modules/.bin/babel src --out-dir lib

0 commit comments

Comments
 (0)