1
0
Fork 0
freesewing/config/scripts.yaml

56 lines
3 KiB
YAML
Raw Normal View History

_:
build: 'node build.js'
cibuild_step1: 'node build.js'
2020-08-08 17:20:08 +02:00
clean: 'rimraf dist'
mbuild: 'NO_MINIFY=1 node build.js'
2020-08-08 17:20:08 +02:00
symlink: 'mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -'
test: &notests 'echo "{{name}}: No tests configured. Perhaps you''d like to do this?" && exit 0'
vbuild: 'VERBOSE=1 node build.js'
2019-05-31 16:33:01 +02:00
_types:
pattern:
prettier: "npx prettier --write 'src/*.js' 'config/*.js'"
2022-02-19 10:07:43 +01:00
test: &test 'BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register'
testci: &testci "BABEL_ENV=production npx mocha tests/*.test.mjs --require @babel/register --reporter ../../tests/reporters/terse.js"
plugin:
prettier: "npx prettier --write 'src/*.js' 'tests/*.mjs'"
test: *test
testci: *testci
create-freesewing-pattern:
build: '!'
cibuild_step1: '!'
2020-08-08 17:20:08 +02:00
clean: '!'
mbuild: '!'
2020-08-08 17:20:08 +02:00
modulebuild: '!'
nodebuild: '!'
test: '!'
testci: '!'
vbuild: '!'
css-theme:
2020-08-08 17:20:08 +02:00
build: 'npx node-sass --output-style compressed src/theme.scss dist/theme.css'
cibuild_step1: 'npx node-sass --output-style compressed src/theme.scss dist/theme.css'
2020-08-08 17:20:08 +02:00
watch: 'npx node-sass --watch --output-style compressed src/theme.scss dist/theme.css'
components:
clean: 'rimraf Blockquote && rimraf Draft && rimraf DraftConfigurator && rimraf Emblem && rimraf Example && rimraf Footer && rimraf Icon && rimraf Legend && rimraf LineDrawing && rimraf Logo && rimraf Navbar && rimraf Ogol && rimraf Robot && rimraf SampleConfigurator && rimraf Spinner && rimraf withGist && rimraf withLanguage && rimraf withStorage && rimraf Workbench'
2020-08-08 17:20:08 +02:00
storybook: 'start-storybook -p 6663'
test: *notests
core:
coverage: 'BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov'
report: 'BABEL_ENV=production nyc report --reporter=html'
2022-02-19 10:07:43 +01:00
test: 'BABEL_ENV=production nyc -x node_modules -x tests/fixtures -x bin-pack npx mocha tests/*.test.js'
testci: "BABEL_ENV=production npx mocha tests/*.test.js --require @babel/register --reporter ../../tests/reporters/terse.js"
testonly: 'BABEL_ENV=production npx mocha tests/*.test.js'
i18n:
# react-scripts doesn't handle .mjs files correctly
modulebuild: '!'
prebuild: 'node src/prebuild.mjs'
test: *test
testci: *testci
pattern-info:
cibuild_step1: '!'
cibuild_step2: 'node src/prebuild.js && node build.js'
2020-08-08 17:20:08 +02:00
prebuild: 'node src/prebuild.js'
utils:
clean: "rimraf backend && rimraf camelCase && rimraf capitalize && rimraf cloneObject && rimraf convertSize && rimraf defaultGist && rimraf defaultSa && rimraf formatImperial && rimraf formatMm && rimraf isDegMeasurement && rimraf measurementAsMm && rimraf measurementDiffers && rimraf neckstimate && rimraf optionDefault && rimraf optionType && rimraf roundMm && rimraf roundMmDown && rimraf roundMmUp && rimraf sliderStep && rimraf smallestImperialStep && rimraf storage && rimraf tiler && rimraf validateEmail && rimraf validateTld"
# react-scripts doesn't handle .mjs files correctly
modulebuild: '!'