Skip to content

Commit a039e52

Browse files
author
fengwan
committed
nextlocal
1 parent 117d2cd commit a039e52

File tree

6 files changed

+80
-6
lines changed

6 files changed

+80
-6
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is for unifying the coding style for different editors and IDEs.
2+
# More information at http://EditorConfig.org
3+
4+
# No .editorconfig files above the root directory
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
indent_size = 4
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[package.json]
15+
indent_size = 2

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
sudo: false
2+
dist: trusty
3+
language: node_js
4+
branches:
5+
only:
6+
- master
7+
- feature/webpack3
8+
jobs:
9+
fast_finish: true
10+
allow_failures:
11+
- env: WEBPACK_VERSION=canary
12+
include:
13+
- &test-latest
14+
stage: Webpack latest
15+
nodejs: 6
16+
env: WEBPACK_VERSION=latest JOB_PART=test
17+
script: npm run travis:$JOB_PART
18+
- <<: *test-latest
19+
nodejs: 4.8
20+
env: WEBPACK_VERSION=latest JOB_PART=test
21+
script: npm run travis:$JOB_PART
22+
- <<: *test-latest
23+
node_js: 8
24+
env: WEBPACK_VERSION=latest JOB_PART=lint
25+
script: npm run travis:$JOB_PART
26+
- <<: *test-latest
27+
node_js: 8
28+
env: WEBPACK_VERSION=latest JOB_PART=coverage
29+
script: npm run travis:$JOB_PART
30+
after_success: 'bash <(curl -s https://codecov.io/bash)'
31+
- stage: Webpack canary
32+
before_script: npm i --no-save git://github.com/webpack/webpack.git#master
33+
script: npm run travis:$JOB_PART
34+
node_js: 8
35+
env: WEBPACK_VERSION=canary JOB_PART=test
36+
before_install:
37+
- 'if [[ `npm -v` != 5* ]]; then npm i -g npm@^5.0.0; fi'
38+
- nvm --version
39+
- node --version
40+
- npm --version
41+
before_script:
42+
- |-
43+
if [ "$WEBPACK_VERSION" ]; then
44+
npm i --no-save webpack@$WEBPACK_VERSION
45+
fi
46+
script:
47+
- 'npm run travis:$JOB_PART'
48+
after_success:
49+
- 'bash <(curl -s https://codecov.io/bash)'

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
assemblyscript-typescript-loader
22
=================
33

4-
[![npm](https://img.shields.io/npm/v/assemblyscript-typescript-loader.svg)](https://www.npmjs.com/package/assemblyscript-typescript-loader)
4+
[![npm][npm]][npm-url]
5+
[![node][node]][node-url]
6+
[![npm-stats][npm-stats]][npm-url]
7+
[![deps][deps]][deps-url]
8+
[![travis][travis]][travis-url]
9+
[![appveyor][appveyor]][appveyor-url]
10+
[![coverage][cover]][cover-url]
11+
[![chat][chat]][chat-url]
512

613

714
A webpack loader for compiles typescript with [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) and bundles it as wasm or btyes string,it as well with [Marauder](https://github.com/SinaMFE/webpack-marauder) System
@@ -107,7 +114,7 @@ You can configure a custom filename template for your file using the query param
107114
loader: 'assemblyscript-typescript-loader',
108115
options: {
109116
name: '[path][name].wasm'
110-
}
117+
}
111118
}
112119
```
113120

@@ -124,7 +131,7 @@ You can configure a custom filename template for your file using the query param
124131
}
125132
return '[hash].wasm'
126133
}
127-
}
134+
}
128135
}
129136
```
130137
#### `placeholders`
@@ -159,7 +166,7 @@ By default, the path and name you specify will output the file in that same dire
159166
options: {
160167
name: '[path][name].wasm',
161168
publicPath: 'assembly/'
162-
}
169+
}
163170
}
164171
```
165172

@@ -172,7 +179,7 @@ By default, the path and name you specify will output the file in that same dire
172179
options: {
173180
name: '[path][name].wasm',
174181
outputPath: 'assembly/'
175-
}
182+
}
176183
}
177184
```
178185

index.js renamed to lib/index.js

File renamed without changes.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "assemblyscript-typescript-loader",
33
"version": "1.2.5",
44
"description": "A webpack loader for compiles typescript with assemblyscript and bundles it as wasm or btyes string",
5-
"main": "index.js",
5+
"main": "lib/index.js",
6+
"files": [
7+
"lib"
8+
],
69
"scripts": {
710
"test": "echo \"Error: no test specified\" && exit 1"
811
},

0 commit comments

Comments
 (0)