|
22 | 22 | },
|
23 | 23 | "scripts": {
|
24 | 24 | "clean": "rm -rf generated dist lib coverage",
|
25 |
| - "postclean": "mkdir -p generated dist", |
| 25 | + "postclean": "mkdirp generated dist", |
26 | 26 | "compile:browser": "browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p headerify -t babelify",
|
27 | 27 | "compile:browser:test": "browserify regression/browser-helper.js --outfile $npm_package_config_test_bundle -t babelify -t coffeeify --extension=\".coffee\" -t require-globify --ignore-missing",
|
28 | 28 | "compile:node": "babel src -d lib",
|
| 29 | + "precompile": "yarn clean", |
29 | 30 | "compile": "yarn compile:node && yarn compile:browser && yarn compile:browser:test",
|
30 | 31 | "cover": "nyc --reporter=lcov --reporter=text-summary --require babel-core/register _mocha --ui mocha-given --reporter $npm_package_config_mocha_reporter --compilers coffee:coffee-script --recursive regression/node-helper.coffee regression/src",
|
31 | 32 | "cover:unit": "nyc --reporter=html yarn test:unit",
|
|
35 | 36 | "test:all": "yarn test:unit && yarn test && yarn test:browser && yarn test:example && yarn test:typescript",
|
36 | 37 | "test:browser": "testem ci",
|
37 | 38 | "test:unit": "teenytest",
|
38 |
| - "test:ci": "yarn clean && yarn compile && yarn style && yarn test:all && echo \"All done!\"", |
| 39 | + "test:ci": "yarn compile && yarn style && yarn test:all && echo \"All done!\"", |
39 | 40 | "test:typescript": "tsc --outDir generated/typescript -p regression/typescript && node generated/typescript/test.js",
|
40 | 41 | "test:example:webpack": "cd examples/webpack && npm install && npm test",
|
41 | 42 | "test:example:node": "cd examples/node && npm install && npm test",
|
|
0 commit comments