Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.0-alpha.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Jan 26, 2020
2 parents c3a955e + 9a16b3d commit 03a343a
Show file tree
Hide file tree
Showing 53 changed files with 4,771 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: '@studiometa/eslint-config',
};
21 changes: 21 additions & 0 deletions .gitignore
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*
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@studiometa/prettier-config');
21 changes: 21 additions & 0 deletions LICENSE
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.
22 changes: 22 additions & 0 deletions README.md
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.
36 changes: 36 additions & 0 deletions cli.js
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();
Loading

0 comments on commit 03a343a

Please sign in to comment.