Skip to content

Commit 3355009

Browse files
Project setup
1 parent fd3e07c commit 3355009

8 files changed

+97
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# defaults for all files
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
# Markdown files uses two trailing spaces to indicate a <br>
16+
[*.{md,snap}]
17+
trim_trailing_whitespace = false
18+
19+
# 4 space indentation
20+
[*.{sass,scss,css}]
21+
indent_size = 4

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
/dist/

.eslintrc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
'parserOptions': {
3+
'ecmaVersion': 2015
4+
},
5+
'env': {
6+
'es6': true
7+
},
8+
'extends': [
9+
'tjw-base'
10+
]
11+
};

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
package-lock.json

.npmignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules/
2+
src/
3+
.editorconfig
4+
.eslintignore
5+
.eslintrc.js
6+
.gitignore
7+
.sass-lint.yml
8+
.travis.yml
9+
build.js
10+
dev.html
11+
find-in-nw.gif
12+
package-lock.json
13+
test.html

.sass-lint.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
options:
2+
config-file: node_modules/tjw-sasslint-rules/tjwsasslint.yml
3+
files:
4+
# Note: You can change the '**/*.s+(a|c)ss' to be specific to your project's Sass folder. Example: 'src/sass/**/*.s+(a|c)ss'
5+
include: '**/*.s+(a|c)ss'

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sudo: required
2+
dist: trusty
3+
language: node_js
4+
node_js:
5+
- "10"
6+
install:
7+
- npm install
8+
script:
9+
- npm run validate

package.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "findinnw",
3+
"version": "1.0.0",
4+
"description": "Simulate the Ctrl+F (find) feature from Chrome in NW.js",
5+
"main": "test.html",
6+
"scripts": {
7+
"start": "nw .",
8+
"build": "npm run validate && node build.js",
9+
"lint": "eslint --no-fix **/*.js",
10+
"fix": "eslint --fix **/*.js",
11+
"sasslint": "sass-lint -c .sass-lint.yml -v -f table",
12+
"sassfix": "sass-lint-auto-fix -c .sass-lint.yml",
13+
"validate": "npm run lint && npm run sasslint"
14+
},
15+
"keywords": [
16+
"find",
17+
"search",
18+
"nw.js",
19+
"desktop"
20+
],
21+
"author": "",
22+
"license": "MIT",
23+
"devDependencies": {
24+
"eslint": "^6.6.0",
25+
"eslint-config-tjw-base": "^1.0.0",
26+
"findandreplacedomtext": "^0.4.6",
27+
"node-sass": "^4.13.0",
28+
"nw": "sdk",
29+
"sass": "^1.23.1",
30+
"sass-lint": "^1.13.1",
31+
"terser": "^4.3.9",
32+
"tjw-sasslint-rules": "^2.1.0"
33+
},
34+
"repository": "https://github.com/nwutils/find-in-nw"
35+
}

0 commit comments

Comments
 (0)