1 # This file compiles to package.json scripts.
2 # When you add or modify anything, you *MUST* run:
4 # to compile your changes.
7 # bundle: Build all assets for activity stream
9 welcomeBundle: webpack-cli --config webpack.aboutwelcome.config.js
10 welcomeCss: sass content-src:content --no-source-map
12 # watchmc: Automatically rebuild when files are changed. NOTE: Includes sourcemaps, do not use for profiling/perf testing.
15 welcomeBundle: =>bundle:welcomeBundle -- --env development -w
16 welcomeCss: =>bundle:welcomeCss -- --source-map --embed-sources --embed-source-map -w
20 build: =>bundle:welcomeBundle
21 unit: karma start karma.mc.config.js
23 tddmc: karma start karma.mc.config.js --tdd
25 debugcoverage: open logs/coverage/lcov-report/index.html
27 # lint: Run various linters with mach or local dev dependencies
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)
35 # test: Run all tests once
38 # tdd: Run content tests continuously
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