Skip to content

Commit c43f96a

Browse files
committed
Updates for ignore
1 parent f86cf29 commit c43f96a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.npmignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.swp
2+
*~
3+
*.iml
4+
.*.haste_cache.*
5+
.DS_Store
6+
.idea
7+
.babelrc
8+
.eslintrc
9+
npm-debug.log
10+
src/
11+
examples/
12+
public/
13+
scripts/
14+
test/

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
"description": "A firebase v3 adapter",
66
"main": "index",
77
"scripts": {
8+
"preversion": ". ./scripts/prepublish.sh",
89
"start": "node node_modules/react-native/local-cli/cli.js start",
910
"build": "./node_modules/.bin/babel --source-maps=true --out-dir=dist .",
1011
"dev": "npm run compile -- --watch",
12+
"lint": "eslint ./src",
13+
"publish_pages": "gh-pages -d public/",
1114
"test": "./node_modules/.bin/mocha"
1215
},
1316
"repository": {

scripts/prepublish.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
echo "=> Transpiling..."
4+
echo ""
5+
export NODE_ENV=production
6+
rm -rf ./dist
7+
./node_modules/.bin/babel \
8+
--plugins 'transform-es2015-modules-umd' \
9+
--presets 'stage-0,react' \
10+
--ignore __tests__ \
11+
--out-dir ./dist \
12+
lib
13+
echo ""
14+
echo "=> Complete"

0 commit comments

Comments
 (0)