This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0.0-alpha.0'
- Loading branch information
Showing
53 changed files
with
4,771 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: '@studiometa/eslint-config', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# OS et IDE files | ||
.DS_Store | ||
.idea/ | ||
.vscode/ | ||
*.sublime-projet | ||
*.sublime-workspace | ||
*.log | ||
node_modules/ | ||
|
||
# Logs | ||
/logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Template unwanted files | ||
/template/.nuxt/ | ||
/template/dist/ | ||
/template/package*.json | ||
/template/static/sw* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@studiometa/prettier-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) EGOIST <[email protected]> (github.com/egoist) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
# Create Nuxt Project | ||
|
||
[![NPM Version](https://img.shields.io/npm/v/@studiometa/create-nuxt-project/alpha.svg?style=flat-square)](https://www.npmjs.com/package/@studiometa/create-nuxt-project) | ||
[![Dependency Status](https://img.shields.io/david/studiometa/create-nuxt-project.svg?label=deps&style=flat-square)](https://david-dm.org/studiometa/create-nuxt-project) | ||
[![devDependency Status](https://img.shields.io/david/dev/studiometa/create-nuxt-project.svg?label=devDeps&style=flat-square)](https://david-dm.org/studiometa/create-nuxt-project?type=dev) | ||
|
||
> A generator to kickstart your Nuxt project in a few seconds! ⚡ | ||
## Usage | ||
|
||
Run the following command to bootstrap a WordPress project using Studio Meta's tools and workflows: | ||
|
||
```bash | ||
npx @studiometa/create-nuxt-project@alpha <project-name> | ||
``` | ||
|
||
## Documentation | ||
|
||
This tool will generate a Nuxt project setup with our favorite tools at [Studio Meta](https://github.com/studiometa). See the [readme.md](./template#readme) file in the template folder for a more detailed documentation. | ||
|
||
## Contributing | ||
|
||
This project's branches are managed with [Git Flow](https://github.com/petervanderdoes/gitflow-avh), every feature branch must be merged into develop via a pull request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env node | ||
const path = require('path'); | ||
const sao = require('sao'); | ||
const cac = require('cac'); | ||
const chalk = require('chalk'); | ||
const { version, name } = require('./package.json'); | ||
|
||
const generator = path.resolve(__dirname, './'); | ||
|
||
const cli = cac('create-nuxt-project'); | ||
|
||
cli | ||
.command('[out-dir]', 'Generate in a custom directory or current directory') | ||
.option('--verbose', 'Show debug logs') | ||
.action((outDir = '.', cliOptions) => { | ||
console.log(); | ||
console.log(chalk`{cyan ${name}@${version}}`); | ||
console.log(chalk`✨ Generating Nuxt project in {cyan ${outDir}}`); | ||
console.log(); | ||
|
||
const { verbose } = cliOptions; | ||
const logLevel = verbose ? 4 : 2; | ||
// See https://saojs.org/api.html#standalone-cli | ||
sao({ generator, outDir, logLevel, cliOptions }) | ||
.run() | ||
.catch(err => { | ||
console.trace(err); | ||
process.exit(1); | ||
}); | ||
}); | ||
|
||
cli.help(); | ||
|
||
cli.version(version); | ||
|
||
cli.parse(); |
Oops, something went wrong.