Commit 7d8c0778 authored by Jeff Avallone's avatar Jeff Avallone
Browse files

Updating build and docs tasks

parent fc1173f8
......@@ -19,8 +19,7 @@ stages:
paths:
- build/
script:
- yarn gulp build
- rm -r build/__discard__
- yarn build
- gzip -k -6 $(find build/ -type f)
.deploy_template: &deploy_template
......@@ -41,14 +40,12 @@ build-preview:
<<: *preview_job
variables:
DEPLOY_ENV: preview
GA_PROP: $PREVIEW_GA_PROPERTY
build-production:
<<: *build_template
<<: *production_job
variables:
DEPLOY_ENV: production
GA_PROP: $PROD_GA_PROPERTY
deploy-preview:
<<: *deploy_template
......
......@@ -24,8 +24,8 @@ This will build the site into the ./build directory, start a local start on port
These other gulp tasks are available:
$ gulp docs # Build documentation into the ./docs directory
$ gulp build # Build the site into the ./build directory
$ yarn docs # Build documentation into the ./docs directory
$ yarn build # Build the site into the ./build directory
$ yarn test # Run JSCS lint and Karma tests
## License
......
......@@ -10,6 +10,7 @@
"license": "MIT",
"private": true,
"scripts": {
"docs": "docco-toc --output ./docs $(find ./src/js -name '*.js')",
"pretest": "eslint .",
"test": "karma start --single-run",
"build": "webpack",
......@@ -23,7 +24,6 @@
"babel-loader": "^8.1.0",
"canopy": "^0.2.0",
"css-loader": "^4.2.2",
"docco": "^0.7.0",
"eslint": "^7.8.1",
"eslint-plugin-jasmine": "^4.1.1",
"file-loader": "^6.1.0",
......@@ -61,6 +61,7 @@
},
"dependencies": {
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.1.0"
"copy-webpack-plugin": "^6.1.0",
"docco-toc": "^0.7.4"
}
}
......@@ -3682,9 +3682,10 @@ dns-txt@^2.0.2:
dependencies:
buffer-indexof "^1.0.0"
docco@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/docco/-/docco-0.7.0.tgz#d606e5a990cba052ca1e1803a9c587ecee3c5c38"
docco-toc@^0.7.4:
version "0.7.4"
resolved "https://registry.yarnpkg.com/docco-toc/-/docco-toc-0.7.4.tgz#3cb1cb0c78c658f705ea4fef7516852c97f2e794"
integrity sha1-PLHLDHjGWPcF6k/vdRaFLJfy55Q=
dependencies:
commander ">= 0.5.2"
fs-extra ">= 0.6.0"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment