Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Rename test-phenomic-theme-base to test-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 3, 2016
1 parent 4228ab8 commit 599d350
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[ignore]
.*/node_modules/.*
.*/docs/node_modules/.*
.*/test-phenomic-theme-base/.*
.*/test-setup/.*
.*/lib/.*
.*/coverage/.*
.*/.nyc_output/.*
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ docs/content/assets/showcases/*

# phenomic-theme-base files to work on it
themes/phenomic-theme-base/dist
test-phenomic-theme-base
test-setup

# logo
logo/*.png
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cache:
directories:
- node_modules
- phenomic-theme-base/node_modules
- test-phenomic-theme-base/node_modules
- test-setup/node_modules
- docs/node_modules

before_install:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matrix:
cache:
- node_modules -> package.json
- phenomic-theme-base/node_modules -> package.json
- test-phenomic-theme-base/node_modules -> package.json
- test-setup/node_modules -> package.json
- docs/node_modules -> package.json

install:
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tests here need to be run with a transpiled sources & a test folder ready to run

```console
npm run transpile
npm run test-phenomic-theme-base:prepare
npm run test-setup:prepare
npm run e2e:tests
```

Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/__tests__/cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ it("should build the base theme correctly",
reject("Build should work")
}

const testFolder = __dirname + "/../../test-phenomic-theme-base/dist"
const testFolder = __dirname + "/../../test-setup/dist"
const files = globby.sync("**/*", {
cwd: testFolder,
nodir: true,
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/__tests__/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readFileSync } from "fs"
export { exec } from "child_process"

const target = join(
__dirname, "..", "..", "..", "test-phenomic-theme-base"
__dirname, "..", "..", "..", "test-setup"
)

export const execOpts = { cwd: target, stdio: "inherit" }
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@
"phenomic-theme-base-linting": "eslint --config package.json --ignore-path .gitignore --fix themes/phenomic-theme-base/scripts themes/phenomic-theme-base/src",
"prephenomic-theme-base-start": "npm run transpile && npm run phenomic-theme-base",
"phenomic-theme-base-start": "cd themes/phenomic-theme-base && npm start",
"test-phenomic-theme-base:prepare": "babel-node scripts/test-phenomic-theme-base.js",
"pretest-phenomic-theme-base": "npm run test-phenomic-theme-base:prepare",
"test-phenomic-theme-base": "cd test-phenomic-theme-base && npm test",
"test-setup:prepare": "babel-node scripts/test-setup.js",
"pretest-setup": "npm run test-setup:prepare",
"test-setup": "cd test-setup && npm test",
"docs": "babel-node scripts/docs.js",
"docs-linting": "eslint --ignore-path .gitignore --fix docs/scripts docs/src",
"docs-webpack-2": "npm i webpack@^2.1.0-beta.25 && babel-node scripts/docs.js && cd docs && npm i extract-text-webpack-plugin@^2.0.0-beta.4",
Expand All @@ -173,7 +173,7 @@
"predocs-deploy": "cd docs && npm run showcase-screenshots && npm run build",
"docs-deploy": "cd docs && ./scripts/deploy.sh",
"pretest": "npm run transpile && npm run lint",
"test": "npm run tests && npm run phenomic-theme-base && npm run phenomic-theme-base-linting && npm run test-phenomic-theme-base && npm run e2e:tests",
"test": "npm run tests && npm run phenomic-theme-base && npm run phenomic-theme-base-linting && npm run test-setup && npm run e2e:tests",
"posttest": "npm run test-docs",
"coverage": "cat ./coverage/lcov.info | coveralls",
"release": "npmpub",
Expand Down
6 changes: 3 additions & 3 deletions scripts/test-phenomic-theme-base.js → scripts/test-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import globby from "globby"

import testFolder, { exec } from "./utils/test-folder.js"

const target = "test-phenomic-theme-base"
const target = "test-setup"

testFolder(
target,
{
// test-phenomic-theme-base cleanu
// test-setup cleanu
cleanup: async () => Promise.all(
globby.sync("test-phenomic-theme-base/!(node_modules)", { dot: true })
globby.sync("test-setup/!(node_modules)", { dot: true })
.map(
(file) => remove(file)
),
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/test-folder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// All these weird steps for this 'simple' test-phenomic-theme-base has been
// All these weird steps for this 'simple' test-setup has been
// made to boost CI testing, tune with care if you dare to

import pify from "pify"
Expand Down

0 comments on commit 599d350

Please sign in to comment.