Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 2f95e90

Browse files
refactor: Update project architecture (#54)
* refactor: Update new architecture * feat(cli): Update `mainAttribute` display * refactor(cli): Refactor CLI utils
1 parent 508567c commit 2f95e90

File tree

115 files changed

+409
-426
lines changed

Some content is hidden

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

115 files changed

+409
-426
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
**/node_modules/**
2-
/templates
2+
/src/templates

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const createInstantSearchApp = require('./packages/create-instantsearch-app');
1+
const createInstantSearchApp = require('./src/api');
22

33
module.exports = createInstantSearchApp;

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"author": "Algolia <[email protected]>",
88
"main": "index.js",
99
"bin": {
10-
"create-instantsearch-app": "packages/cli/index.js"
10+
"create-instantsearch-app": "src/cli/index.js"
1111
},
1212
"scripts": {
13-
"start": "node packages/cli/index.js",
14-
"test": "jest ./packages",
13+
"start": "node src/cli/index.js",
14+
"test": "jest ./src",
1515
"test:e2e:templates": "jest './scripts/e2e-templates.test.js'",
1616
"test:e2e": "jest './scripts/e2e-*'",
1717
"lint": "eslint .",
@@ -23,8 +23,7 @@
2323
},
2424
"files": [
2525
"index.js",
26-
"packages",
27-
"templates"
26+
"src"
2827
],
2928
"engines": {
3029
"node": ">= 8"
@@ -37,6 +36,7 @@
3736
"jstransformer-handlebars": "^1.1.0",
3837
"latest-semver": "^1.0.0",
3938
"load-json-file": "^5.0.0",
39+
"lodash.camelcase": "^4.3.0",
4040
"metalsmith": "^2.3.0",
4141
"metalsmith-ignore": "^0.1.2",
4242
"metalsmith-in-place": "^4.1.1",
@@ -62,7 +62,7 @@
6262
"jest": {
6363
"testPathIgnorePatterns": [
6464
"<rootDir>/node_modules/",
65-
"<rootDir>/templates/"
65+
"<rootDir>/src/templates/"
6666
]
6767
}
6868
}

packages/cli/index.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/cli/utils.js

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)