summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-10-03 18:41:25 +0200
committerSamy Pesse <samypesse@gmail.com>2016-10-03 18:41:25 +0200
commit026cc8304d38d7fc9bd02e9978ff52416eabbec0 (patch)
tree1c8d1a69fe521a6784ad08000f0e37261e53bb77
parentcefbfdc7b825b13302dabfe95a39e81beef078bf (diff)
downloadgitbook-026cc8304d38d7fc9bd02e9978ff52416eabbec0.zip
gitbook-026cc8304d38d7fc9bd02e9978ff52416eabbec0.tar.gz
gitbook-026cc8304d38d7fc9bd02e9978ff52416eabbec0.tar.bz2
Don't compile tests file with babel
-rw-r--r--.gitignore1
-rw-r--r--packages/gitbook/.gitignore1
-rw-r--r--packages/gitbook/package.json2
3 files changed, 2 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index a9b58d9..922a5ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,7 +28,6 @@ node_modules
*.swp
# GitBook with babel
-/packages/gitbook/lib
/packages/gitbook-core/lib
/packages/gitbook-plugin/lib
diff --git a/packages/gitbook/.gitignore b/packages/gitbook/.gitignore
new file mode 100644
index 0000000..a65b417
--- /dev/null
+++ b/packages/gitbook/.gitignore
@@ -0,0 +1 @@
+lib
diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json
index c3e9ce9..93264e9 100644
--- a/packages/gitbook/package.json
+++ b/packages/gitbook/package.json
@@ -69,7 +69,7 @@
},
"scripts": {
"test": "./node_modules/.bin/mocha ./testing/setup.js \"./src/**/*/__tests__/*.js\" --bail --reporter=list --timeout=10000 --compilers js:babel-register",
- "dist": "rm -rf lib/ && babel -d lib/ src/",
+ "dist": "rm -rf lib/ && babel -d lib/ src/ --source-maps --ignore \"**/*/__tests__/*.js\"",
"prepublish": "npm run dist"
},
"repository": {