Selaa lähdekoodia

fixed scripts

sanex3339 8 vuotta sitten
vanhempi
commit
e622111941
7 muutettua tiedostoa jossa 21 lisäystä ja 29 poistoa
  1. 2 2
      scripts/build
  2. 1 1
      scripts/test-compile
  3. 3 3
      scripts/test-coveralls
  4. 3 3
      scripts/test-full
  5. 2 2
      scripts/test-mocha
  6. 1 1
      scripts/travis
  7. 9 17
      webpack.config.js

+ 2 - 2
scripts/build

@@ -1,5 +1,5 @@
 #!/bin/bash
 
-npm run webpack
-npm run tslint
+npm run webpack &&
+npm run tslint &&
 npm test

+ 1 - 1
scripts/test-compile

@@ -1,4 +1,4 @@
 #!/bin/bash
 
-$(npm bin)/tsc -p tsconfig-test.json
+$(npm bin)/tsc -p tsconfig-test.json &&
 $(npm bin)/babel test-tmp --out-dir test-tmp --source-maps inline --presets es2015

+ 3 - 3
scripts/test-coveralls

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-npm run test:compile
-$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/index.spec.js --report lcovonly
-cat ./coverage/lcov.info | $(npm bin)/coveralls
+npm run test:compile &&
+$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/index.spec.js --report lcovonly &&
+cat ./coverage/lcov.info | $(npm bin)/coveralls &&
 npm run test:removeTmpDir

+ 3 - 3
scripts/test-full

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-npm run test:compile
-node test-tmp/test/dev/test.js
-$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/index.spec.js
+npm run test:compile &&
+node test-tmp/test/dev/test.js &&
+$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/index.spec.js &&
 npm run test:removeTmpDir

+ 2 - 2
scripts/test-mocha

@@ -1,5 +1,5 @@
 #!/bin/bash
 
-npm run test:compile
-$(npm bin)/mocha test-tmp/test/index.spec.js
+npm run test:compile &&
+$(npm bin)/mocha test-tmp/test/index.spec.js &&
 npm run test:removeTmpDir

+ 1 - 1
scripts/travis

@@ -1,4 +1,4 @@
 #!/bin/bash
 
-npm run tslint
+npm run tslint &&
 npm test

+ 9 - 17
webpack.config.js

@@ -12,23 +12,7 @@ ${fs.readFileSync('./LICENSE.BSD', 'utf8')}
 */`;
 }
 
-const isTravisEnv = process.env.TRAVIS ? JSON.parse(process.env.TRAVIS) : false;
-const plugins = [
-    new webpack.BannerPlugin(
-        {
-            banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`,
-            raw: true,
-            entryOnly: false
-        }
-    )
-];
-
-if (isTravisEnv) {
-    plugins.push(new webpack.NoErrorsPlugin());
-}
-
 module.exports = {
-    bail: isTravisEnv,
     entry: {
         'index': './index.ts'
     },
@@ -44,7 +28,15 @@ module.exports = {
         extensions: ['', '.ts'],
         modulesDirectories: ['./src', './node_modules']
     },
-    plugins: plugins,
+    plugins: [
+        new webpack.BannerPlugin(
+            {
+                banner: `${getLicenseText()}\n\nrequire("source-map-support").install();\n`,
+                raw: true,
+                entryOnly: false
+            }
+        )
+    ],
     output: {
         path: './dist',
         filename: '[name].js',