Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit fb9b440

Browse files
author
Atinux
committed
refactor modules
1 parent acf7df0 commit fb9b440

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+4615
-3213
lines changed

.editorconfig

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
root = true
22

33
[*]
4-
indent_style = space
4+
indent_style = tab
55
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.md]
12-
trim_trailing_whitespace = false
11+
[{package.json,*.yml,*.md}]
12+
indent_style = space
13+
indent_size = 2

.gitignore

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
# Dependencies
12
node_modules
2-
packages/*/yarn.lock
3-
packages/*/package-lock.json
4-
lerna-debug.log
3+
4+
# Logs
5+
npm-debug.log
6+
7+
# Coverage
8+
coverage
9+
.nyc_output
10+
11+
# Editors
12+
.vscode
13+
.idea
14+
15+
# Misc
16+
.DS_Store

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) egoist <[email protected]> (https://egoist.moe)
3+
Copyright (c) Nuxt.js Team <[email protected]>, @clarkdo & @egoist <[email protected]> (https://egoist.moe)
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

README.md

+35-20
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
1-
# create-nuxt-app
1+
# Create Nuxt App
22

3-
[![NPM version](https://img.shields.io/npm/v/create-nuxt-app.svg?style=flat)](https://npmjs.com/package/create-nuxt-app) [![NPM downloads](https://img.shields.io/npm/dm/create-nuxt-app.svg?style=flat)](https://npmjs.com/package/create-nuxt-app) [![CircleCI](https://circleci.com/gh/nuxt-community/create-nuxt-app/tree/master.svg?style=shield)](https://circleci.com/gh/nuxt-community/create-nuxt-app/tree/master) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)
3+
[![NPM version](https://img.shields.io/npm/v/create-nuxt-app.svg?style=flat)](https://npmjs.com/package/create-nuxt-app) [![NPM downloads](https://img.shields.io/npm/dm/create-nuxt-app.svg?style=flat)](https://npmjs.com/package/create-nuxt-app)
4+
5+
> Create a [Nuxt.js](https://github.com/nuxt/nuxt.js) project in seconds
46
57
<details><summary>Preview</summary>
68

79
![preview](https://ooo.0o0.ooo/2017/08/05/5984b16ed9749.gif)
810
</details>
911

10-
## Install
12+
## Usage
13+
14+
Make sure you have [npx](https://www.npmjs.com/package/npx) installed (`npx` is shipped by default since NPM `5.2.0`)
1115

1216
```bash
13-
yarn global add create-nuxt-app
17+
npx create-nuxt-app <my-project>
1418
```
1519

16-
## Usage
20+
Or with [yarn](https://yarnpkg.com/en/):
1721

1822
```bash
19-
create-nuxt-app my-project
23+
yarn create nuxt-app <my-project>
2024
```
2125

22-
## Contributing
23-
24-
1. Fork it!
25-
2. Create your feature branch: `git checkout -b my-new-feature`
26-
3. Commit your changes: `git commit -am 'Add some feature'`
27-
4. Push to the branch: `git push origin my-new-feature`
28-
5. Submit a pull request :D
29-
30-
## Author
31-
32-
**create-nuxt-app** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
33-
Authored and maintained by egoist with help from contributors ([list](https://github.com/nuxt-community/create-nuxt-app/contributors)).
34-
35-
> [egoist.moe](https://egoist.moe) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)
26+
## Features :tada:
27+
28+
1. Choose between integrated server-side frameworks:
29+
- None (Nuxt default server)
30+
- [Express](https://github.com/expressjs/express)
31+
- [Koa](https://github.com/koajs/koa)
32+
- [Hapi](https://github.com/hapijs/hapi)
33+
- [Feathers](https://github.com/feathersjs/feathers)
34+
- [Micro](https://github.com/zeit/micro)
35+
- [Adonis](https://github.com/adonisjs/adonis-framework) (WIP)
36+
2. Choose your favorite UI framework:
37+
- None (feel free to add one later)
38+
- [Bootstrap](https://github.com/bootstrap-vue/bootstrap-vue)
39+
- [Vuetify](https://github.com/vuetifyjs/vuetify)
40+
- [Bulma](https://github.com/jgthms/bulma)
41+
- [Tailwind](https://github.com/tailwindcss/tailwindcss)
42+
- [Element UI](https://github.com/ElemeFE/element)
43+
3. Add [axios module](https://github.com/nuxt-community/axios-module) to make HTTP request easily into your application.
44+
3. Add [EsLint](https://eslint.org/) to Lint your code on save.
45+
46+
## Credits
47+
48+
- [egoist](https://github.com/egoist)
49+
- [clarko](https://github.com/clarkdo)
50+
- All our contributors ([list](https://github.com/nuxt-community/create-nuxt-app/contributors)).

circle.yml

-24
This file was deleted.

cli.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env node
2+
const path = require('path')
3+
const sao = require('sao')
4+
const minimist = require('minimist')
5+
6+
const argv = minimist(process.argv.slice(2))
7+
// In a custom directory or current directory
8+
const targetPath = path.resolve(argv._[0] || '.')
9+
10+
console.log(`> Generating Nuxt.js project in ${targetPath}`)
11+
12+
// See https://sao.js.org/#/advanced/standalone-cli
13+
sao({
14+
template: __dirname,
15+
targetPath
16+
}).catch(err => {
17+
console.error(err.name === 'SAOError' ? err.message : err.stack)
18+
process.exit(1)
19+
})

lerna.json

-16
This file was deleted.

0 commit comments

Comments
 (0)