Skip to content

Commit f68cbde

Browse files
committed
Remove any remaining test262, coverage, and cookbook bits
1 parent 7c48325 commit f68cbde

File tree

4 files changed

+17
-58
lines changed

4 files changed

+17
-58
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
package-lock.json
2-
index.js
32
node_modules/
4-
coverage/
53
dist/

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
rollup.config.js
2-
rollup-script.config.js
32
test
4-
test262
53
types
64
tsconfig.json
75
*.sh

package.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,8 @@
77
"browser": "dist/index.umd.js",
88
"types": "index.d.ts",
99
"scripts": {
10-
"coverage": "c8 report --reporter html",
1110
"test": "node --no-warnings --experimental-modules --icu-data-dir node_modules/full-icu --loader ./test/resolve.source.mjs ./test/all.mjs",
12-
"test-cookbook": "TEST=all npm run test-cookbook-one && TEST=stockExchangeTimeZone npm run test-cookbook-one",
13-
"test-cookbook-one": "node --no-warnings --experimental-modules --icu-data-dir node_modules/full-icu --loader ./test/resolve.cookbook.mjs ../docs/cookbook/$TEST.mjs",
14-
"test262": "./ci_test.sh",
15-
"codecov:tests": "NODE_V8_COVERAGE=coverage/tmp npm run test && c8 report --reporter=text-lcov > coverage/tests.lcov && codecov -F tests -f coverage/tests.lcov",
16-
"codecov:test262": "COVERAGE=yes npm run test262 && codecov -F test262 -f coverage/test262.lcov",
1711
"build": "rollup -c rollup.config.js",
18-
"build262": "TEST262=1 rollup -c rollup.config.js",
1912
"prepublishOnly": "npm run build",
2013
"playground": "node --experimental-modules --no-warnings --icu-data-dir node_modules/full-icu -r ./lib/init.js"
2114
},
@@ -67,16 +60,10 @@
6760
"@rollup/plugin-commonjs": "^15.1.0",
6861
"@rollup/plugin-node-resolve": "^9.0.0",
6962
"@rollup/plugin-replace": "^2.3.3",
70-
"c8": "^7.3.1",
71-
"codecov": "^3.7.2",
72-
"core-js": "^3.6.4",
7363
"full-icu": "^1.3.0",
74-
"nyc": "^15.1.0",
7564
"rollup": "^2.28.2",
7665
"rollup-plugin-terser": "^7.0.2",
77-
"test262-harness": "^7.5.2",
78-
"timezones.json": "^1.5.2",
79-
"uuid": "^8.3.0"
66+
"timezones.json": "^1.5.2"
8067
},
8168
"engines": {
8269
"node": ">=12"

rollup.config.js

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,27 @@ import { terser } from 'rollup-plugin-terser';
66
import { env } from 'process';
77

88
const isProduction = env.NODE_ENV === 'production';
9-
const isTest262 = !!env.TEST262;
109
const libName = 'temporal';
11-
const babelConfig = {
12-
exclude: 'node_modules/**',
13-
babelHelpers: 'bundled',
14-
presets: [
15-
[
16-
'@babel/preset-env',
17-
{
18-
targets: '> 0.25%, not dead'
19-
}
20-
]
21-
]
22-
};
23-
const replaceConfig = { exclude: 'node_modules/**' };
24-
const resolveConfig = { preferBuiltins: false };
2510

2611
export default [
27-
!isTest262 && {
12+
{
2813
input: 'lib/index.mjs',
2914
plugins: [
30-
replace({ ...replaceConfig, __debug__: !isProduction }),
15+
replace({ exclude: 'node_modules/**', __debug__: !isProduction }),
3116
commonjs(),
32-
resolve(resolveConfig),
33-
babel(babelConfig),
17+
resolve({ preferBuiltins: false }),
18+
babel({
19+
exclude: 'node_modules/**',
20+
babelHelpers: 'bundled',
21+
presets: [
22+
[
23+
'@babel/preset-env',
24+
{
25+
targets: '> 0.25%, not dead'
26+
}
27+
]
28+
]
29+
}),
3430
isProduction && terser()
3531
],
3632
output: [
@@ -47,25 +43,5 @@ export default [
4743
sourcemap: true
4844
}
4945
]
50-
},
51-
{
52-
input: 'lib/shim.mjs',
53-
plugins: [replace({ ...replaceConfig, __debug__: false }), commonjs(), resolve(resolveConfig)],
54-
output: {
55-
name: libName,
56-
file: 'script.js',
57-
format: 'iife',
58-
sourcemap: true
59-
}
60-
},
61-
!isTest262 && {
62-
input: 'lib/shim.mjs',
63-
output: {
64-
name: libName,
65-
file: '../out/docs/playground.js',
66-
format: 'umd',
67-
sourcemap: true
68-
},
69-
plugins: [replace({ ...replaceConfig, __debug__: true }), commonjs(), resolve(resolveConfig), babel(babelConfig)]
7046
}
71-
].filter(Boolean);
47+
];

0 commit comments

Comments
 (0)