Skip to content

Commit f419c58

Browse files
committed
Base scaffold code
0 parents  commit f419c58

22 files changed

+8557
-0
lines changed

.editorconfig

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

.gitattributes

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

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules
3+
*.log
4+
package-lock.json

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Felipe Guizar Diaz <felipegaiacharly@gmail.com> (github.com/marconi1992)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# sao-hypernova-preact
2+
3+
> Hypernova with Preacts boilerplate
4+
5+
## Usage
6+
7+
Install [SAO](https://github.com/saojs/sao) first.
8+
9+
```bash
10+
yarn global add sao
11+
# or
12+
npm i -g sao
13+
```
14+
15+
### From git
16+
17+
```bash
18+
sao ara-framework/create-hypernova-preact my-project
19+
```
20+
21+
## License
22+
23+
MIT &copy; [marconi1992](github.com/marconi1992)

circle.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/project
5+
docker:
6+
- image: circleci/node:latest
7+
branches:
8+
ignore:
9+
- gh-pages # list of branches to ignore
10+
- /release\/.*/ # or ignore regexes
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
key: dependency-cache-{{ checksum "yarn.lock" }}
15+
- run:
16+
name: install dependences
17+
command: yarn install
18+
- save_cache:
19+
key: dependency-cache-{{ checksum "yarn.lock" }}
20+
paths:
21+
- ./node_modules
22+
- run:
23+
name: test
24+
command: yarn test

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "sao-hypernova-preacts",
3+
"version": "0.0.0",
4+
"description": "Hypernova with Preact boilerplate",
5+
"repository": {
6+
"url": "ara-framework/create-hypernova-preact",
7+
"type": "git"
8+
},
9+
"author": "marconi1992 <felipegaiacharly@gmail.com> (github.com/marconi1992)",
10+
"license": "MIT",
11+
"files": [
12+
"saofile.js",
13+
"template"
14+
],
15+
"scripts": {
16+
"test": "ava"
17+
},
18+
"dependencies": {
19+
"superb": "^1.3.0"
20+
},
21+
"devDependencies": {
22+
"sao": "^1.0.0"
23+
}
24+
}

saofile.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const superb = require('superb')
2+
3+
module.exports = {
4+
prompts() {
5+
return [
6+
{
7+
name: 'name',
8+
message: 'What is the name of the new project',
9+
default: this.outFolder,
10+
filter: val => val.toLowerCase()
11+
},
12+
{
13+
name: 'description',
14+
message: 'How would you descripe the new project',
15+
default: `Another Hypernova React project`
16+
}
17+
]
18+
},
19+
actions: [
20+
{
21+
type: 'add',
22+
files: '**'
23+
},
24+
{
25+
type: 'move',
26+
patterns: {
27+
gitignore: '.gitignore'
28+
}
29+
}
30+
],
31+
async completed() {
32+
await this.npmInstall()
33+
this.showProjectTips()
34+
}
35+
}

template/.babelrc

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

template/.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2

0 commit comments

Comments
 (0)