Skip to content

Commit 1f39d63

Browse files
committed
chore: update repository
1 parent c4b6260 commit 1f39d63

File tree

10 files changed

+282
-143
lines changed

10 files changed

+282
-143
lines changed

.circleci/config.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@nuxtjs"
4+
]
5+
}

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Whitespace-only changes.

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
node: [12]
19+
20+
steps:
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
25+
- name: checkout
26+
uses: actions/checkout@master
27+
28+
- name: cache node_modules
29+
uses: actions/cache@v2
30+
with:
31+
path: node_modules
32+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
33+
34+
- name: Install dependencies
35+
if: steps.cache.outputs.cache-hit != 'true'
36+
run: yarn
37+
38+
- name: Lint
39+
run: yarn lint
40+
41+
- name: Build Kitchen Sink
42+
run: yarn ks:generate

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Pooya Parsa
3+
Copyright (c) Nuxt Community
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function prepareBuild (_options) {
1818
this.options.build.ssr = false
1919

2020
// Extend webpack config
21-
this.extendBuild(config => {
21+
this.extendBuild((config) => {
2222
// Increase performance check limits to 2M (non-gzipped)
2323
const MAX_SIZE = 2 * 1024 * 1024
2424
Object.assign(config.performance, {

lib/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
const defu = require('defu')
12
const { resolvePath } = require('./utils')
23
const defaults = require('./defaults')
3-
const defu = require('defu')
44

55
module.exports = function getOptions (_options) {
66
const options = defu({ ...this.options.framework7, ..._options }, defaults)
@@ -34,7 +34,7 @@ module.exports = function getOptions (_options) {
3434
}
3535

3636
function normalizeComponents (components) {
37-
return components.map((name) => ({
37+
return components.map(name => ({
3838
name,
3939
js: `framework7/components/${name}/${name}.js`,
4040
less: `~framework7/components/${name}/${name}.less`

package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"license": "MIT",
55
"main": "lib/module.js",
66
"scripts": {
7-
"dev": "npm run ks",
8-
"ks": "nuxt dev examples/kitchen-sink",
9-
"ks-build": "nuxt build examples/kitchen-sink",
10-
"ks-analyze": "nuxt build --analyze examples/kitchen-sink",
11-
"ks-start": "nuxt start --spa examples/kitchen-sink",
12-
"ks-generate": "nuxt generate examples/kitchen-sink",
7+
"dev": "yarn ks",
8+
"ks:dev": "yarn dev examples/kitchen-sink",
9+
"ks:build": "nuxt build examples/kitchen-sink",
10+
"ks:analyze": "nuxt build --analyze examples/kitchen-sink",
11+
"ks:start": "nuxt start --spa examples/kitchen-sink",
12+
"ks:generate": "nuxt generate examples/kitchen-sink",
1313
"lint": "eslint --ext .js,.vue lib",
14-
"test": "npm run lint",
15-
"precommit": "lint-staged",
14+
"test": "yarn lint",
1615
"surge": "surge -d https://nuxt7.surge.sh examples/kitchen-sink/dist",
1716
"release": "standard-version && git push --follow-tags && npm publish"
1817
},
@@ -29,12 +28,7 @@
2928
"devDependencies": {
3029
"@nuxtjs/pwa": "latest",
3130
"eslint": "latest",
32-
"eslint-config-standard": "latest",
33-
"eslint-plugin-html": "latest",
34-
"eslint-plugin-import": "latest",
35-
"eslint-plugin-node": "latest",
36-
"eslint-plugin-promise": "latest",
37-
"eslint-plugin-standard": "latest",
31+
"@nuxtjs/eslint-config": "latest",
3832
"nuxt-edge": "latest",
3933
"standard-version": "latest",
4034
"surge": "latest"

0 commit comments

Comments
 (0)