yamscripts.yml (2128B)
1 # This file compiles to package.json scripts. 2 # When you add or modify anything, you *MUST* run: 3 # npm run yamscripts 4 # to compile your changes. 5 6 scripts: 7 # bundle: Build all assets for ASRouter 8 bundle: 9 admin: webpack-cli --config webpack.asrouter-admin.config.js 10 css: sass content-src:content --no-source-map 11 12 # watchmc: Automatically rebuild when files are changed. NOTE: Includes sourcemaps, do not use for profiling/perf testing. 13 watchmc: 14 _parallel: true 15 bundle: =>bundle:admin -- --env development -w 16 css: =>bundle:css -- --source-map --embed-sources --embed-source-map -w 17 18 testmc: 19 lint: =>lint 20 build: =>bundle:admin 21 unit: karma start karma.mc.config.js 22 import: =>import-rollouts 23 24 tddmc: karma start karma.mc.config.js --tdd 25 26 debugcoverage: open logs/coverage/lcov-report/index.html 27 28 # lint: Run various linters with mach or local dev dependencies 29 lint: 30 codespell: (cd $npm_package_config_mc_root && ./mach lint -l codespell $npm_package_config_asrouter_path) 31 eslint: (cd $npm_package_config_mc_root && ./mach lint -l eslint $npm_package_config_asrouter_path) 32 license: (cd $npm_package_config_mc_root && ./mach lint -l license $npm_package_config_asrouter_path) 33 stylelint: (cd $npm_package_config_mc_root && ./mach lint -l stylelint $npm_package_config_asrouter_path) 34 35 # test: Run all tests once 36 test: =>testmc 37 38 # tdd: Run content tests continuously 39 tdd: =>tddmc 40 41 # script for the `source-test-node-messagingsystem-unit-tests` task on taskcluster. 42 # this is what appears as `messagingsystem` in treeherder results after pushing to try. 43 # so this npm script allows us to run the same tests locally that patches will 44 # be run against in CI. 45 try: node ./bin/try-runner.js 46 47 fix: 48 # Note that since we're currently running eslint-plugin-prettier, 49 # running fix:eslint will also reformat changed JS files using prettier. 50 eslint: =>lint:eslint -- --fix 51 stylelint: =>lint:stylelint -- --fix 52 53 # script to import Nimbus rollouts into NimbusRolloutMessageProvider.sys.mjs 54 import-rollouts: node ./bin/import-rollouts.js