Skip to content

Commit 9a98cf4

Browse files
add files to github
0 parents  commit 9a98cf4

File tree

89 files changed

+25757
-0
lines changed

Some content is hidden

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

89 files changed

+25757
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage
2+
**/templates

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
coverage
3+
.DS_STORE

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
node_js:
3+
- v11
4+
- v10
5+
- v8
6+
- v6
7+
- v4
8+
after_script: cat ./coverage/lcov.info | coveralls

.yo-rc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"generator-node": {
3+
"promptValues": {
4+
"authorName": "",
5+
"authorEmail": "",
6+
"authorUrl": ""
7+
}
8+
}
9+
}

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2019
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# generator-nevinha-teste [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
2+
>
3+
4+
## Installation
5+
6+
First, install [Yeoman](http://yeoman.io) and generator-nevinha-teste using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
7+
8+
```bash
9+
npm install -g yo
10+
npm install -g generator-nevinha-teste
11+
```
12+
13+
Then generate your new project:
14+
15+
```bash
16+
yo nevinha-teste
17+
```
18+
19+
## Getting To Know Yeoman
20+
21+
* Yeoman has a heart of gold.
22+
* Yeoman is a person with feelings and opinions, but is very easy to work with.
23+
* Yeoman can be too opinionated at times but is easily convinced not to be.
24+
* Feel free to [learn more about Yeoman](http://yeoman.io/).
25+
26+
## License
27+
28+
Apache-2.0 © []()
29+
30+
31+
[npm-image]: https://badge.fury.io/js/generator-nevinha-teste.svg
32+
[npm-url]: https://npmjs.org/package/generator-nevinha-teste
33+
[travis-image]: https://travis-ci.org//generator-nevinha-teste.svg?branch=master
34+
[travis-url]: https://travis-ci.org//generator-nevinha-teste
35+
[daviddm-image]: https://david-dm.org//generator-nevinha-teste.svg?theme=shields.io
36+
[daviddm-url]: https://david-dm.org//generator-nevinha-teste
37+
[coveralls-image]: https://coveralls.io/repos//generator-nevinha-teste/badge.svg
38+
[coveralls-url]: https://coveralls.io/r//generator-nevinha-teste

__tests__/app.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use strict';
2+
const path = require('path');
3+
const assert = require('yeoman-assert');
4+
const helpers = require('yeoman-test');
5+
6+
describe('generator-nevinha-teste:app', () => {
7+
beforeAll(() => {
8+
return helpers
9+
.run(path.join(__dirname, '../generators/app'))
10+
.withPrompts({ someAnswer: true });
11+
});
12+
13+
it('creates files', () => {
14+
assert.file(['dummyfile.txt']);
15+
});
16+
});

generators/app/index.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
'use strict';
2+
const Generator = require('yeoman-generator');
3+
const chalk = require('chalk');
4+
const yosay = require('yosay');
5+
const ncp = require('ncp').ncp;
6+
const mkdirp = require('mkdirp');
7+
8+
module.exports = class extends Generator {
9+
// prompting() {
10+
// // Have Yeoman greet the user.
11+
// this.log(
12+
// yosay(`Welcome to the geometric ${chalk.red('generator-nevinha-project')} generator!`)
13+
// );
14+
15+
// const prompts = [
16+
// {
17+
// type: 'input',
18+
// name: 'appName',
19+
// message: `What's the app name?`,
20+
// default: 'no-app-name'
21+
// }
22+
// ];
23+
24+
// return this.prompt(prompts).then(props => {
25+
// // To access props later use this.props.someAnswer;
26+
// this.props = props;
27+
// });
28+
// }
29+
30+
writing() {
31+
ncp.limit = 16;
32+
33+
ncp(this.sourceRoot(), './', function (err) {
34+
if (err) {
35+
return console.error(err);
36+
}
37+
console.log('done!');
38+
});
39+
}
40+
41+
install() {
42+
this.npmInstall();
43+
}
44+
};

0 commit comments

Comments
 (0)