Restore `dist` as the output folder (#412)

This commit is contained in:
Salvador de la Puente González 2020-01-20 15:32:22 +01:00 committed by GitHub
parent 9a4653dcc8
commit dc0f5b1b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 11 deletions

View File

@ -89,6 +89,3 @@ dist
# Service worker
sw.*
# Build dir
public

3
.gitignore vendored
View File

@ -86,6 +86,3 @@ dist
# Service worker
sw.*
# Build dir
public

View File

@ -35,7 +35,7 @@ Run unit tests made with [Jest](https://jestjs.io/):
npm run test
```
Build static version ready for production, output will generated inside a new folder called `public`:
Build static version ready for production, output will generated inside a new folder called `dist`:
```shell
npm run build
```

View File

@ -163,7 +163,7 @@ Run unit tests made with [Jest](https://jestjs.io/):
npm run test
```
Build static version ready for production, output will generated inside a new folder called `public`:
Build static version ready for production, output will generated inside a new folder called `dist`:
```shell
npm run build
```

View File

@ -10,6 +10,6 @@ CONFIG_PATH=$(rclone config file | tail -1)
openssl aes-256-cbc -K $encrypted_rclone_key -iv $encrypted_rclone_iv -in rclone.conf.enc -out $CONFIG_PATH -d
git clone --depth=1 https://github.com/Qiskit/qiskit-terra.git
cp -r qiskit-terra/qiskit/schemas ../public/.
cp -r qiskit-terra/qiskit/schemas ../dist/.
rclone sync --exclude 'documentation/**' ../public IBMCOS:qiskit-org-website
rclone sync --exclude 'documentation/**' ../dist IBMCOS:qiskit-org-website

View File

@ -171,7 +171,6 @@ const config: Configuration = {
},
generate: {
dir: 'public',
routes: (function () {
const events = fs.readdirSync(path.resolve(__dirname, 'content', 'events'))
.filter(filename => path.extname(filename) === '.md')