Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
chore: added asset specific clean scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasconstantino committed Mar 26, 2019
1 parent 82be61d commit e415994
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/environment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Besides the basic scripts shown in the [Getting Started](/getting-started), ther
| `dev:server` | Starts development of only the server (must have client built) | |
| `docs:build` | Build the docs | `--help` |
| `docs:deploy` | Deploy the docs, using surge (see `./config/webpack/webpack.docz` for CNAME configs) | |
| `docs:dev` | Starts development of the docs | `--help` |
| `docs` | Starts development of the docs | `--help` |
| `format` | Format source code using prettier | `--help` |
| `format:package` | Format the `package.json` | |
| `lint` | Verifies code style complience | `--help` |
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@
"build": "yarn build:next && yarn build:server",
"build:next": "next build",
"build:server": "webpack --config config/webpack/webpack.server.js",
"clean": "rm -Rf ./build && rm -Rf .next && rm -Rf bundles && rm -Rf ./node_modules/.cache",
"clean": "yarn clean:app && yarn clean:test && yarn clean:docs && yarn clean:storybook && rm -Rf ./build",
"clean:app": "rm -f ./build/server.js && rm -Rf ./build/client && rm -Rf ./node_modules/.cache",
"clean:docs": "rm -Rf .docz && rm -Rf build/docs",
"clean:storybook": "rm -Rf build/storybook",
"clean:test": "rm -Rf coverage",
"deploy": "DEPLOYING=1 now",
"dev": "yarn clean && yarn build:server && concurrently \"yarn build:server --watch\" \"DEBUG=next-on-drupal:* nodemon ./build/server.js -w ./build/server.js\"",
"dev": "yarn clean:app && yarn build:server && concurrently \"yarn build:server --watch\" \"DEBUG=next-on-drupal:* nodemon ./build/server.js -w ./build/server.js\"",
"dev:next": "node ./build/server.js",
"dev:server": "yarn build && concurrently \"yarn build:server --watch\" \"NODE_ENV=production DEBUG=next-on-drupal:* nodemon ./build/server.js -w ./build/server.js\"",
"docs": "docz dev",
"docs:build": "docz build",
"docs:deploy": "DEPLOYING=1 yarn docs:build && surge build/docs",
"docs:dev": "docz dev",
"format": "prettier-eslint 'src/**/*.js' --write",
"format:package": "sort-package-json",
"lint": "eslint src",
Expand Down

0 comments on commit e415994

Please sign in to comment.