yamscripts.yml (1825B)
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 activity stream 8 bundle: 9 welcomeBundle: webpack-cli --config webpack.aboutwelcome.config.js 10 welcomeCss: 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 welcomeBundle: =>bundle:welcomeBundle -- --env development -w 16 welcomeCss: =>bundle:welcomeCss -- --source-map --embed-sources --embed-source-map -w 17 18 testmc: 19 lint: =>lint 20 build: =>bundle:welcomeBundle 21 unit: karma start karma.mc.config.js 22 23 tddmc: karma start karma.mc.config.js --tdd 24 25 debugcoverage: open logs/coverage/lcov-report/index.html 26 27 # lint: Run various linters with mach or local dev dependencies 28 lint: 29 codespell: (cd $npm_package_config_mc_root && ./mach lint -l codespell $npm_package_config_welcome_path) 30 eslint: (cd $npm_package_config_mc_root && ./mach lint -l eslint $npm_package_config_welcome_path) 31 l10n: (cd $npm_package_config_mc_root && ./mach lint -l l10n --warnings soft browser/locales/en-US/browser/newtab) 32 license: (cd $npm_package_config_mc_root && ./mach lint -l license $npm_package_config_welcome_path) 33 stylelint: (cd $npm_package_config_mc_root && ./mach lint -l stylelint $npm_package_config_welcome_path) 34 35 # test: Run all tests once 36 test: =>testmc 37 38 # tdd: Run content tests continuously 39 tdd: =>tddmc 40 41 fix: 42 # Note that since we're currently running eslint-plugin-prettier, 43 # running fix:eslint will also reformat changed JS files using prettier. 44 eslint: =>lint:eslint -- --fix 45 stylelint: =>lint:stylelint -- --fix