diff --git a/.gitignore b/.gitignore index 2d1bdf35..545179e3 100644 --- a/.gitignore +++ b/.gitignore @@ -63,4 +63,5 @@ public yarn-error.log plugins gatsby-node.js -loader.js \ No newline at end of file +loader.js +utils.js diff --git a/package.json b/package.json index f088594b..ef114d4b 100644 --- a/package.json +++ b/package.json @@ -31,17 +31,19 @@ "gatsby": ">2.0.0-beta" }, "scripts": { - "build": "babel src --out-dir . --ignore **/test_build", - "build:test": "babel src --out-dir plugins/gatsby-plugin-purgecss --ignore **/test_build", + "build": "babel src --out-dir .", + "build:test": "babel src --out-dir plugins/gatsby-plugin-purgecss", "build:test_build": "cd test_build && npm run build && cd ..", - "test": "npm run build:test && node prepareTests.js && npm run build:test_build && jest", + "test": "npm run test:unit && npm run build:test && node prepareTests.js && npm run build:test_build && jest", + "test:unit": "jest --testPathIgnorePatterns build_e2e.test.js .cache/", "jest": "jest", "release": "node -r dotenv/config node_modules/release-it/bin/release-it.js" }, "files": [ "index.js", "gatsby-node.js", - "loader.js" + "loader.js", + "utils.js" ], "repository": { "type": "git", diff --git a/release.js b/release.js deleted file mode 100644 index fb0e1503..00000000 --- a/release.js +++ /dev/null @@ -1,19 +0,0 @@ -const { spawn } = require('child_process'); - -const child = spawn('release-it', { - shell: true -}); - -process.stdin.pipe(child.stdin) - -child.stdout.on('data', (data) => { - process.stdout.write(data.toString()); -}); - -child.stderr.on('data', (data) => { - process.stdout.write(data.toString()); -}); - -child.on('exit', (code) => { - console.log(`Child exited with code ${code}`); -}); \ No newline at end of file