Skip to content

Commit cd15b26

Browse files
author
Mina Smart
committed
Move files into place
1 parent 4c12137 commit cd15b26

File tree

109 files changed

+40
-6879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+40
-6879
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"clean": "rimraf .tmp types.js",
1313
"setup-paths": "mkdir -p .tmp/test",
1414
"test": "yarn run clean && yarn run setup-paths && yarn run test:node-deps && yarn run mocha",
15-
"test:watch": "cross-env BABEL_ENV='browser' node -- scripts-graphql/test-build-watch.js --with-dependency-tracking .tmp/test/tests.js",
15+
"test:watch": "cross-env BABEL_ENV='browser' node -- scripts/test-build-watch.js --with-dependency-tracking .tmp/test/tests.js",
1616
"test:web-deps": "concurrently 'yarn run test:copy-web-deps' 'yarn run schema:transform-to-types'",
17-
"test:node-deps": "yarn run schema:transform-to-types && cross-env BABEL_ENV='node' node -- scripts-graphql/test-build-node.js --with-dependency-tracking .tmp/test/node-tests.js",
18-
"test:copy-web-deps": "cp test-graphql/index.html node_modules/mocha/mocha.* node_modules/jquery/dist/jquery.slim.min.js .tmp/test/ && cp node_modules/expect.js/index.js .tmp/test/expect.js",
19-
"test:livereload-server": "node scripts-graphql/livereload.js",
17+
"test:node-deps": "yarn run schema:transform-to-types && cross-env BABEL_ENV='node' node -- scripts/test-build-node.js --with-dependency-tracking .tmp/test/node-tests.js",
18+
"test:copy-web-deps": "cp test/index.html node_modules/mocha/mocha.* node_modules/jquery/dist/jquery.slim.min.js .tmp/test/ && cp node_modules/expect.js/index.js .tmp/test/expect.js",
19+
"test:livereload-server": "node scripts/livereload.js",
2020
"mocha": "mocha -u tdd $(yarn run mocha:reporter-args 2>&1 >/dev/null) .tmp/test/node-tests.js",
2121
"mocha:reporter-args": "test -n \"${CI}\" && >&2 echo --reporter xunit --reporter-options output=$CIRCLE_TEST_REPORTS/junit/mocha.xml || true",
22-
"lint": "eslint --max-warnings 0 -c .eslintrc.json $(yarn run lint:reporter-args 2>&1 >/dev/null) src-graphql/ test-graphql/",
22+
"lint": "eslint --max-warnings 0 -c .eslintrc.json $(yarn run lint:reporter-args 2>&1 >/dev/null) src/ test/",
2323
"lint:reporter-args": "test -n \"${CI}\" && >&2 echo -o $CIRCLE_TEST_REPORTS/junit/eslint.xml -f junit",
2424
"print-start-message": "wait-on file:.tmp/test/index.html file:.tmp/test/tests.js tcp:35729 tcp:4200 file:types.js && echo \"\n\n⚡️⚡️⚡️ Good to go at http://localhost:4200 ⚡️⚡️⚡️\"",
2525
"schema:refresh": "rimraf types.js && yarn run schema:fetch && yarn run schema:transform-to-types",

rollup.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const targets = [];
99
// eslint-disable-next-line no-process-env
1010
if (process.env.BUILD_MODE === 'production') {
1111
plugins.push(remap({
12-
originalPath: './src-graphql/graphl-client',
13-
targetPath: './src-graphql/graphl-client-dev'
12+
originalPath: './src/graphl-client',
13+
targetPath: './src/graphl-client-dev'
1414
}));
1515

1616
targets.push(
File renamed without changes.

scripts/build-doc

-19
This file was deleted.

scripts/build-testing-sdk.js

-40
This file was deleted.

scripts/ci/deps

-31
This file was deleted.

scripts/ci/setup-node

-17
This file was deleted.

scripts/ci/test

-29
This file was deleted.

scripts/deploy

-74
This file was deleted.
File renamed without changes.
File renamed without changes.

scripts-graphql/rollup-tests.js scripts/rollup-tests.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function envRollupInfo({browser, withDependencyTracking}) {
1616
json(),
1717
eslintTestGenerator({
1818
paths: [
19-
'src-graphql',
20-
'test-graphql'
19+
'src',
20+
'test'
2121
]
2222
}),
2323
commonjs({
@@ -38,16 +38,16 @@ function envRollupInfo({browser, withDependencyTracking}) {
3838
// eslint-disable-next-line no-process-env
3939
if (!withDependencyTracking) {
4040
plugins.unshift(remap({
41-
originalPath: './src-graphql/graphl-client',
42-
targetPath: './src-graphql/graphl-client-dev'
41+
originalPath: './src/graphl-client',
42+
targetPath: './src/graphl-client-dev'
4343
}));
4444
}
4545

4646
if (browser) {
4747
plugins.unshift(globals(), builtins());
4848
plugins.unshift(remap({
49-
originalPath: './test-graphql/isomorphic-fetch-mock.js',
50-
targetPath: './test-graphql/fetch-mock-browser.js'
49+
originalPath: './test/isomorphic-fetch-mock.js',
50+
targetPath: './test/fetch-mock-browser.js'
5151
}));
5252
} else {
5353
external.push(
@@ -62,8 +62,8 @@ function envRollupInfo({browser, withDependencyTracking}) {
6262
'string_decoder'
6363
);
6464
plugins.unshift(remap({
65-
originalPath: './test-graphql/isomorphic-fetch-mock.js',
66-
targetPath: './test-graphql/fetch-mock-node.js'
65+
originalPath: './test/isomorphic-fetch-mock.js',
66+
targetPath: './test/fetch-mock-node.js'
6767
}));
6868
}
6969

@@ -74,7 +74,7 @@ function rollupTests({dest, withDependencyTracking, cache, browser}) {
7474
const {plugins, external, format} = envRollupInfo({withDependencyTracking, browser});
7575

7676
return rollup.rollup({
77-
entry: 'test-graphql/**/*-test.js',
77+
entry: 'test/**/*-test.js',
7878
plugins,
7979
external,
8080
cache

scripts/runBabel.js

-53
This file was deleted.
File renamed without changes.

scripts-graphql/test-build-watch.js scripts/test-build-watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function notifyReload() {
1414
fetch(reloadUri);
1515
}
1616

17-
watcher([['src-graphql', 'js'], ['test-graphql', 'js']], () => {
17+
watcher([['src', 'js'], ['test', 'js']], () => {
1818
const start = Date.now();
1919

2020
rollupTests({dest, withDependencyTracking, cache: bundle, browser: true}).then((newBundle) => {

0 commit comments

Comments
 (0)