Commit d138a514 authored by JunHyung An's avatar JunHyung An
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+23 −0
Original line number Diff line number Diff line
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

README.md

0 → 100644
+24 −0
Original line number Diff line number Diff line
# vue-router

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

0 → 100644
+5 −0
Original line number Diff line number Diff line
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ]
}

gitlab-ci.yml

0 → 100644
+47 −0
Original line number Diff line number Diff line
image: "node:lts-alpine"

stages:
  - lint
  - deploy

# global cache settings for all jobs
# Ensure compatibility with the install job
# goal: the install job loads the cache and
# all other jobs can only use it
cache:
    # most npm libraries will only have 1 entry for the base project deps
    - key: &global_cache_node_mods
          files:
              - package-lock.json
      paths:
          - node_modules/
      policy: pull  # prevent subsequent jobs from modifying cache

before_script:
  # https://stackoverflow.com/a/75624610
  # - cp ${PRODUCTION_ENV_FILE} .env.production
    # define cache dir & use it npm!
  - npm ci --cache node_modules/ --prefer-offline
#   # monorepo users: run secondary install actions
#   - npx lerna bootstrap -- --cache .npm/ --prefer-offline
  

lint:
  stage: lint
  # global cache settings are inherited to grab `node_modules`
  script:  
    - node --version
    - npm run lint

pages:
  stage: deploy
  when: on_success # only if previous stages' jobs all succeeded
  # override inherited cache settings since node_modules is not needed
  script:
     - npm run build
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
 No newline at end of file

jsconfig.json

0 → 100644
+19 −0
Original line number Diff line number Diff line
{
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "baseUrl": "./",
    "moduleResolution": "node",
    "paths": {
      "@/*": [
        "src/*"
      ]
    },
    "lib": [
      "esnext",
      "dom",
      "dom.iterable",
      "scripthost"
    ]
  }
}