Skip to content

Commit 3102a6e

Browse files
committed
Added now.sh configuration
1 parent 4bb135a commit 3102a6e

File tree

8 files changed

+141
-5
lines changed

8 files changed

+141
-5
lines changed

example/webpack.config.js renamed to example/webpack.config.example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module.exports = {
77
},
88
mode: 'development',
99
devtool: 'eval',
10-
entry: path.resolve(__dirname, 'src', 'index.tsx'),
10+
entry: path.resolve(__dirname, './src/index.tsx'),
1111
output: {
12-
path: path.resolve(__dirname),
12+
path: path.resolve(__dirname, '../website'),
1313
publicPath: '',
1414
filename: 'bundle.js',
1515
},

now.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "react-selectable-fast",
3+
"alias": "react-selectable-fast",
4+
"public": true,
5+
"version": 2,
6+
"builds": [{ "src": "./website/**", "use": "@now/static" }],
7+
"routes": [{ "src": "/(.*)", "dest": "website/$1" }]
8+
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
"main": "lib/index.js",
1010
"scripts": {
1111
"clean": "rimraf ./lib ./dist",
12-
"watch:example": "webpack-dev-server --config ./example/webpack.config.js --content-base example",
13-
"build:example": "webpack --config ./example/webpack.config.js --mode production",
1412
"watch": "webpack --watch",
1513
"build": "webpack",
1614
"transpile": "tsc",
@@ -19,7 +17,9 @@
1917
"prettier": "prettier --write src/**/*.{js,ts,tsx} example/src/**/*.{js,ts,tsx} .js",
2018
"lint:basic": "tsc --pretty --noEmit && tslint --fix --format codeFrame",
2119
"lint": "yarn lint:basic --project ./tsconfig.json 'src/**/*.{ts,tsx} example/src/**/*.{ts,tsx}'",
22-
"format": "npm run prettier && npm run lint"
20+
"format": "npm run prettier && npm run lint",
21+
"watch:example": "webpack-dev-server --config ./example/webpack.config.example.js --content-base website",
22+
"build:example": "webpack --config ./example/webpack.config.example.js --mode production"
2323
},
2424
"lint-staged": {
2525
"*.{js,ts,tsx}": [

website/bundle.js

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)